PageSourceSearch

https://7maravilhas.pt/build/assets/proxy-Bef8oLZF.js

js 7maravilhas.pt collected 2026-10-02 12:00:32 UTC 59,960 bytes, 1 lines download raw bytes

vendor: 6,826 bytes, line 1
1import{r as g,j as vt}from"./app-Dpdn6RkY.js";import{o as Ee,q as yn,r as vn,t as Pt,u as Le,w as it,b as Dt,x as Pn,y as xn,z as Tn,A as Sn,B as An,C as Ct,D as Dn,E as Cn,F as wn,G as En,S as Ln,H as Vn,I as G,l as Ve,J as Re,K as It,L as be,m as S,M as E,N as D,O as Me,P as K,s as Rn,Q as bn,p as xt,R as je,g as T,T as Mn,U as jn,W as Bn,X as Ot,Y as kn,Z as st,_ as N,$ as Be,a0 as Ft,a1 as In,a2 as ke,a3 as Ie,a as Oe,a4 as Fe,a5 as On,a6 as Ut,a7 as Fn,h as Un,j as Nn,a8 as Wn,a9 as lt,aa as O,ab as Z,ac as J,ad as Nt,ae as Hn,af as Gn,ag as $n,ah as F,ai as zn,k as Xn,aj as Wt,ak as Kn}from"./single-value-DUybrRiC.js";const Ue=g.createContext({});function Yn(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const _n=Ee?g.useLayoutEffect:g.useEffect,wt=g.createContext(null);function qn(t){return yn(t)&&"offsetHeight"in t}const b={x:!1,y:!1};function Ne(){return b.x||b.y}function Zn(t){return t==="x"||t==="y"?b[t]?null:(b[t]=!0,()=>{b[t]=!1}):b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1})}function We(t,e){const n=vn(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function Ht(t){return!(t.pointerType==="touch"||Ne())}function Jn(t,e,n={}){const[i,r,u]=We(t,n),s=o=>{if(!Ht(o))return;const{target:a}=o,l=e(a,o);if(typeof l!="function"||!a)return;const c=h=>{Ht(h)&&(l(h),a.removeEventListener("pointerleave",c))};a.addEventListener("pointerleave",c,r)};return i.forEach(o=>{o.addEventListener("pointerenter",s,r)}),u}const He=(t,e)=>e?t===e?!0:He(t,e.parentElement):!1,Et=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Qn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ti(t){return Qn.has(t.tagName)||t.tabIndex!==-1}const tt=new WeakSet;function Gt(t){return e=>{e.key==="Enter"&&t(e)}}function ct(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ei=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Gt(()=>{if(tt.has(n))return;ct(n,"down");const r=Gt(()=>{ct(n,"up")}),u=()=>ct(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",u,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function $t(t){return Et(t)&&!Ne()}function ni(t,e,n={}){const[i,r,u]=We(t,n),s=o=>{const a=o.currentTarget;if(!$t(o))return;tt.add(a);const l=e(a,o),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),tt.has(a)&&tt.delete(a),$t(d)&&typeof l=="function"&&l(d,{success:m})},h=d=>{c(d,a===window||a===document||n.useGlobalTarget||He(a,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",f,r)};return i.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,r),qn(o)&&(o.addEventListener("focus",l=>ei(l,r)),!ti(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),u}const Ge=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ii(t=!0){const e=g.useContext(wt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,u=g.useId();g.useEffect(()=>{if(t)return r(u)},[t]);const s=g.useCallback(()=>t&&i&&i(u),[u,i,t]);return!n&&i?[!1,s]:[!0]}const $e=g.createContext({strict:!1});function si(t){for(const e in t)Pt[e]={...Pt[e],...t[e]}}const oi=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 ot(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||oi.has(t)}let ze=t=>!ot(t);function ri(t){typeof t=="function"&&(ze=e=>e.startsWith("on")?!ot(e):t(e))}try{ri(require("@emotion/is-prop-valid").default)}catch{}function ai(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(ze(r)||n===!0&&ot(r)||!e&&!ot(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const rt=g.createContext({});function li(t,e){if(Le(t)){const{initial:n,animate:i}=t;return{initial:n===!1||it(n)?n:void 0,animate:it(i)?i:void 0}}return t.inherit!==!1?e:{}}function ci(t){const{initial:e,animate:n}=li(t,g.useContext(rt));return g.useMemo(()=>({initial:e,animate:n}),[zt(e),zt(n)])}function zt(t){return Array.isArray(t)?t.join(" "):t}const Lt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xe(t,e,n){for(const i in e)!Dt(e[i])&&!Pn(i,n)&&(t[i]=e[i])}function ui({transformTemplate:t},e){return g.useMemo(()=>{const n=Lt();return xn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function hi(t,e){const n=t.style||{},i={};return Xe(i,n,t),Object.assign(i,ui(t,e)),i}function fi(t,e){const n={},i=hi(t,e);return t.drag&&t.dragListener!==!1&&(n.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)&&(n.tabIndex=0),n.style=i,n}const Ke=()=>({...Lt(),attrs:{}});function di(t,e,n,i){const r=g.useMemo(()=>{const u=Ke();return Tn(u,e,Sn(i),t.transformTemplate,t.style),{...u.attrs,style:{...u.style}}},[e]);if(t.style){const u={};Xe(u,t.style,t),r.style={...u,...r.style}}return r}const mi=["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 Vt(t){return typeof t!="string"||t.includes("-")?!1:!!(mi.indexOf(t)>-1||/[A-Z]/u.test(t))}function pi(t,e,n,{latestValues:i},r,u=!1){const o=(Vt(t)?di:fi)(e,i,r,t),a=ai(e,typeof t=="string",u),l=t!==g.Fragment?{...a,...o,ref:n}:{},{children:c}=e,h=g.useMemo(()=>Dt(c)?c.get():c,[c]);return g.createElement(t,{...l,children:h})}function et(t){return Dt(t)?t.get():t}function gi({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,r){return{latestValues:yi(n,i,r,t),renderState:e()}}function yi(t,e,n,i){const r={},u=i(t,{});for(const f in u)r[f]=et(u[f]);let{initial:s,animate:o}=t;const a=Le(t),l=An(t);e&&l&&!a&&t.inherit!==!1&&(s===void 0&&(s=e.initial),o===void 0&&(o=e.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const h=c?o:s;if(h&&typeof h!="boolean"&&!Ct(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=Dn(t,f[d]);if(m){const{transitionEnd:x,transition:P,...p}=m;for(const y in p){let v=p[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(r[y]=v)}for(const y in x)r[y]=x[y]}}}return r}const Ye=t=>
1(e,n)=>{const i=g.useContext(rt),r=g.useContext(wt),u=()=>gi(t,e,i,r);return n?u():Yn(u)},vi=Ye({scrapeMotionValuesFromProps:Cn,createRenderState:Lt}),Pi=Ye({scrapeMotionValuesFromProps:wn,createRenderState:Ke}),xi=Symbol.for("motionComponentSymbol");function U(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ti(t,e,n){return g.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):U(n)&&(n.current=i))},[e])}const _e=g.createContext({});function Si(t,e,n,i,r){var x,P;const{visualElement:u}=g.useContext(rt),s=g.useContext($e),o=g.useContext(wt),a=g.useContext(Ge).reducedMotion,l=g.useRef(null);i=i||s.renderer,!l.current&&i&&(l.current=i(t,{visualState:e,parent:u,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current,h=g.useContext(_e);c&&!c.projection&&r&&(c.type==="html"||c.type==="svg")&&Ai(l.current,n,r,h);const f=g.useRef(!1);g.useInsertionEffect(()=>{c&&f.current&&c.update(n,o)});const d=n[En],m=g.useRef(!!d&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,d))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,d)));return _n(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)==null||p.call(window,d)}),m.current=!1),c.enteringChildren=void 0)}),c}function Ai(t,e,n,i){const{layoutId:r,layout:u,drag:s,dragConstraints:o,layoutScroll:a,layoutRoot:l,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:qe(t.parent)),t.projection.setOptions({layoutId:r,layout:u,alwaysMeasureLayout:!!s||o&&U(o),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,crossfade:c,layoutScroll:a,layoutRoot:l})}function qe(t){if(t)return t.options.allowProjection!==!1?t.projection:qe(t.parent)}function ut(t,{forwardMotionProps:e=!1}={},n,i){n&&si(n);const r=Vt(t)?Pi:vi;function u(o,a){let l;const c={...g.useContext(Ge),...o,layoutId:Di(o)},{isStatic:h}=c,f=ci(o),d=r(o,h);if(!h&&Ee){Ci();const m=wi(c);l=m.MeasureLayout,f.visualElement=Si(t,d,c,i,m.ProjectionNode)}return vt.jsxs(rt.Provider,{value:f,children:[l&&f.visualElement?vt.jsx(l,{visualElement:f.visualElement,...c}):null,pi(t,o,Ti(d,f.visualElement,a),d,h,e)]})}u.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=g.forwardRef(u);return s[xi]=t,s}function Di({layoutId:t}){const e=g.useContext(Ue).id;return e&&t!==void 0?e+"-"+t:t}function Ci(t,e){g.useContext($e).strict}function wi(t){const{drag:e,layout:n}=Pt;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Ei(t,e){if(typeof Proxy>"u")return ut;const n=new Map,i=(u,s)=>ut(u,s,t,e),r=(u,s)=>i(u,s);return new Proxy(r,{get:(u,s)=>s==="create"?i:(n.has(s)||n.set(s,ut(s,void 0,t,e)),n.get(s))})}const Li=(t,e)=>Vt(t)?new Ln(e):new Vn(e,{allowProjection:t!==g.Fragment});function Ze(t,e,n,i=0,r=1){const u=Array.from(t).sort((l,c)=>l.sortNodePosition(c)).indexOf(e),s=t.size,o=(s-1)*i;return typeof n=="function"?n(u,s):r===1?u*i:o-u*i}function Tt(t,e,n={}){var a;const i=G(t,e,n.type==="exit"?(a=t.presenceContext)==null?void 0:a.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const u=i?()=>Promise.all(Ve(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return Vi(t,e,l,c,h,f,n)}:()=>Promise.resolve(),{when:o}=r;if(o){const[l,c]=o==="beforeChildren"?[u,s]:[s,u];return l().then(()=>c())}else return Promise.all([u(),s(n.delay)])}function Vi(t,e,n=0,i=0,r=0,u=1,s){const o=[];for(const a of t.variantChildren)a.notify("AnimationStart",e),o.push(Tt(a,e,{...s,delay:n+(typeof i=="function"?0:i)+Ze(t.variantChildren,a,i,r,u)}).then(()=>a.notify("AnimationComplete",e)));return Promise.all(o)}function Ri(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(u=>Tt(t,u,n));i=Promise.all(r)}else if(typeof e=="string")i=Tt(t,e,n);else{const r=typeof e=="function"?G(t,e,n.custom):e;i=Promise.all(Ve(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Je(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const bi=Re.length;function Qe(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Qe(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<bi;n++){const i=Re[n],r=t.props[i];(it(r)||r===!1)&&(e[i]=r)}return e}const Mi=[...be].reverse(),ji=be.length;function Bi(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Ri(t,n,i)))}function ki(t){let e=Bi(t),n=Xt(),i=!0;const r=a=>(l,c)=>{var f;const h=G(t,c,a==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:d,transitionEnd:m,...x}=h;l={...l,...x,...m}}return l};function u(a){e=a(t)}function s(a){const{props:l}=t,c=Qe(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let P=0;P<ji;P++){const p=Mi[P],y=n[p],v=l[p]!==void 0?l[p]:c[p],w=it(v),M=p===a?y.isActive:null;M===!1&&(m=P);let q=v===c[p]&&v!==l[p]&&w;if(q&&i&&t.manuallyAnimateOnMount&&(q=!1),y.protectedKeys={...d},!y.isActive&&M===null||!v&&!y.prevProp||Ct(v)||typeof v=="boolean")continue;const Rt=Ii(y.prevProp,v);let at=Rt||p===a&&y.isActive&&!q&&w||P>m&&w,bt=!1;const Mt=Array.isArray(v)?v:[v];let W=Mt.reduce(r(p),{});M===!1&&(W={});const{prevResolvedValues:jt={}}=y,pn={...jt,...W},Bt=A=>{at=!0,f.has(A)&&(bt=!0,f.delete(A)),y.needsAnimating[A]=!0;const L=t.getValue(A);L&&(L.liveStyle=!1)};for(const A in pn){const L=W[A],B=jt[A];
vendor: 20,820 bytes, line 1
1if(d.hasOwnProperty(A))continue;let I=!1;It(L)&&It(B)?I=!Je(L,B):I=L!==B,I?L!=null?Bt(A):f.add(A):L!==void 0&&f.has(A)?Bt(A):y.protectedKeys[A]=!0}y.prevProp=v,y.prevResolvedValues=W,y.isActive&&(d={...d,...W}),i&&t.blockInitialAnimation&&(at=!1);const kt=q&&Rt;at&&(!kt||bt)&&h.push(...Mt.map(A=>{const L={type:p};if(typeof A=="string"&&i&&!kt&&t.manuallyAnimateOnMount&&t.parent){const{parent:B}=t,I=G(B,A);if(B.enteringChildren&&I){const{delayChildren:gn}=I.transition||{};L.delay=Ze(B.enteringChildren,t,gn)}}return{animation:A,options:L}}))}if(f.size){const P={};if(typeof l.initial!="boolean"){const p=G(t,Array.isArray(l.initial)?l.initial[0]:l.initial);p&&p.transition&&(P.transition=p.transition)}f.forEach(p=>{const y=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),P[p]=y??null}),h.push({animation:P})}let x=!!h.length;return i&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(x=!1),i=!1,x?e(h):Promise.resolve()}function o(a,l){var h;if(n[a].isActive===l)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(a,l)}),n[a].isActive=l;const c=s(a);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:u,getState:()=>n,reset:()=>{n=Xt()}}}function Ii(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Je(e,t):!1}function k(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xt(){return{animate:k(!0),whileInView:k(),whileHover:k(),whileTap:k(),whileDrag:k(),whileFocus:k(),exit:k()}}class j{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Oi extends j{constructor(e){super(e),e.animationState||(e.animationState=ki(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ct(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Fi=0;class Ui extends j{constructor(){super(...arguments),this.id=Fi++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Ni={animation:{Feature:Oi},exit:{Feature:Ui}};function Y(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function _(t){return{point:{x:t.pageX,y:t.pageY}}}const Wi=t=>e=>Et(e)&&t(e,_(e));function $(t,e,n,i){return Y(t,e,Wi(n),i)}const tn=1e-4,Hi=1-tn,Gi=1+tn,en=.01,$i=0-en,zi=0+en;function C(t){return t.max-t.min}function Xi(t,e,n){return Math.abs(t-e)<=n}function Kt(t,e,n,i=.5){t.origin=i,t.originPoint=S(e.min,e.max,t.origin),t.scale=C(n)/C(e),t.translate=S(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Hi&&t.scale<=Gi||isNaN(t.scale))&&(t.scale=1),(t.translate>=$i&&t.translate<=zi||isNaN(t.translate))&&(t.translate=0)}function z(t,e,n,i){Kt(t.x,e.x,n.x,i?i.originX:void 0),Kt(t.y,e.y,n.y,i?i.originY:void 0)}function Yt(t,e,n){t.min=n.min+e.min,t.max=t.min+C(e)}function Ki(t,e,n){Yt(t.x,e.x,n.x),Yt(t.y,e.y,n.y)}function _t(t,e,n){t.min=e.min-n.min,t.max=t.min+C(e)}function X(t,e,n){_t(t.x,e.x,n.x),_t(t.y,e.y,n.y)}function R(t){return[t("x"),t("y")]}const nn=({current:t})=>t?t.ownerDocument.defaultView:null,qt=(t,e)=>Math.abs(t-e);function Yi(t,e){const n=qt(t.x,e.x),i=qt(t.y,e.y);return Math.sqrt(n**2+i**2)}class sn{constructor(e,n,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:u=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=ft(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=Yi(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:x}=f,{timestamp:P}=E;this.history.push({...x,timestamp:P});const{onStart:p,onMove:y}=this.handlers;d||(p&&p(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ht(d,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ft(f.type==="pointercancel"?this.lastMoveEventInfo:ht(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,p),x&&x(f,p)},!Et(e))return;this.dragSnapToOrigin=u,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=r||window;const o=_(e),a=ht(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=E;this.history=[{...l,timestamp:c}];const{onSessionStart:h}=n;h&&h(e,ft(a,this.history)),this.removeListeners=Me($(this.contextWindow,"pointermove",this.handlePointerMove),$(this.contextWindow,"pointerup",this.handlePointerUp),$(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),K(this.updatePoint)}}function ht(t,e){return e?{point:e(t.point)}:t}function Zt(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ft({point:t},e){return{point:t,delta:Zt(t,on(e)),offset:Zt(t,_i(e)),velocity:qi(e,.1)}}function _i(t){return t[0]}function on(t){return t[t.length-1]}function qi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=on(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Rn(e)));)n--;if(!i)return{x:0,y:0};const u=bn(r.timestamp-i.timestamp);if(u===0)return{x:0,y:0};const s={x:(r.x-i.x)/u,y:(r.y-i.y)/u};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Zi(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?S(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?S(n,t,i.max):Math.min(t,n)),t}function Jt(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 Ji(t,{top:e,left:n,bottom:i,right:r}){return{x:Jt(t.x,n,r),y:Jt(t.y,e,i)}}function Qt(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Qi(t,e){return{x:Qt(t.x,e.x),y:Qt(t.y,e.y)}}function ts(t,e){let n=.5;const i=C(t),r=C(e);return r>i?n=xt(e.min,e.max-i,t.min):i>r&&(n=xt(t.min,t.max-r,e.min)),je(0,1,n)}function es(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 St=.35;function ns(t=St){return t===!1?t=0:t===!0&&(t=St),{x:te(t,"left","right"),y:te(t,"top","bottom")}}function te(t,e,n){return{min:ee(t,e),max:ee(t,n)}}function ee(t,e){return typeof t=="number"?t:t[e]||0}const is=new WeakMap;class ss{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=T(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_(h).point)},s=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:x}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zn(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),R(p=>{let y=this.getAxisMotionValue(p).get()||0;if(st.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[p];w&&(y=C(w)*(parseFloat(y)/100))}}this.originPoint[p]=y}),x&&D.postRender(()=>x(h,f)),Ot(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},o=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:x,onDrag:P}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(m&&this.currentDirection===null){this.currentDirection=os(p),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),P&&P(h,f)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>R(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new sn(e,{onSessionStart:u,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:nn(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,r=n||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!r||!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&D.postRender(()=>o(i,r))}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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Q(e,r,this.currentDirection))return;const u=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=Zi(s,this.constraints[e],this.elastic[e])),u.set(s)}resolveConstraints(){var u;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,r=this.constraints;e&&U(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=Ji(i.layoutBox,e):this.constraints=!1,this.elastic=ns(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&R(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=es(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!U(e))return!1;const i=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const u=Mn(i,r.root,this.visualElement.getTransformPagePoint());let s=Qi(r.layout.layoutBox,u);if(n){const o=n(jn(s));this.hasMutatedConstraints=!!o,o&&(s=Bn(o))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:u,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=R(c=>{if(!Q(c,n,this.currentDirection))return;let h=a&&a[c]||{};s&&(h={min:0,max:0});const f=r?200:1e6,d=r?40:1e7,m={type:"inertia",velocity:i?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...u,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(o)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Ot(this.visualElement,e),i.start(kn(e,i,0,n,this.visualElement,!1))}stopAnimation(){R(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){R(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){R(n=>{const{drag:i}=this.getProps();if(!Q(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,u=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:o}=r.layout.layoutBox[n];u.set(e[n]-S(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!U(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};R(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const a=o.get();r[s]=ts({min:a,max:a},this.constraints[s])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),R(s=>{if(!Q(s,e,null))return;const o=this.getAxisMotionValue(s),{min:a,max:l}=this.constraints[s];o.set(S(a,l,r[s]))})}addListeners(){if(!this.visualElement.current)return;is.set(this.visualElement,this);const e=this.visualElement.current,n=$(e,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();U(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,u=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),D.read(i);const s=Y(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(R(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=a[c].translate,h.set(h.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),u(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:u=!1,dragElastic:s=St,dragMomentum:o=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:u,dragElastic:s,dragMomentum:o}}}function Q(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function os(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class rs extends j{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new ss(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}const ne=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class as extends j{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new sn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ne(e),onStart:ne(n),onMove:i,onEnd:(u,s)=>{delete this.session,r&&D.postRender(()=>r(u,s))}}}mount(){this.removePointerDownListener=$(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ie(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const H={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Be.test(t))t=parseFloat(t);else return t;const n=ie(t,e.target.x),i=ie(t,e.target.y);return`${n}% ${i}%`}},ls={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Ft.parse(t);if(r.length>5)return i;const u=Ft.createTransformer(t),s=typeof r[0]!="number"?1:0,o=n.x.scale*e.x,a=n.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;const l=S(o,a,.5);return typeof r[2+s]=="number"&&(r[2+s]/=l),typeof r[3+s]=="number"&&(r[3+s]/=l),u(r)}};let dt=!1;class cs extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:u}=e;In(us),u&&(n.group&&n.group.add(u),i&&i.register&&r&&i.register(u),dt&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:u}=this.props,{projection:s}=i;return s&&(s.isPresent=u,dt=!0,r||e.layoutDependency!==n||n===void 0||e.isPresent!==u?s.willUpdate():this.safeToRemove(),e.isPresent!==u&&(u?s.promote():s.relegate()||D.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ke.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;dt=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rn(t){const[e,n]=ii(),i=g.useContext(Ue);return vt.jsx(cs,{...t,layoutGroup:i,switchLayoutGroup:g.useContext(_e),isPresent:e,safeToRemove:n})}const us={borderRadius:{...H,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomLeftRadius:H,borderBottomRightRadius:H,boxShadow:ls},hs=(t,e)=>t.depth-e.depth;class fs{constructor(){this.children=[],this.isDirty=!1}add(e){Ie(this.children,e),this.isDirty=!0}remove(e){Oe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hs),this.isDirty=!1,this.children.forEach(e)}}function ds(t,e){const n=Fe.now(),i=({timestamp:r})=>{const u=r-n;u>=e&&(K(i),t(u-e))};return D.setup(i,!0),()=>K(i)}const an=["TopLeft","TopRight","BottomLeft","BottomRight"],ms=an.length,se=t=>typeof t=="string"?parseFloat(t):t,oe=t=>typeof t=="number"||Be.test(t);function ps(t,e,n,i,r,u){r?(t.opacity=S(0,n.opacity??1,gs(i)),t.opacityExit=S(e.opacity??1,0,ys(i))):u&&(t.opacity=S(e.opacity??1,n.opacity??1,i));for(let s=0;s<ms;s++){const o=`border${an[s]}Radius`;let a=re(e,o),l=re(n,o);if(a===void 0&&l===void 0)continue;a||(a=0),l||(l=0),a===0||l===0||oe(a)===oe(l)?(t[o]=Math.max(S(se(a),se(l),i),0),(st.test(l)||st.test(a))&&(t[o]+="%")):t[o]=l}(e.rotate||n.rotate)&&(t.rotate=S(e.rotate||0,n.rotate||0,i))}function re(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const gs=ln(0,.5,On),ys=ln(.5,.95,N);function ln(t,e,n){return i=>i<t?0:i>e?1:n(xt(t,e,i))}function ae(t,e){t.min=e.min,t.max=e.max}function V(t,e){ae(t.x,e.x),ae(t.y,e.y)}function le(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ce(t,e,n,i,r){return t-=e,t=Ut(t,1/n,i),r!==void 0&&(t=Ut(t,1/r,i)),t}function vs(t,e=0,n=1,i=.5,r,u=t,s=t){if(st.test(e)&&(e=parseFloat(e),e=S(s.min,s.max,e/100)-s.min),typeof e!="number")return;let o=S(u.min,u.max,i);t===u&&(o-=e),t.min=ce(t.min,e,n,o,r),t.max=ce(t.max,e,n,o,r)}function ue(t,e,[n,i,r],u,s){vs(t,e[n],e[i],e[r],e.scale,u,s)}const Ps=["x","scaleX","originX"],xs=["y","scaleY","originY"];function he(t,e,n,i){ue(t.x,e,Ps,n?n.x:void 0,i?i.x:void 0),ue(t.y,e,xs,n?n.y:void 0,i?i.y:void 0)}function fe(t){return t.translate===0&&t.scale===1}function cn(t){return fe(t.x)&&fe(t.y)}function de(t,e){return t.min===e.min&&t.max===e.max}function Ts(t,e){return de(t.x,e.x)&&de(t.y,e.y)}function me(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function un(t,e){return me(t.x,e.x)&&me(t.y,e.y)}function pe(t){return C(t.x)/C(t.y)}function ge(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ss{constructor(){this.members=[]}add(e){Ie(this.members,e),e.scheduleRender()}remove(e){if(Oe(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(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const u=this.members[r];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}
vendor: 4,873 bytes, line 1
1scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function As(t,e,n){let i="";const r=t.x.translate/e.x,u=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||u||s)&&(i=`translate3d(${r}px, ${u}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),f&&(i+=`rotateY(${f}deg) `),d&&(i+=`skewX(${d}deg) `),m&&(i+=`skewY(${m}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(i+=`scale(${o}, ${a})`),i||"none"}const mt=["","X","Y","Z"],Ds=1e3;let Cs=0;function pt(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function hn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Kn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(r||u))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&hn(i)}function fn({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},o=e==null?void 0:e()){this.id=Cs++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ls),this.nodes.forEach(Ms),this.nodes.forEach(js),this.nodes.forEach(Vs)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fs)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Fn),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const a=this.eventHandlers.get(s);a&&a.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Un(s)&&!Nn(s),this.instance=s;const{layoutId:o,layout:a,visualElement:l}=this.options;if(l&&!l.current&&l.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(a||o)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),t(s,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=ds(f,250),nt.hasAnimatedSinceResize&&(nt.hasAnimatedSinceResize=!1,this.nodes.forEach(Pe)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||a)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||Fs,{onLayoutAnimationStart:x,onLayoutAnimationComplete:P}=l.getProps(),p=!this.targetLayout||!un(this.targetLayout,d),y=!h&&f;if(this.options.layoutRoot||this.resumeFrom||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Wn(m,"layout"),onPlay:x,onComplete:P};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,y)}else h||Pe(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),K(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.forEac
vendor: 12,901 bytes, line 1
1h(Bs),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:o,layout:a}=this.options;if(o===void 0&&!a)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ye);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ve);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bs),this.nodes.forEach(ws),this.nodes.forEach(Es)):this.nodes.forEach(ve),this.clearAllSnapshots();const o=Fe.now();E.delta=je(0,1e3/60,o-E.timestamp),E.timestamp=o,E.isProcessing=!0,lt.update.process(E),lt.preRender.process(E),lt.render.process(E),E.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ke.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Rs),this.sharedNodes.forEach(ks)}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(),this.snapshot&&!C(this.snapshot.measuredBox.x)&&!C(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=T(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o&&this.instance){const a=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:a,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:a}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!cn(this.projectionDelta),a=this.getTransformTemplate(),l=a?a(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;s&&this.instance&&(o||O(this.latestValues)||c)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let a=this.removeElementScroll(o);return s&&(a=this.removeTransform(a)),Us(a),{animationId:this.root.animationId,measuredBox:o,layoutBox:a,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:s}=this.options;if(!s)return T();const o=s.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Ns))){const{scroll:c}=this.root;c&&(Z(o.x,c.offset.x),Z(o.y,c.offset.y))}return o}removeElementScroll(s){var a;const o=T();if(V(o,s),(a=this.scroll)!=null&&a.wasRoot)return o;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&V(o,s),Z(o.x,h.offset.x),Z(o.y,h.offset.y))}return o}applyTransform(s,o=!1){const a=T();V(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&J(a,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),O(c.latestValues)&&J(a,c.latestValues)}return O(this.latestValues)&&J(a,this.latestValues),a}removeTransform(s){const o=T();V(o,s);for(let a=0;a<this.path.length;a++){const l=this.path[a];if(!l.instance||!O(l.latestValues))continue;Nt(l.latestValues)&&l.updateSnapshot();const c=T(),h=l.measurePageBox();V(c,h),he(o,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,c)}return O(this.latestValues)&&he(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==E.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var f;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const a=!!this.resumingFrom||this!==o;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=E.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=T(),this.relativeTargetOrigin=T(),X(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),V(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=T(),this.targetWithTransforms=T()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ki(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):V(this.target,this.layout.layoutBox),Hn(this.target,this.targetDelta)):V(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=T(),this.relativeTargetOrigin=T(),X(this.relativeTargetOrigin,this.target,d.target),V(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Nt(this.parent.latestValues)||Gn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var m;const s=this.getLead(),o=!!this.resumingFrom||this!==s;let a=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(a=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===E.timestamp&&(a=!1),a)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;V(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;$n(this.layoutCorrected,this.treeScale,this.path,o),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=T());const{target:d}=s;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(le(this.prevProjectionDelta.x,this.projectionDelta.x),le(this.prevProjectionDelta.y,this.projectionDelta.y)),z(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ge(this.projectionDelta.x,this.prevProjectionDelta.x)||!ge(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=F(),this.projectionDelta=F(),this.projectionDeltaWithTransform=F()}setAnimationOrigin(s,o=!1){const a=this.snapshot,l=a?a.latestValues:{},c={...this.latestValues},h=F();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=T(),d=a?a.source:void 0,m=this.layout?this.layout.source:void 0,x=d!==m,P=this.getStack(),p=!P||P.members.length<=1,y=!!(x&&!p&&this.options.crossfade===!0&&!this.path.some(Os));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const M=w/1e3;xe(h.x,s.x,M),xe(h.y,s.y,M),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(X(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Is(this.relativeTarget,this.relativeTargetOrigin,f,M),v&&Ts(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=T()),V(v,this.relativeTarget)),x&&(this.animationValues=c,ps(c,l,this.latestValues,M,y,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var o,a,l;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(l=(a=this.resumingFrom)==null?void 0:a.currentAnimation)==null||l.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{nt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zn(0)),this.currentAnimation=Xn(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ds),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:a,layout:l,latestValues:c}=s;if(!(!o||!a||!l)){if(this!==s&&this.layout&&l&&dn(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||T();const h=C(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+h;const f=C(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+f}V(o,a),J(o,c),z(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ss),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}
vendor: 4,197 bytes, line 1
1resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(o=!0),!o)return;const l={};a.z&&pt("z",s,l,this.animationValues);for(let c=0;c<mt.length;c++)pt(`rotate${mt[c]}`,s,l,this.animationValues),pt(`skew${mt[c]}`,s,l,this.animationValues);s.render();for(const c in l)s.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);s.scheduleRender()}applyProjectionStyles(s,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const a=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=et(o==null?void 0:o.pointerEvents)||"",s.transform=a?a(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=et(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!O(this.latestValues)&&(s.transform=a?a({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=As(this.projectionDeltaWithTransform,this.treeScale,c);a&&(h=a(c,h)),s.transform=h;const{x:f,y:d}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,l.animationValues?s.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Wt){if(c[m]===void 0)continue;const{correct:x,applyTo:P,isCSSVariable:p}=Wt[m],y=h==="none"?c[m]:x(c[m],l);if(P){const v=P.length;for(let w=0;w<v;w++)s[P[w]]=y}else p?this.options.visualElement.renderState.vars[m]=y:s[m]=y}this.options.layoutId&&(s.pointerEvents=l===this?et(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(ye),this.root.sharedNodes.clear()}}}function ws(t){t.updateLayout()}function Es(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:u}=t.options,s=e.source!==t.layout.source;u==="size"?R(h=>{const f=s?e.measuredBox[h]:e.layoutBox[h],d=C(f);f.min=i[h].min,f.max=f.min+d}):dn(u,e.layoutBox,i)&&R(h=>{const f=s?e.measuredBox[h]:e.layoutBox[h],d=C(i[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const o=F();z(o,i,e.layoutBox);const a=F();s?z(a,t.applyTransform(r,!0),e.measuredBox):z(a,i,e.layoutBox);const l=!cn(o);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=T();X(m,e.layoutBox,f.layoutBox);const x=T();X(x,i,d.layoutBox),un(m,x)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=x,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Ls(t){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 Vs(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Rs(t){t.clearSnapshot()}function ye(t){t.clearMeasurements()}function ve(t){t.isLayoutDirty=!1}function bs(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Pe(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ms(t){t.resolveTargetDelta()}function js(t){t.calcProjection()}
vendor: 4,315 bytes, line 1
1function Bs(t){t.resetSkewAndRotation()}function ks(t){t.removeLeadSnapshot()}function xe(t,e,n){t.translate=S(e.translate,0,n),t.scale=S(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Te(t,e,n,i){t.min=S(e.min,n.min,i),t.max=S(e.max,n.max,i)}function Is(t,e,n,i){Te(t.x,e.x,n.x,i),Te(t.y,e.y,n.y,i)}function Os(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Fs={duration:.45,ease:[.4,0,.1,1]},Se=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ae=Se("applewebkit/")&&!Se("chrome/")?Math.round:N;function De(t){t.min=Ae(t.min),t.max=Ae(t.max)}function Us(t){De(t.x),De(t.y)}function dn(t,e,n){return t==="position"||t==="preserve-aspect"&&!Xi(pe(e),pe(n),.2)}function Ns(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Ws=fn({attachResizeListener:(t,e)=>Y(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gt={current:void 0},mn=fn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!gt.current){const t=new Ws({});t.mount(window),t.setOptions({layoutScroll:!0}),gt.current=t}return gt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Hs={pan:{Feature:as},drag:{Feature:rs,ProjectionNode:mn,MeasureLayout:rn}};function Ce(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,u=i[r];u&&D.postRender(()=>u(e,_(e)))}class Gs extends j{mount(){const{current:e}=this.node;e&&(this.unmount=Jn(e,(n,i)=>(Ce(this.node,i,"Start"),r=>Ce(this.node,r,"End"))))}unmount(){}}class $s extends j{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=Me(Y(this.node.current,"focus",()=>this.onFocus()),Y(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function we(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),u=i[r];u&&D.postRender(()=>u(e,_(e)))}class zs extends j{mount(){const{current:e}=this.node;e&&(this.unmount=ni(e,(n,i)=>(we(this.node,i,"Start"),(r,{success:u})=>we(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const At=new WeakMap,yt=new WeakMap,Xs=t=>{const e=At.get(t.target);e&&e(t)},Ks=t=>{t.forEach(Xs)};function Ys({root:t,...e}){const n=t||document;yt.has(n)||yt.set(n,{});const i=yt.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Ks,{root:t,...e})),i[r]}function _s(t,e,n){const i=Ys(e);return At.set(t,n),i.observe(t),()=>{At.delete(t),i.unobserve(t)}}const qs={some:0,all:1};class Zs extends j{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:u}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:qs[r]},o=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,u&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=l?c:h;f&&f(a)};return _s(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Js(e,n))&&this.startObserver()}unmount(){}}function Js({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Qs={inView:{Feature:Zs},tap:{Feature:zs},focus:{Feature:$s},hover:{Feature:Gs}},to={layout:{ProjectionNode:mn,MeasureLayout:rn}},eo={...Ni,...Qs,...Hs,...to},ro=Ei(eo,Li);export{Ue as L,Ge as M,wt as P,ii as a,_n as b,qn as i,ro as m,Yn as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.