quantum-component-library 1.4.45-qa.4 → 1.4.45-qa.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{babel-vendor-Brd7V25k.js → babel-vendor-BOM86iTb.js} +71 -76
- package/dist/babel-vendor-cKvSpnBp.cjs +3 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +49 -49
- package/dist/{dnd-core-vendor-GeFJIrqw.js → dnd-core-vendor-LFMXiCD5.js} +2 -2
- package/dist/{dnd-core-vendor-DFyhudg3.cjs → dnd-core-vendor-rqY4Q0Vq.cjs} +1 -1
- package/dist/{graphql-vendor-Bp1AYkpN.cjs → graphql-vendor-DRps04BT.cjs} +1 -1
- package/dist/{graphql-vendor-D5ETG7wB.js → graphql-vendor-DUv16c0G.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- package/dist/lodash-vendor-D5A6v3mw.cjs +1 -0
- package/dist/lodash-vendor-Dz4vW7Gd.js +1120 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +6 -6
- package/dist/quantum-component-library.css +1 -1
- package/dist/{react-dnd-vendor-bl4guadi.js → react-dnd-vendor-Cuc51Scz.js} +24 -24
- package/dist/{react-dnd-vendor-CQ6n_Iry.cjs → react-dnd-vendor-FieaWO8Z.cjs} +1 -1
- package/dist/{react-select-vendor-CM41In8Q.js → react-select-vendor-BrXjJVof.js} +35 -35
- package/dist/{react-select-vendor-qYWfPIoq.cjs → react-select-vendor-CVxjkFXv.cjs} +1 -1
- package/dist/services.cjs +1 -1
- package/dist/services.js +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +11 -11
- package/dist/vendor-CPJGEWOn.cjs +45 -0
- package/dist/vendor-CoDHTSgb.js +7981 -0
- package/package.json +3 -3
- package/dist/babel-vendor-pl7onWh-.cjs +0 -3
- package/dist/framer-motion-vendor-BpR8WNZk.js +0 -2945
- package/dist/framer-motion-vendor-DmZv69_a.cjs +0 -9
- package/dist/lodash-vendor-Dkc3o8vE.cjs +0 -1
- package/dist/lodash-vendor-KQku4vKh.js +0 -1602
- package/dist/ui-vendor-CDpwLSe-.cjs +0 -294
- package/dist/ui-vendor-CTkR2JkD.js +0 -10756
- package/dist/vendor-D0fSwmdY.cjs +0 -90
- package/dist/vendor-DxZbxm3m.js +0 -13085
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./vendor-D0fSwmdY.cjs"),g=require("react");function bn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Mt=bn(g),bt=g.createContext({});function Rt(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const Et=typeof window<"u",Ne=Et?g.useLayoutEffect:g.useEffect,tt=g.createContext(null),Lt=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Rn extends Mt.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=n.offsetParent,o=c.isHTMLElement(i)&&i.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=o-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function En({children:t,isPresent:e,anchorX:n,root:i}){const o=g.useId(),r=g.useRef(null),s=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=g.useContext(Lt);return g.useInsertionEffect(()=>{const{width:l,height:h,top:u,left:f,right:d}=s.current;if(e||!r.current||!l||!h)return;const m=n==="left"?`left: ${f}`:`right: ${d}`;r.current.dataset.motionPopId=o;const p=document.createElement("style");a&&(p.nonce=a);const P=i??document.head;return P.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${o}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${l}px !important;
|
|
5
|
-
height: ${h}px !important;
|
|
6
|
-
${m}px !important;
|
|
7
|
-
top: ${u}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{P.contains(p)&&P.removeChild(p)}},[e]),c.jsxRuntimeExports.jsx(Rn,{isPresent:e,childRef:r,sizeRef:s,children:Mt.cloneElement(t,{ref:r})})}const Ln=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:r,mode:s,anchorX:a,root:l})=>{const h=Rt(jn),u=g.useId();let f=!0,d=g.useMemo(()=>(f=!1,{id:u,initial:e,isPresent:n,custom:o,onExitComplete:m=>{h.set(m,!0);for(const p of h.values())if(!p)return;i&&i()},register:m=>(h.set(m,!1),()=>h.delete(m))}),[n,h,i]);return r&&f&&(d={...d}),g.useMemo(()=>{h.forEach((m,p)=>h.set(p,!1))},[n]),Mt.useEffect(()=>{!n&&!h.size&&i&&i()},[n]),s==="popLayout"&&(t=c.jsxRuntimeExports.jsx(En,{isPresent:n,anchorX:a,root:l,children:t})),c.jsxRuntimeExports.jsx(tt.Provider,{value:d,children:t})};function jn(){return new Map}function jt(t=!0){const e=g.useContext(tt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,r=g.useId();g.useEffect(()=>{if(t)return o(r)},[t]);const s=g.useCallback(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,s]:[!0]}function Bn(){return In(g.useContext(tt))}function In(t){return t===null?!0:t.isPresent}const nt=t=>t.key||"";function _t(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const kn=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:r="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[h,u]=jt(s),f=g.useMemo(()=>_t(t),[t]),d=s&&!h?[]:f.map(nt),m=g.useRef(!0),p=g.useRef(f),P=Rt(()=>new Map),[V,v]=g.useState(f),[y,x]=g.useState(f);Ne(()=>{m.current=!1,p.current=f;for(let w=0;w<y.length;w++){const C=nt(y[w]);d.includes(C)?P.delete(C):P.get(C)!==!0&&P.set(C,!1)}},[y,d.length,d.join("-")]);const S=[];if(f!==V){let w=[...f];for(let C=0;C<y.length;C++){const L=y[C],F=nt(L);d.includes(F)||(w.splice(C,0,L),S.push(L))}return r==="wait"&&S.length&&(w=S),x(_t(w)),v(f),null}process.env.NODE_ENV!=="production"&&r==="wait"&&y.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=g.useContext(bt);return c.jsxRuntimeExports.jsx(c.jsxRuntimeExports.Fragment,{children:y.map(w=>{const C=nt(w),L=s&&!h?!1:f===y||d.includes(C),F=()=>{if(P.has(C))P.set(C,!0);else return;let _=!0;P.forEach(B=>{B||(_=!1)}),_&&(M?.(),x(p.current),s&&u?.(),i&&i())};return c.jsxRuntimeExports.jsx(Ln,{isPresent:L,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:r,root:l,onExitComplete:L?void 0:F,anchorX:a,children:w},C)})})},Ue=g.createContext({strict:!1}),Kt={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"]},z={};for(const t in Kt)z[t]={isEnabled:e=>Kt[t].some(n=>!!e[n])};function On(t){for(const e in t)z[e]={...z[e],...t[e]}}const Fn=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 rt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Fn.has(t)}let We=t=>!rt(t);function Nn(t){typeof t=="function"&&(We=e=>e.startsWith("on")?!rt(e):t(e))}try{Nn(require("@emotion/is-prop-valid").default)}catch{}function Un(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(We(o)||n===!0&&rt(o)||!e&&!rt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}const lt=g.createContext({});function ut(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Z(t){return typeof t=="string"||Array.isArray(t)}const Bt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],It=["initial",...Bt];function ct(t){return ut(t.animate)||It.some(e=>Z(t[e]))}function $e(t){return!!(ct(t)||t.variants)}function Wn(t,e){if(ct(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Z(n)?n:void 0,animate:Z(i)?i:void 0}}return t.inherit!==!1?e:{}}function $n(t){const{initial:e,animate:n}=Wn(t,g.useContext(lt));return g.useMemo(()=>({initial:e,animate:n}),[Xt(e),Xt(n)])}function Xt(t){return Array.isArray(t)?t.join(" "):t}const J={};function Hn(t){for(const e in t)J[e]=t[e],c.isCSSVariableName(e)&&(J[e].isCSSVariable=!0)}function He(t,{layout:e,layoutId:n}){return c.transformProps.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!J[t]||t==="opacity")}const Gn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zn=c.transformPropOrder.length;function _n(t,e,n){let i="",o=!0;for(let r=0;r<zn;r++){const s=c.transformPropOrder[r],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const h=c.getValueAsType(a,c.numberValueTypes[s]);if(!l){o=!1;const u=Gn[s]||s;i+=`${u}(${h}) `}n&&(e[s]=h)}}return i=i.trim(),n?i=n(e,o?"":i):o&&(i="none"),i}function kt(t,e,n){const{style:i,vars:o,transformOrigin:r}=t;let s=!1,a=!1;for(const l in e){const h=e[l];if(c.transformProps.has(l)){s=!0;continue}else if(c.isCSSVariableName(l)){o[l]=h;continue}else{const u=c.getValueAsType(h,c.numberValueTypes[l]);l.startsWith("origin")?(a=!0,r[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=_n(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:h="50%",originZ:u=0}=r;i.transformOrigin=`${l} ${h} ${u}`}}const Ot=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ge(t,e,n){for(const i in e)!c.isMotionValue(e[i])&&!He(i,n)&&(t[i]=e[i])}function Kn({transformTemplate:t},e){return g.useMemo(()=>{const n=Ot();return kt(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Xn(t,e){const n=t.style||{},i={};return Ge(i,n,t),Object.assign(i,Kn(t,e)),i}function Yn(t,e){const n={},i=Xn(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 qn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zn={offset:"strokeDashoffset",array:"strokeDasharray"};function Jn(t,e,n=1,i=0,o=!0){t.pathLength=1;const r=o?qn:Zn;t[r.offset]=c.px.transform(-i);const s=c.px.transform(e),a=c.px.transform(n);t[r.array]=`${s} ${a}`}function ze(t,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:r=1,pathOffset:s=0,...a},l,h,u){if(kt(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d}=t;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),o!==void 0&&Jn(f,o,r,s,!1)}const _e=()=>({...Ot(),attrs:{}}),Ke=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Qn(t,e,n,i){const o=g.useMemo(()=>{const r=_e();return ze(r,e,Ke(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Ge(r,t.style,t),o.style={...r,...o.style}}return o}const ti=["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 Ft(t){return typeof t!="string"||t.includes("-")?!1:!!(ti.indexOf(t)>-1||/[A-Z]/u.test(t))}function ei(t,e,n,{latestValues:i},o,r=!1){const a=(Ft(t)?Qn:Yn)(e,i,o,t),l=Un(e,typeof t=="string",r),h=t!==g.Fragment?{...l,...a,ref:n}:{},{children:u}=e,f=g.useMemo(()=>c.isMotionValue(u)?u.get():u,[u]);return g.createElement(t,{...h,children:f})}function Yt(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Nt(t,e,n,i){if(typeof e=="function"){const[o,r]=Yt(i);e=e(n!==void 0?n:t.custom,o,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,r]=Yt(i);e=e(n!==void 0?n:t.custom,o,r)}return e}function st(t){return c.isMotionValue(t)?t.get():t}function ni({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,o){return{latestValues:ii(n,i,o,t),renderState:e()}}function ii(t,e,n,i){const o={},r=i(t,{});for(const d in r)o[d]=st(r[d]);let{initial:s,animate:a}=t;const l=ct(t),h=$e(t);e&&h&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!ut(f)){const d=Array.isArray(f)?f:[f];for(let m=0;m<d.length;m++){const p=Nt(t,d[m]);if(p){const{transitionEnd:P,transition:V,...v}=p;for(const y in v){let x=v[y];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(o[y]=x)}for(const y in P)o[y]=P[y]}}}return o}const Xe=t=>(e,n)=>{const i=g.useContext(lt),o=g.useContext(tt),r=()=>ni(t,e,i,o);return n?r():Rt(r)};function Ut(t,e,n){const{style:i}=t,o={};for(const r in i)(c.isMotionValue(i[r])||e.style&&c.isMotionValue(e.style[r])||He(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=i[r]);return o}const si=Xe({scrapeMotionValuesFromProps:Ut,createRenderState:Ot});function Ye(t,e,n){const i=Ut(t,e,n);for(const o in t)if(c.isMotionValue(t[o])||c.isMotionValue(e[o])){const r=c.transformPropOrder.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[r]=t[o]}return i}const oi=Xe({scrapeMotionValuesFromProps:Ye,createRenderState:_e}),ri=Symbol.for("motionComponentSymbol");function U(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ai(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 Wt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),li="framerAppearId",qe="data-"+Wt(li),Ze=g.createContext({});function ui(t,e,n,i,o){const{visualElement:r}=g.useContext(lt),s=g.useContext(Ue),a=g.useContext(tt),l=g.useContext(Lt).reducedMotion,h=g.useRef(null);i=i||s.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:r,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=h.current,f=g.useContext(Ze);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&ci(h.current,n,o,f);const d=g.useRef(!1);g.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const m=n[qe],p=g.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Ne(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),p.current&&u.animationState&&u.animationState.animateChanges())}),g.useEffect(()=>{u&&(!p.current&&u.animationState&&u.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),p.current=!1),u.enteringChildren=void 0)}),u}function ci(t,e,n,i){const{layoutId:o,layout:r,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Je(t.parent)),t.projection.setOptions({layoutId:o,layout:r,alwaysMeasureLayout:!!s||a&&U(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:u,layoutScroll:l,layoutRoot:h})}function Je(t){if(t)return t.options.allowProjection!==!1?t.projection:Je(t.parent)}function ht(t,{forwardMotionProps:e=!1}={},n,i){n&&On(n);const o=Ft(t)?oi:si;function r(a,l){let h;const u={...g.useContext(Lt),...a,layoutId:hi(a)},{isStatic:f}=u,d=$n(a),m=o(a,f);if(!f&&Et){fi(u,n);const p=di(u);h=p.MeasureLayout,d.visualElement=ui(t,m,u,i,p.ProjectionNode)}return c.jsxRuntimeExports.jsxs(lt.Provider,{value:d,children:[h&&d.visualElement?c.jsxRuntimeExports.jsx(h,{visualElement:d.visualElement,...u}):null,ei(t,a,ai(m,d.visualElement,l),m,f,e)]})}r.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const s=g.forwardRef(r);return s[ri]=t,s}function hi({layoutId:t}){const e=g.useContext(bt).id;return e&&t!==void 0?e+"-"+t:t}function fi(t,e){const n=g.useContext(Ue).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?c.warning(!1,i,"lazy-strict-mode"):c.invariant(!1,i,"lazy-strict-mode")}}function di(t){const{drag:e,layout:n}=z;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function mi(t,e){if(typeof Proxy>"u")return ht;const n=new Map,i=(r,s)=>ht(r,s,t,e),o=(r,s)=>(process.env.NODE_ENV!=="production"&&c.warnOnce(!1,"motion() is deprecated. Use motion.create() instead."),i(r,s));return new Proxy(o,{get:(r,s)=>s==="create"?i:(n.has(s)||n.set(s,ht(s,void 0,t,e)),n.get(s))})}function Qe({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function pi({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function gi(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function ft(t){return t===void 0||t===1}function Pt({scale:t,scaleX:e,scaleY:n}){return!ft(t)||!ft(e)||!ft(n)}function O(t){return Pt(t)||tn(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function tn(t){return qt(t.x)||qt(t.y)}function qt(t){return t&&t!=="0%"}function at(t,e,n){const i=t-n,o=e*i;return n+o}function Zt(t,e,n,i,o){return o!==void 0&&(t=at(t,o,i)),at(t,n,i)+e}function Vt(t,e=0,n=1,i,o){t.min=Zt(t.min,e,n,i,o),t.max=Zt(t.max,e,n,i,o)}function en(t,{x:e,y:n}){Vt(t.x,e.translate,e.scale,e.originPoint),Vt(t.y,n.translate,n.scale,n.originPoint)}const Jt=.999999999999,Qt=1.0000000000001;function yi(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let r,s;for(let a=0;a<o;a++){r=n[a],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&$(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,en(t,s)),i&&O(r.latestValues)&&$(t,r.latestValues))}e.x<Qt&&e.x>Jt&&(e.x=1),e.y<Qt&&e.y>Jt&&(e.y=1)}function W(t,e){t.min=t.min+e,t.max=t.max+e}function te(t,e,n,i,o=.5){const r=c.mixNumber(t.min,t.max,o);Vt(t,e,n,r,i)}function $(t,e){te(t.x,e.x,e.scaleX,e.scale,e.originX),te(t.y,e.y,e.scaleY,e.scale,e.originY)}function nn(t,e){return Qe(gi(t.getBoundingClientRect(),e))}function vi(t,e,n){const i=nn(t,n),{scroll:o}=e;return o&&(W(i.x,o.offset.x),W(i.y,o.offset.y)),i}const ee=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:ee(),y:ee()}),ne=()=>({min:0,max:0}),T=()=>({x:ne(),y:ne()}),Tt={current:null},sn={current:!1};function xi(){if(sn.current=!0,!!Et)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tt.current=t.matches;t.addEventListener("change",e),e()}else Tt.current=!1}const Pi=new WeakMap;function Vi(t,e,n){for(const i in e){const o=e[i],r=n[i];if(c.isMotionValue(o))t.addValue(i,o);else if(c.isMotionValue(r))t.addValue(i,c.motionValue(o,{owner:t}));else if(r!==o)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=t.getStaticValue(i);t.addValue(i,c.motionValue(s!==void 0?s:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const ie=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ti{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=c.KeyframeResolver,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.renderScheduledAt=0,this.scheduleRender=()=>{const d=c.time.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,c.frame.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ct(n),this.isVariantNode=$e(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];l[d]!==void 0&&c.isMotionValue(m)&&m.set(l[d])}}mount(e){this.current=e,Pi.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,i)=>this.bindToMotionValue(i,n)),sn.current||xi(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tt.current,process.env.NODE_ENV!=="production"&&c.warnOnce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),c.cancelFrame(this.notifyUpdate),c.cancelFrame(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=c.transformProps.has(e);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&c.frame.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in z){const n=z[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):T()}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 i=0;i<ie.length;i++){const o=ie[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const r="on"+o,s=e[r];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=Vi(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&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 i=this.values.get(e);return i===void 0&&n!==void 0&&(i=c.motionValue(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(c.isNumericalString(i)||c.isZeroValueString(i))?i=parseFloat(i):!c.findValueType(i)&&c.complex.test(n)&&(i=c.getAnimatableNone(e,n)),this.setBaseTarget(e,c.isMotionValue(i)?i.get():i)),c.isMotionValue(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const r=Nt(this.props,n,this.presenceContext?.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!c.isMotionValue(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 c.SubscriptionManager),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){c.microtask.render(this.render)}}class on extends Ti{constructor(){super(...arguments),this.KeyframeResolver=c.DOMKeyframesResolver}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:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;c.isMotionValue(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function rn(t,{style:e,vars:n},i,o){const r=t.style;let s;for(s in e)r[s]=e[s];o?.applyProjectionStyles(r,i);for(s in n)r.setProperty(s,n[s])}function Si(t){return window.getComputedStyle(t)}class Ci extends on{constructor(){super(...arguments),this.type="html",this.renderInstance=rn}readValueFromInstance(e,n){if(c.transformProps.has(n))return this.projection?.isProjecting?c.defaultTransformValue(n):c.readTransformValue(e,n);{const i=Si(e),o=(c.isCSSVariableName(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return nn(e,n)}build(e,n,i){kt(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ut(e,n,i)}}const an=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 Ai(t,e,n,i){rn(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(an.has(o)?o:Wt(o),e.attrs[o])}class wi extends on{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=T}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(c.transformProps.has(n)){const i=c.getDefaultValueType(n);return i&&i.default||0}return n=an.has(n)?n:Wt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Ye(e,n,i)}build(e,n,i){ze(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){Ai(e,n,i,o)}mount(e){this.isSVGTag=Ke(e.tagName),super.mount(e)}}const Di=(t,e)=>Ft(t)?new wi(e):new Ci(e,{allowProjection:t!==g.Fragment});function G(t,e,n){const i=t.getProps();return Nt(i,e,n!==void 0?n:i.custom,t)}const St=t=>Array.isArray(t);function Mi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,c.motionValue(n))}function bi(t){return St(t)?t[t.length-1]||0:t}function Ri(t,e){const n=G(t,e);let{transitionEnd:i={},transition:o={},...r}=n||{};r={...r,...i};for(const s in r){const a=bi(r[s]);Mi(t,s,a)}}function Ei(t){return!!(c.isMotionValue(t)&&t.add)}function Ct(t,e){const n=t.getValue("willChange");if(Ei(n))return n.add(e);if(!n&&c.MotionGlobalConfig.WillChange){const i=new c.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function ln(t){return t.props[qe]}const Li=t=>t!==null;function ji(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(Li),r=e&&n!=="loop"&&e%2===1?0:o.length-1;return o[r]}const Bi={type:"spring",stiffness:500,damping:25,restSpeed:10},Ii=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ki={type:"keyframes",duration:.8},Oi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fi=(t,{keyframes:e})=>e.length>2?ki:c.transformProps.has(t)?t.startsWith("scale")?Ii(e[1]):Bi:Oi;function Ni({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:r,repeatType:s,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}const $t=(t,e,n,i={},o,r)=>s=>{const a=c.getValueTransition(i,t)||{},l=a.delay||i.delay||0;let{elapsed:h=0}=i;h=h-c.secondsToMilliseconds(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:o};Ni(a)||Object.assign(u,Fi(t,u)),u.duration&&(u.duration=c.secondsToMilliseconds(u.duration)),u.repeatDelay&&(u.repeatDelay=c.secondsToMilliseconds(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(c.makeAnimationInstant(u),u.delay===0&&(f=!0)),(c.MotionGlobalConfig.instantAnimations||c.MotionGlobalConfig.skipAnimations)&&(f=!0,c.makeAnimationInstant(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const d=ji(u.keyframes,a);if(d!==void 0){c.frame.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new c.JSAnimation(u):new c.AsyncMotionValueAnimation(u)};function Ui({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function un(t,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:s,...a}=e;i&&(r=i);const l=[],h=o&&t.animationState&&t.animationState.getState()[o];for(const u in a){const f=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||h&&Ui(h,u))continue;const m={delay:n,...c.getValueTransition(r||{},u)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!m.velocity)continue;let P=!1;if(window.MotionHandoffAnimation){const v=ln(t);if(v){const y=window.MotionHandoffAnimation(v,u,c.frame);y!==null&&(m.startTime=y,P=!0)}}Ct(t,u),f.start($t(u,f,d,t.shouldReduceMotion&&c.positionalKeys.has(u)?{type:!1}:m,t,P));const V=f.animation;V&&l.push(V)}return s&&Promise.all(l).then(()=>{c.frame.update(()=>{s&&Ri(t,s)})}),l}function cn(t,e,n,i=0,o=1){const r=Array.from(t).sort((h,u)=>h.sortNodePosition(u)).indexOf(e),s=t.size,a=(s-1)*i;return typeof n=="function"?n(r,s):o===1?r*i:a-r*i}function At(t,e,n={}){const i=G(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(un(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:h=0,staggerChildren:u,staggerDirection:f}=o;return Wi(t,e,l,h,u,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,h]=a==="beforeChildren"?[r,s]:[s,r];return l().then(()=>h())}else return Promise.all([r(),s(n.delay)])}function Wi(t,e,n=0,i=0,o=0,r=1,s){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(At(l,e,{...s,delay:n+(typeof i=="function"?0:i)+cn(t.variantChildren,l,i,o,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function $i(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(r=>At(t,r,n));i=Promise.all(o)}else if(typeof e=="string")i=At(t,e,n);else{const o=typeof e=="function"?G(t,e,n.custom):e;i=Promise.all(un(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function hn(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 Hi=It.length;function fn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?fn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Hi;n++){const i=It[n],o=t.props[i];(Z(o)||o===!1)&&(e[i]=o)}return e}const Gi=[...Bt].reverse(),zi=Bt.length;function _i(t){return e=>Promise.all(e.map(({animation:n,options:i})=>$i(t,n,i)))}function Ki(t){let e=_i(t),n=se(),i=!0;const o=l=>(h,u)=>{const f=G(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;h={...h,...p,...m}}return h};function r(l){e=l(t)}function s(l){const{props:h}=t,u=fn(t.parent)||{},f=[],d=new Set;let m={},p=1/0;for(let V=0;V<zi;V++){const v=Gi[V],y=n[v],x=h[v]!==void 0?h[v]:u[v],S=Z(x),M=v===l?y.isActive:null;M===!1&&(p=V);let w=x===u[v]&&x!==h[v]&&S;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...m},!y.isActive&&M===null||!x&&!y.prevProp||ut(x)||typeof x=="boolean")continue;const C=Xi(y.prevProp,x);let L=C||v===l&&y.isActive&&!w&&S||V>p&&S,F=!1;const _=Array.isArray(x)?x:[x];let B=_.reduce(o(v),{});M===!1&&(B={});const{prevResolvedValues:Ht={}}=y,Dn={...Ht,...B},Gt=A=>{L=!0,d.has(A)&&(F=!0,d.delete(A)),y.needsAnimating[A]=!0;const b=t.getValue(A);b&&(b.liveStyle=!1)};for(const A in Dn){const b=B[A],I=Ht[A];if(m.hasOwnProperty(A))continue;let N=!1;St(b)&&St(I)?N=!hn(b,I):N=b!==I,N?b!=null?Gt(A):d.add(A):b!==void 0&&d.has(A)?Gt(A):y.protectedKeys[A]=!0}y.prevProp=x,y.prevResolvedValues=B,y.isActive&&(m={...m,...B}),i&&t.blockInitialAnimation&&(L=!1);const zt=w&&C;L&&(!zt||F)&&f.push(..._.map(A=>{const b={type:v};if(typeof A=="string"&&i&&!zt&&t.manuallyAnimateOnMount&&t.parent){const{parent:I}=t,N=G(I,A);if(I.enteringChildren&&N){const{delayChildren:Mn}=N.transition||{};b.delay=cn(I.enteringChildren,t,Mn)}}return{animation:A,options:b}}))}if(d.size){const V={};if(typeof h.initial!="boolean"){const v=G(t,Array.isArray(h.initial)?h.initial[0]:h.initial);v&&v.transition&&(V.transition=v.transition)}d.forEach(v=>{const y=t.getBaseTarget(v),x=t.getValue(v);x&&(x.liveStyle=!0),V[v]=y??null}),f.push({animation:V})}let P=!!f.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(P=!1),i=!1,P?e(f):Promise.resolve()}function a(l,h){if(n[l].isActive===h)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(l,h)),n[l].isActive=h;const u=s(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=se(),i=!0}}}function Xi(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!hn(e,t):!1}function k(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function se(){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 Yi extends j{constructor(e){super(e),e.animationState||(e.animationState=Ki(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ut(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(){this.node.animationState.reset(),this.unmountControls?.()}}let qi=0;class Zi extends j{constructor(){super(...arguments),this.id=qi++}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 o=this.node.animationState.setActive("exit",!e);n&&!e&&o.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 Ji={animation:{Feature:Yi},exit:{Feature:Zi}};function Q(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function et(t){return{point:{x:t.pageX,y:t.pageY}}}const Qi=t=>e=>c.isPrimaryPointer(e)&&t(e,et(e));function X(t,e,n,i){return Q(t,e,Qi(n),i)}const dn=1e-4,ts=1-dn,es=1+dn,mn=.01,ns=0-mn,is=0+mn;function D(t){return t.max-t.min}function ss(t,e,n){return Math.abs(t-e)<=n}function oe(t,e,n,i=.5){t.origin=i,t.originPoint=c.mixNumber(e.min,e.max,t.origin),t.scale=D(n)/D(e),t.translate=c.mixNumber(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ts&&t.scale<=es||isNaN(t.scale))&&(t.scale=1),(t.translate>=ns&&t.translate<=is||isNaN(t.translate))&&(t.translate=0)}function Y(t,e,n,i){oe(t.x,e.x,n.x,i?i.originX:void 0),oe(t.y,e.y,n.y,i?i.originY:void 0)}function re(t,e,n){t.min=n.min+e.min,t.max=t.min+D(e)}function os(t,e,n){re(t.x,e.x,n.x),re(t.y,e.y,n.y)}function ae(t,e,n){t.min=e.min-n.min,t.max=t.min+D(e)}function q(t,e,n){ae(t.x,e.x,n.x),ae(t.y,e.y,n.y)}function E(t){return[t("x"),t("y")]}const pn=({current:t})=>t?t.ownerDocument.defaultView:null,le=(t,e)=>Math.abs(t-e);function rs(t,e){const n=le(t.x,e.x),i=le(t.y,e.y);return Math.sqrt(n**2+i**2)}class gn{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:r=!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 d=mt(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=rs(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:P}=d,{timestamp:V}=c.frameData;this.history.push({...P,timestamp:V});const{onStart:v,onMove:y}=this.handlers;m||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=dt(m,this.transformPagePoint),c.frame.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:P,resumeAnimation:V}=this.handlers;if(this.dragSnapToOrigin&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=mt(d.type==="pointercancel"?this.lastMoveEventInfo:dt(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,v),P&&P(d,v)},!c.isPrimaryPointer(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=o||window;const a=et(e),l=dt(a,this.transformPagePoint),{point:h}=l,{timestamp:u}=c.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:f}=n;f&&f(e,mt(l,this.history)),this.removeListeners=c.pipe(X(this.contextWindow,"pointermove",this.handlePointerMove),X(this.contextWindow,"pointerup",this.handlePointerUp),X(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),c.cancelFrame(this.updatePoint)}}function dt(t,e){return e?{point:e(t.point)}:t}function ue(t,e){return{x:t.x-e.x,y:t.y-e.y}}function mt({point:t},e){return{point:t,delta:ue(t,yn(e)),offset:ue(t,as(e)),velocity:ls(e,.1)}}function as(t){return t[0]}function yn(t){return t[t.length-1]}function ls(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=yn(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>c.secondsToMilliseconds(e)));)n--;if(!i)return{x:0,y:0};const r=c.millisecondsToSeconds(o.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(o.x-i.x)/r,y:(o.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function us(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?c.mixNumber(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?c.mixNumber(n,t,i.max):Math.min(t,n)),t}function ce(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 cs(t,{top:e,left:n,bottom:i,right:o}){return{x:ce(t.x,n,o),y:ce(t.y,e,i)}}function he(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 hs(t,e){return{x:he(t.x,e.x),y:he(t.y,e.y)}}function fs(t,e){let n=.5;const i=D(t),o=D(e);return o>i?n=c.progress(e.min,e.max-i,t.min):i>o&&(n=c.progress(t.min,t.max-o,e.min)),c.clamp(0,1,n)}function ds(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 wt=.35;function ms(t=wt){return t===!1?t=0:t===!0&&(t=wt),{x:fe(t,"left","right"),y:fe(t,"top","bottom")}}function fe(t,e,n){return{min:de(t,e),max:de(t,n)}}function de(t,e){return typeof t=="number"?t:t[e]||0}const ps=new WeakMap;class gs{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:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(et(f).point)},s=(f,d)=>{const{drag:m,dragPropagation:p,onDragStart:P}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=c.setDragLock(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),E(v=>{let y=this.getAxisMotionValue(v).get()||0;if(c.percent.test(y)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(y=D(S)*(parseFloat(y)/100))}}this.originPoint[v]=y}),P&&c.frame.postRender(()=>P(f,d)),Ct(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:P,onDrag:V}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=d;if(p&&this.currentDirection===null){this.currentDirection=ys(v),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),V&&V(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>E(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gn(e,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:pn(this.visualElement)})}stop(e,n){const i=e||this.latestPointerEvent,o=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!o||!i)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&c.frame.postRender(()=>a(i,o))}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:o}=this.getProps();if(!i||!it(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=us(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;e&&U(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=cs(i.layoutBox,e):this.constraints=!1,this.elastic=ms(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&E(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=ds(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!U(e))return!1;const i=e.current;c.invariant(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=vi(i,o.root,this.visualElement.getTransformPagePoint());let s=hs(o.layout.layoutBox,r);if(n){const a=n(pi(s));this.hasMutatedConstraints=!!a,a&&(s=Qe(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},h=E(u=>{if(!it(u,n,this.currentDirection))return;let f=l&&l[u]||{};s&&(f={min:0,max:0});const d=o?200:1e6,m=o?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(h).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Ct(this.visualElement,e),i.start($t(e,i,0,n,this.visualElement,!1))}stopAnimation(){E(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){E(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){E(n=>{const{drag:i}=this.getProps();if(!it(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];r.set(e[n]-c.mixNumber(s,a,.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 o={x:0,y:0};E(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=fs({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),E(s=>{if(!it(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:h}=this.constraints[s];a.set(c.mixNumber(l,h,o[s]))})}addListeners(){if(!this.visualElement.current)return;ps.set(this.visualElement,this);const e=this.visualElement.current,n=X(e,"pointerdown",l=>{const{drag:h,dragListener:u=!0}=this.getProps();h&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();U(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),c.frame.read(i);const s=Q(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:h})=>{this.isDragging&&h&&(E(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:s=wt,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function it(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ys(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class vs extends j{constructor(e){super(e),this.removeGroupControls=c.noop,this.removeListeners=c.noop,this.controls=new gs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||c.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const me=t=>(e,n)=>{t&&c.frame.postRender(()=>t(e,n))};class xs extends j{constructor(){super(...arguments),this.removePointerDownListener=c.noop}onPointerDown(e){this.session=new gn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pn(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:me(e),onStart:me(n),onMove:i,onEnd:(r,s)=>{delete this.session,o&&c.frame.postRender(()=>o(r,s))}}}mount(){this.removePointerDownListener=X(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 ot={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pe(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const K={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(c.px.test(t))t=parseFloat(t);else return t;const n=pe(t,e.target.x),i=pe(t,e.target.y);return`${n}% ${i}%`}},Ps={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=c.complex.parse(t);if(o.length>5)return i;const r=c.complex.createTransformer(t),s=typeof o[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;o[0+s]/=a,o[1+s]/=l;const h=c.mixNumber(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=h),typeof o[3+s]=="number"&&(o[3+s]/=h),r(o)}};let pt=!1;class Vs extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:r}=e;Hn(Ts),r&&(n.group&&n.group.add(r),i&&i.register&&o&&i.register(r),pt&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ot.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,pt=!0,o||e.layoutDependency!==n||n===void 0||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||c.frame.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),c.microtask.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;pt=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vn(t){const[e,n]=jt(),i=g.useContext(bt);return c.jsxRuntimeExports.jsx(Vs,{...t,layoutGroup:i,switchLayoutGroup:g.useContext(Ze),isPresent:e,safeToRemove:n})}const Ts={borderRadius:{...K,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomLeftRadius:K,borderBottomRightRadius:K,boxShadow:Ps};function Ss(t,e,n){const i=c.isMotionValue(t)?t:c.motionValue(t);return i.start($t("",i,e,n)),i.animation}const Cs=(t,e)=>t.depth-e.depth;class As{constructor(){this.children=[],this.isDirty=!1}add(e){c.addUniqueItem(this.children,e),this.isDirty=!0}remove(e){c.removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cs),this.isDirty=!1,this.children.forEach(e)}}function ws(t,e){const n=c.time.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&(c.cancelFrame(i),t(r-e))};return c.frame.setup(i,!0),()=>c.cancelFrame(i)}const xn=["TopLeft","TopRight","BottomLeft","BottomRight"],Ds=xn.length,ge=t=>typeof t=="string"?parseFloat(t):t,ye=t=>typeof t=="number"||c.px.test(t);function Ms(t,e,n,i,o,r){o?(t.opacity=c.mixNumber(0,n.opacity??1,bs(i)),t.opacityExit=c.mixNumber(e.opacity??1,0,Rs(i))):r&&(t.opacity=c.mixNumber(e.opacity??1,n.opacity??1,i));for(let s=0;s<Ds;s++){const a=`border${xn[s]}Radius`;let l=ve(e,a),h=ve(n,a);if(l===void 0&&h===void 0)continue;l||(l=0),h||(h=0),l===0||h===0||ye(l)===ye(h)?(t[a]=Math.max(c.mixNumber(ge(l),ge(h),i),0),(c.percent.test(h)||c.percent.test(l))&&(t[a]+="%")):t[a]=h}(e.rotate||n.rotate)&&(t.rotate=c.mixNumber(e.rotate||0,n.rotate||0,i))}function ve(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const bs=Pn(0,.5,c.circOut),Rs=Pn(.5,.95,c.noop);function Pn(t,e,n){return i=>i<t?0:i>e?1:n(c.progress(t,e,i))}function xe(t,e){t.min=e.min,t.max=e.max}function R(t,e){xe(t.x,e.x),xe(t.y,e.y)}function Pe(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ve(t,e,n,i,o){return t-=e,t=at(t,1/n,i),o!==void 0&&(t=at(t,1/o,i)),t}function Es(t,e=0,n=1,i=.5,o,r=t,s=t){if(c.percent.test(e)&&(e=parseFloat(e),e=c.mixNumber(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=c.mixNumber(r.min,r.max,i);t===r&&(a-=e),t.min=Ve(t.min,e,n,a,o),t.max=Ve(t.max,e,n,a,o)}function Te(t,e,[n,i,o],r,s){Es(t,e[n],e[i],e[o],e.scale,r,s)}const Ls=["x","scaleX","originX"],js=["y","scaleY","originY"];function Se(t,e,n,i){Te(t.x,e,Ls,n?n.x:void 0,i?i.x:void 0),Te(t.y,e,js,n?n.y:void 0,i?i.y:void 0)}function Ce(t){return t.translate===0&&t.scale===1}function Vn(t){return Ce(t.x)&&Ce(t.y)}function Ae(t,e){return t.min===e.min&&t.max===e.max}function Bs(t,e){return Ae(t.x,e.x)&&Ae(t.y,e.y)}function we(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Tn(t,e){return we(t.x,e.x)&&we(t.y,e.y)}function De(t){return D(t.x)/D(t.y)}function Me(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Is{constructor(){this.members=[]}add(e){c.addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(c.removeItem(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(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1){i=r;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:o}=e.options;o===!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()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ks(t,e,n){let i="";const o=t.x.translate/e.x,r=t.y.translate/e.y,s=n?.z||0;if((o||r||s)&&(i=`translate3d(${o}px, ${r}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:u,rotateX:f,rotateY:d,skewX:m,skewY:p}=n;h&&(i=`perspective(${h}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),m&&(i+=`skewX(${m}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const gt=["","X","Y","Z"],Os=1e3;let Fs=0;function yt(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Sn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ln(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",c.frame,!(o||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Sn(i)}function Cn({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(s={},a=e?.()){this.id=Fs++,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(Ws),this.nodes.forEach(zs),this.nodes.forEach(_s),this.nodes.forEach($s)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new As)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new c.SubscriptionManager),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=c.isSVGElement(s)&&!c.isSVGSVGElement(s),this.instance=s;const{layoutId:a,layout:l,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const d=()=>this.root.updateBlockedByResize=!1;c.frame.read(()=>{f=window.innerWidth}),t(s,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,u&&u(),u=ws(d,250),ot.hasAnimatedSinceResize&&(ot.hasAnimatedSinceResize=!1,this.nodes.forEach(Ee)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&h&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||h.getDefaultTransition()||Zs,{onLayoutAnimationStart:P,onLayoutAnimationComplete:V}=h.getProps(),v=!this.targetLayout||!Tn(this.targetLayout,m),y=!f&&d;if(this.options.layoutRoot||this.resumeFrom||y||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...c.getValueTransition(p,"layout"),onPlay:P,onComplete:V};(h.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,y)}else f||Ee(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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(),c.cancelFrame(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(Ks),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&&Sn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(be);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Re);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gs),this.nodes.forEach(Ns),this.nodes.forEach(Us)):this.nodes.forEach(Re),this.clearAllSnapshots();const a=c.time.now();c.frameData.delta=c.clamp(0,1e3/60,a-c.frameData.timestamp),c.frameData.timestamp=a,c.frameData.isProcessing=!0,c.frameSteps.update.process(c.frameData),c.frameSteps.preRender.process(c.frameData),c.frameSteps.render.process(c.frameData),c.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,c.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hs),this.sharedNodes.forEach(Xs)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,c.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){c.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!D(this.snapshot.measuredBox.x)&&!D(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 l=0;l<this.path.length;l++)this.path[l].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:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Vn(this.projectionDelta),l=this.getTransformTemplate(),h=l?l(this.latestValues,""):void 0,u=h!==this.prevTransformTemplateValue;s&&this.instance&&(a||O(this.latestValues)||u)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Js(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return T();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Qs))){const{scroll:h}=this.root;h&&(W(a.x,h.offset.x),W(a.y,h.offset.y))}return a}removeElementScroll(s){const a=T();if(R(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const h=this.path[l],{scroll:u,options:f}=h;h!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&R(a,s),W(a.x,u.offset.x),W(a.y,u.offset.y))}return a}applyTransform(s,a=!1){const l=T();R(l,s);for(let h=0;h<this.path.length;h++){const u=this.path[h];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&$(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),O(u.latestValues)&&$(l,u.latestValues)}return O(this.latestValues)&&$(l,this.latestValues),l}removeTransform(s){const a=T();R(a,s);for(let l=0;l<this.path.length;l++){const h=this.path[l];if(!h.instance||!O(h.latestValues))continue;Pt(h.latestValues)&&h.updateSnapshot();const u=T(),f=h.measurePageBox();R(u,f),Se(a,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,u)}return O(this.latestValues)&&Se(a,this.latestValues),a}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!==c.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!(!this.layout||!(u||f))){if(this.resolvedRelativeTargetAt=c.frameData.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(),q(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),R(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(),os(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):R(this.target,this.layout.layoutBox),en(this.target,this.targetDelta)):R(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(),q(this.relativeTargetOrigin,this.target,d.target),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Pt(this.parent.latestValues)||tn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===c.frameData.timestamp&&(l=!1),l)return;const{layout:h,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||u))return;R(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;yi(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=T());const{target:m}=s;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pe(this.prevProjectionDelta.x,this.projectionDelta.x),Pe(this.prevProjectionDelta.y,this.projectionDelta.y)),Y(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Me(this.projectionDelta.x,this.prevProjectionDelta.x)||!Me(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=H(),this.projectionDelta=H(),this.projectionDeltaWithTransform=H()}setAnimationOrigin(s,a=!1){const l=this.snapshot,h=l?l.latestValues:{},u={...this.latestValues},f=H();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=T(),m=l?l.source:void 0,p=this.layout?this.layout.source:void 0,P=m!==p,V=this.getStack(),v=!V||V.members.length<=1,y=!!(P&&!v&&this.options.crossfade===!0&&!this.path.some(qs));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const M=S/1e3;Le(f.x,s.x,M),Le(f.y,s.y,M),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(q(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ys(this.relativeTarget,this.relativeTargetOrigin,d,M),x&&Bs(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=T()),R(x,this.relativeTarget)),P&&(this.animationValues=u,Ms(u,h,this.latestValues,M,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(c.cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=c.frame.update(()=>{ot.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=c.motionValue(0)),this.currentAnimation=Ss(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},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(Os),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:h,latestValues:u}=s;if(!(!a||!l||!h)){if(this!==s&&this.layout&&h&&An(this.options.animationType,this.layout.layoutBox,h.layoutBox)){l=this.target||T();const f=D(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=D(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}R(a,l),$(a,u),Y(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Is),this.sharedNodes.get(s).add(a);const h=a.options.initialPromotionConfig;a.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const h=this.getStack();h&&h.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const h={};l.z&&yt("z",s,h,this.animationValues);for(let u=0;u<gt.length;u++)yt(`rotate${gt[u]}`,s,h,this.animationValues),yt(`skew${gt[u]}`,s,h,this.animationValues);s.render();for(const u in h)s.setStaticValue(u,h[u]),this.animationValues&&(this.animationValues[u]=h[u]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=st(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=st(a?.pointerEvents)||""),this.hasProjected&&!O(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=h.animationValues||h.latestValues;this.applyTransformsToTarget();let f=ks(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),s.transform=f;const{x:d,y:m}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,h.animationValues?s.opacity=h===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=h===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in J){if(u[p]===void 0)continue;const{correct:P,applyTo:V,isCSSVariable:v}=J[p],y=f==="none"?u[p]:P(u[p],h);if(V){const x=V.length;for(let S=0;S<x;S++)s[V[S]]=y}else v?this.options.visualElement.renderState.vars[p]=y:s[p]=y}this.options.layoutId&&(s.pointerEvents=h===this?st(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(be),this.root.sharedNodes.clear()}}}function Ns(t){t.updateLayout()}function Us(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?E(u=>{const f=r?e.measuredBox[u]:e.layoutBox[u],d=D(f);f.min=n[u].min,f.max=f.min+d}):An(o,e.layoutBox,n)&&E(u=>{const f=r?e.measuredBox[u]:e.layoutBox[u],d=D(n[u]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const s=H();Y(s,n,e.layoutBox);const a=H();r?Y(a,t.applyTransform(i,!0),e.measuredBox):Y(a,n,e.layoutBox);const l=!Vn(s);let h=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:d}=u;if(f&&d){const m=T();q(m,e.layoutBox,f.layoutBox);const p=T();q(p,n,d.layoutBox),Tn(m,p)||(h=!0),u.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Ws(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 $s(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hs(t){t.clearSnapshot()}function be(t){t.clearMeasurements()}function Re(t){t.isLayoutDirty=!1}function Gs(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ee(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function zs(t){t.resolveTargetDelta()}function _s(t){t.calcProjection()}function Ks(t){t.resetSkewAndRotation()}function Xs(t){t.removeLeadSnapshot()}function Le(t,e,n){t.translate=c.mixNumber(e.translate,0,n),t.scale=c.mixNumber(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function je(t,e,n,i){t.min=c.mixNumber(e.min,n.min,i),t.max=c.mixNumber(e.max,n.max,i)}function Ys(t,e,n,i){je(t.x,e.x,n.x,i),je(t.y,e.y,n.y,i)}function qs(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Zs={duration:.45,ease:[.4,0,.1,1]},Be=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ie=Be("applewebkit/")&&!Be("chrome/")?Math.round:c.noop;function ke(t){t.min=Ie(t.min),t.max=Ie(t.max)}function Js(t){ke(t.x),ke(t.y)}function An(t,e,n){return t==="position"||t==="preserve-aspect"&&!ss(De(e),De(n),.2)}function Qs(t){return t!==t.root&&t.scroll?.wasRoot}const to=Cn({attachResizeListener:(t,e)=>Q(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vt={current:void 0},wn=Cn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!vt.current){const t=new to({});t.mount(window),t.setOptions({layoutScroll:!0}),vt.current=t}return vt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),eo={pan:{Feature:xs},drag:{Feature:vs,ProjectionNode:wn,MeasureLayout:vn}};function Oe(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,r=i[o];r&&c.frame.postRender(()=>r(e,et(e)))}class no extends j{mount(){const{current:e}=this.node;e&&(this.unmount=c.hover(e,(n,i)=>(Oe(this.node,i,"Start"),o=>Oe(this.node,o,"End"))))}unmount(){}}class io 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=c.pipe(Q(this.node.current,"focus",()=>this.onFocus()),Q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fe(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 o="onTap"+(n==="End"?"":n),r=i[o];r&&c.frame.postRender(()=>r(e,et(e)))}class so extends j{mount(){const{current:e}=this.node;e&&(this.unmount=c.press(e,(n,i)=>(Fe(this.node,i,"Start"),(o,{success:r})=>Fe(this.node,o,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Dt=new WeakMap,xt=new WeakMap,oo=t=>{const e=Dt.get(t.target);e&&e(t)},ro=t=>{t.forEach(oo)};function ao({root:t,...e}){const n=t||document;xt.has(n)||xt.set(n,{});const i=xt.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(ro,{root:t,...e})),i[o]}function lo(t,e,n){const i=ao(e);return Dt.set(t,n),i.observe(t),()=>{Dt.delete(t),i.unobserve(t)}}const uo={some:0,all:1};class co 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:o="some",once:r}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:uo[o]},a=l=>{const{isIntersecting:h}=l;if(this.isInView===h||(this.isInView=h,r&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=h?u:f;d&&d(l)};return lo(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ho(e,n))&&this.startObserver()}unmount(){}}function ho({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const fo={inView:{Feature:co},tap:{Feature:so},focus:{Feature:io},hover:{Feature:no}},mo={layout:{ProjectionNode:wn,MeasureLayout:vn}},po={...Ji,...fo,...eo,...mo},go=mi(po,Di);exports.AnimatePresence=kn;exports.motion=go;exports.useIsPresent=Bn;exports.usePresence=jt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const G=require("./other-TR0ap-t4.cjs");var ne={exports:{}};ne.exports;var Jt;function Tu(){return Jt||(Jt=1,(function(r,t){var n=200,i="__lodash_hash_undefined__",u=800,o=16,f=9007199254740991,c="[object Arguments]",l="[object Array]",_="[object AsyncFunction]",p="[object Boolean]",b="[object Date]",y="[object Error]",m="[object Function]",S="[object GeneratorFunction]",x="[object Map]",P="[object Number]",E="[object Null]",A="[object Object]",Y="[object Proxy]",Z="[object RegExp]",U="[object Set]",D="[object String]",I="[object Undefined]",j="[object WeakMap]",$="[object ArrayBuffer]",R="[object DataView]",d="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",oe="[object Int16Array]",ka="[object Int32Array]",ei="[object Uint8Array]",ri="[object Uint8ClampedArray]",ti="[object Uint16Array]",ni="[object Uint32Array]",ai=/[\\^$.*+?()[\]{}|]/g,ii=/^\[object .+?Constructor\]$/,ui=/^(?:0|[1-9]\d*)$/,T={};T[d]=T[N]=T[L]=T[oe]=T[ka]=T[ei]=T[ri]=T[ti]=T[ni]=!0,T[c]=T[l]=T[$]=T[p]=T[R]=T[b]=T[y]=T[m]=T[x]=T[P]=T[A]=T[Z]=T[U]=T[D]=T[j]=!1;var At=typeof G.commonjsGlobal=="object"&&G.commonjsGlobal&&G.commonjsGlobal.Object===Object&&G.commonjsGlobal,si=typeof self=="object"&&self&&self.Object===Object&&self,Q=At||si||Function("return this")(),jt=t&&!t.nodeType&&t,k=jt&&!0&&r&&!r.nodeType&&r,mt=k&&k.exports===jt,Oe=mt&&At.process,Rt=(function(){try{var e=k&&k.require&&k.require("util").types;return e||Oe&&Oe.binding&&Oe.binding("util")}catch{}})(),It=Rt&&Rt.isTypedArray;function oi(e,a,s){switch(s.length){case 0:return e.call(a);case 1:return e.call(a,s[0]);case 2:return e.call(a,s[0],s[1]);case 3:return e.call(a,s[0],s[1],s[2])}return e.apply(a,s)}function fi(e,a){for(var s=-1,h=Array(e);++s<e;)h[s]=a(s);return h}function ci(e){return function(a){return e(a)}}function li(e,a){return e?.[a]}function hi(e,a){return function(s){return e(a(s))}}var _i=Array.prototype,vi=Function.prototype,fe=Object.prototype,Ae=Q["__core-js_shared__"],ce=vi.toString,H=fe.hasOwnProperty,St=(function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),wt=fe.toString,pi=ce.call(Object),di=RegExp("^"+ce.call(H).replace(ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=mt?Q.Buffer:void 0,xt=Q.Symbol,Pt=Q.Uint8Array;le&&le.allocUnsafe;var Mt=hi(Object.getPrototypeOf,Object),Gt=Object.create,gi=fe.propertyIsEnumerable,bi=_i.splice,z=xt?xt.toStringTag:void 0,he=(function(){try{var e=Re(Object,"defineProperty");return e({},"",{}),e}catch{}})(),yi=le?le.isBuffer:void 0,Dt=Math.max,qi=Date.now,Lt=Re(Q,"Map"),ee=Re(Object,"create"),Ti=(function(){function e(){}return function(a){if(!K(a))return{};if(Gt)return Gt(a);e.prototype=a;var s=new e;return e.prototype=void 0,s}})();function B(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Ci(){this.__data__=ee?ee(null):{},this.size=0}function Oi(e){var a=this.has(e)&&delete this.__data__[e];return this.size-=a?1:0,a}function Ai(e){var a=this.__data__;if(ee){var s=a[e];return s===i?void 0:s}return H.call(a,e)?a[e]:void 0}function ji(e){var a=this.__data__;return ee?a[e]!==void 0:H.call(a,e)}function mi(e,a){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=ee&&a===void 0?i:a,this}B.prototype.clear=Ci,B.prototype.delete=Oi,B.prototype.get=Ai,B.prototype.has=ji,B.prototype.set=mi;function F(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Ri(){this.__data__=[],this.size=0}function Ii(e){var a=this.__data__,s=_e(a,e);if(s<0)return!1;var h=a.length-1;return s==h?a.pop():bi.call(a,s,1),--this.size,!0}function Si(e){var a=this.__data__,s=_e(a,e);return s<0?void 0:a[s][1]}function wi(e){return _e(this.__data__,e)>-1}function xi(e,a){var s=this.__data__,h=_e(s,e);return h<0?(++this.size,s.push([e,a])):s[h][1]=a,this}F.prototype.clear=Ri,F.prototype.delete=Ii,F.prototype.get=Si,F.prototype.has=wi,F.prototype.set=xi;function J(e){var a=-1,s=e==null?0:e.length;for(this.clear();++a<s;){var h=e[a];this.set(h[0],h[1])}}function Pi(){this.size=0,this.__data__={hash:new B,map:new(Lt||F),string:new B}}function Mi(e){var a=pe(this,e).delete(e);return this.size-=a?1:0,a}function Gi(e){return pe(this,e).get(e)}function Di(e){return pe(this,e).has(e)}function Li(e,a){var s=pe(this,e),h=s.size;return s.set(e,a),this.size+=s.size==h?0:1,this}J.prototype.clear=Pi,J.prototype.delete=Mi,J.prototype.get=Gi,J.prototype.has=Di,J.prototype.set=Li;function W(e){var a=this.__data__=new F(e);this.size=a.size}function Fi(){this.__data__=new F,this.size=0}function Ei(e){var a=this.__data__,s=a.delete(e);return this.size=a.size,s}function Hi(e){return this.__data__.get(e)}function Ui(e){return this.__data__.has(e)}function Ni(e,a){var s=this.__data__;if(s instanceof F){var h=s.__data__;if(!Lt||h.length<n-1)return h.push([e,a]),this.size=++s.size,this;s=this.__data__=new J(h)}return s.set(e,a),this.size=s.size,this}W.prototype.clear=Fi,W.prototype.delete=Ei,W.prototype.get=Hi,W.prototype.has=Ui,W.prototype.set=Ni;function zi(e,a){var s=we(e),h=!s&&Se(e),v=!s&&!h&&Nt(e),q=!s&&!h&&!v&&Bt(e),C=s||h||v||q,g=C?fi(e.length,String):[],O=g.length;for(var M in e)C&&(M=="length"||v&&(M=="offset"||M=="parent")||q&&(M=="buffer"||M=="byteLength"||M=="byteOffset")||Ht(M,O))||g.push(M);return g}function je(e,a,s){(s!==void 0&&!de(e[a],s)||s===void 0&&!(a in e))&&me(e,a,s)}function Bi(e,a,s){var h=e[a];(!(H.call(e,a)&&de(h,s))||s===void 0&&!(a in e))&&me(e,a,s)}function _e(e,a){for(var s=e.length;s--;)if(de(e[s][0],a))return s;return-1}function me(e,a,s){a=="__proto__"&&he?he(e,a,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[a]=s}var Ki=nu();function ve(e){return e==null?e===void 0?I:E:z&&z in Object(e)?au(e):cu(e)}function Ft(e){return re(e)&&ve(e)==c}function Vi(e){if(!K(e)||ou(e))return!1;var a=Pe(e)?di:ii;return a.test(vu(e))}function $i(e){return re(e)&&zt(e.length)&&!!T[ve(e)]}function Ji(e){if(!K(e))return fu(e);var a=Ut(e),s=[];for(var h in e)h=="constructor"&&(a||!H.call(e,h))||s.push(h);return s}function Et(e,a,s,h,v){e!==a&&Ki(a,function(q,C){if(v||(v=new W),K(q))Wi(e,a,C,s,Et,h,v);else{var g=h?h(Ie(e,C),q,C+"",e,a,v):void 0;g===void 0&&(g=q),je(e,C,g)}},Kt)}function Wi(e,a,s,h,v,q,C){var g=Ie(e,s),O=Ie(a,s),M=C.get(O);if(M){je(e,s,M);return}var w=q?q(g,O,s+"",e,a,C):void 0,te=w===void 0;if(te){var Me=we(O),Ge=!Me&&Nt(O),$t=!Me&&!Ge&&Bt(O);w=O,Me||Ge||$t?we(g)?w=g:pu(g)?w=eu(g):Ge?(te=!1,w=Zi(O)):$t?(te=!1,w=ki(O)):w=[]:du(O)||Se(O)?(w=g,Se(g)?w=gu(g):(!K(g)||Pe(g))&&(w=iu(O))):te=!1}te&&(C.set(O,w),v(w,O,h,q,C),C.delete(O)),je(e,s,w)}function Xi(e,a){return hu(lu(e,a,Vt),e+"")}var Yi=he?function(e,a){return he(e,"toString",{configurable:!0,enumerable:!1,value:yu(a),writable:!0})}:Vt;function Zi(e,a){return e.slice()}function Qi(e){var a=new e.constructor(e.byteLength);return new Pt(a).set(new Pt(e)),a}function ki(e,a){var s=Qi(e.buffer);return new e.constructor(s,e.byteOffset,e.length)}function eu(e,a){var s=-1,h=e.length;for(a||(a=Array(h));++s<h;)a[s]=e[s];return a}function ru(e,a,s,h){var v=!s;s||(s={});for(var q=-1,C=a.length;++q<C;){var g=a[q],O=void 0;O===void 0&&(O=e[g]),v?me(s,g,O):Bi(s,g,O)}return s}function tu(e){return Xi(function(a,s){var h=-1,v=s.length,q=v>1?s[v-1]:void 0,C=v>2?s[2]:void 0;for(q=e.length>3&&typeof q=="function"?(v--,q):void 0,C&&uu(s[0],s[1],C)&&(q=v<3?void 0:q,v=1),a=Object(a);++h<v;){var g=s[h];g&&e(a,g,h,q)}return a})}function nu(e){return function(a,s,h){for(var v=-1,q=Object(a),C=h(a),g=C.length;g--;){var O=C[++v];if(s(q[O],O,q)===!1)break}return a}}function pe(e,a){var s=e.__data__;return su(a)?s[typeof a=="string"?"string":"hash"]:s.map}function Re(e,a){var s=li(e,a);return Vi(s)?s:void 0}function au(e){var a=H.call(e,z),s=e[z];try{e[z]=void 0;var h=!0}catch{}var v=wt.call(e);return h&&(a?e[z]=s:delete e[z]),v}function iu(e){return typeof e.constructor=="function"&&!Ut(e)?Ti(Mt(e)):{}}function Ht(e,a){var s=typeof e;return a=a??f,!!a&&(s=="number"||s!="symbol"&&ui.test(e))&&e>-1&&e%1==0&&e<a}function uu(e,a,s){if(!K(s))return!1;var h=typeof a;return(h=="number"?xe(s)&&Ht(a,s.length):h=="string"&&a in s)?de(s[a],e):!1}function su(e){var a=typeof e;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?e!=="__proto__":e===null}function ou(e){return!!St&&St in e}function Ut(e){var a=e&&e.constructor,s=typeof a=="function"&&a.prototype||fe;return e===s}function fu(e){var a=[];if(e!=null)for(var s in Object(e))a.push(s);return a}function cu(e){return wt.call(e)}function lu(e,a,s){return a=Dt(a===void 0?e.length-1:a,0),function(){for(var h=arguments,v=-1,q=Dt(h.length-a,0),C=Array(q);++v<q;)C[v]=h[a+v];v=-1;for(var g=Array(a+1);++v<a;)g[v]=h[v];return g[a]=s(C),oi(e,this,g)}}function Ie(e,a){if(!(a==="constructor"&&typeof e[a]=="function")&&a!="__proto__")return e[a]}var hu=_u(Yi);function _u(e){var a=0,s=0;return function(){var h=qi(),v=o-(h-s);if(s=h,v>0){if(++a>=u)return arguments[0]}else a=0;return e.apply(void 0,arguments)}}function vu(e){if(e!=null){try{return ce.call(e)}catch{}try{return e+""}catch{}}return""}function de(e,a){return e===a||e!==e&&a!==a}var Se=Ft((function(){return arguments})())?Ft:function(e){return re(e)&&H.call(e,"callee")&&!gi.call(e,"callee")},we=Array.isArray;function xe(e){return e!=null&&zt(e.length)&&!Pe(e)}function pu(e){return re(e)&&xe(e)}var Nt=yi||qu;function Pe(e){if(!K(e))return!1;var a=ve(e);return a==m||a==S||a==_||a==Y}function zt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function K(e){var a=typeof e;return e!=null&&(a=="object"||a=="function")}function re(e){return e!=null&&typeof e=="object"}function du(e){if(!re(e)||ve(e)!=A)return!1;var a=Mt(e);if(a===null)return!0;var s=H.call(a,"constructor")&&a.constructor;return typeof s=="function"&&s instanceof s&&ce.call(s)==pi}var Bt=It?ci(It):$i;function gu(e){return ru(e,Kt(e))}function Kt(e){return xe(e)?zi(e):Ji(e)}var bu=tu(function(e,a,s,h){Et(e,a,s,h)});function yu(e){return function(){return e}}function Vt(e){return e}function qu(){return!1}r.exports=bu})(ne,ne.exports)),ne.exports}var Cu=Tu();const Ou=G.getDefaultExportFromCjs(Cu);var De,Wt;function Au(){if(Wt)return De;Wt=1;function r(){this.__data__=[],this.size=0}return De=r,De}var Le,Xt;function ge(){if(Xt)return Le;Xt=1;function r(t,n){return t===n||t!==t&&n!==n}return Le=r,Le}var Fe,Yt;function be(){if(Yt)return Fe;Yt=1;var r=ge();function t(n,i){for(var u=n.length;u--;)if(r(n[u][0],i))return u;return-1}return Fe=t,Fe}var Ee,Zt;function ju(){if(Zt)return Ee;Zt=1;var r=be(),t=Array.prototype,n=t.splice;function i(u){var o=this.__data__,f=r(o,u);if(f<0)return!1;var c=o.length-1;return f==c?o.pop():n.call(o,f,1),--this.size,!0}return Ee=i,Ee}var He,Qt;function mu(){if(Qt)return He;Qt=1;var r=be();function t(n){var i=this.__data__,u=r(i,n);return u<0?void 0:i[u][1]}return He=t,He}var Ue,kt;function Ru(){if(kt)return Ue;kt=1;var r=be();function t(n){return r(this.__data__,n)>-1}return Ue=t,Ue}var Ne,en;function Iu(){if(en)return Ne;en=1;var r=be();function t(n,i){var u=this.__data__,o=r(u,n);return o<0?(++this.size,u.push([n,i])):u[o][1]=i,this}return Ne=t,Ne}var ze,rn;function ye(){if(rn)return ze;rn=1;var r=Au(),t=ju(),n=mu(),i=Ru(),u=Iu();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,ze=o,ze}var Be,tn;function Su(){if(tn)return Be;tn=1;var r=ye();function t(){this.__data__=new r,this.size=0}return Be=t,Be}var Ke,nn;function wu(){if(nn)return Ke;nn=1;function r(t){var n=this.__data__,i=n.delete(t);return this.size=n.size,i}return Ke=r,Ke}var Ve,an;function xu(){if(an)return Ve;an=1;function r(t){return this.__data__.get(t)}return Ve=r,Ve}var $e,un;function Pu(){if(un)return $e;un=1;function r(t){return this.__data__.has(t)}return $e=r,$e}var Je,sn;function Fa(){if(sn)return Je;sn=1;var r=typeof G.commonjsGlobal=="object"&&G.commonjsGlobal&&G.commonjsGlobal.Object===Object&&G.commonjsGlobal;return Je=r,Je}var We,on;function X(){if(on)return We;on=1;var r=Fa(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=r||t||Function("return this")();return We=n,We}var Xe,fn;function Ea(){if(fn)return Xe;fn=1;var r=X(),t=r.Symbol;return Xe=t,Xe}var Ye,cn;function Mu(){if(cn)return Ye;cn=1;var r=Ea(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,u=r?r.toStringTag:void 0;function o(f){var c=n.call(f,u),l=f[u];try{f[u]=void 0;var _=!0}catch{}var p=i.call(f);return _&&(c?f[u]=l:delete f[u]),p}return Ye=o,Ye}var Ze,ln;function Gu(){if(ln)return Ze;ln=1;var r=Object.prototype,t=r.toString;function n(i){return t.call(i)}return Ze=n,Ze}var Qe,hn;function qe(){if(hn)return Qe;hn=1;var r=Ea(),t=Mu(),n=Gu(),i="[object Null]",u="[object Undefined]",o=r?r.toStringTag:void 0;function f(c){return c==null?c===void 0?u:i:o&&o in Object(c)?t(c):n(c)}return Qe=f,Qe}var ke,_n;function V(){if(_n)return ke;_n=1;function r(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ke=r,ke}var er,vn;function qt(){if(vn)return er;vn=1;var r=qe(),t=V(),n="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",o="[object Proxy]";function f(c){if(!t(c))return!1;var l=r(c);return l==i||l==u||l==n||l==o}return er=f,er}var rr,pn;function Du(){if(pn)return rr;pn=1;var r=X(),t=r["__core-js_shared__"];return rr=t,rr}var tr,dn;function Lu(){if(dn)return tr;dn=1;var r=Du(),t=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function n(i){return!!t&&t in i}return tr=n,tr}var nr,gn;function Fu(){if(gn)return nr;gn=1;var r=Function.prototype,t=r.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return nr=n,nr}var ar,bn;function Eu(){if(bn)return ar;bn=1;var r=qt(),t=Lu(),n=V(),i=Fu(),u=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,l=f.toString,_=c.hasOwnProperty,p=RegExp("^"+l.call(_).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(y){if(!n(y)||t(y))return!1;var m=r(y)?p:o;return m.test(i(y))}return ar=b,ar}var ir,yn;function Hu(){if(yn)return ir;yn=1;function r(t,n){return t?.[n]}return ir=r,ir}var ur,qn;function Tt(){if(qn)return ur;qn=1;var r=Eu(),t=Hu();function n(i,u){var o=t(i,u);return r(o)?o:void 0}return ur=n,ur}var sr,Tn;function Ha(){if(Tn)return sr;Tn=1;var r=Tt(),t=X(),n=r(t,"Map");return sr=n,sr}var or,Cn;function Te(){if(Cn)return or;Cn=1;var r=Tt(),t=r(Object,"create");return or=t,or}var fr,On;function Uu(){if(On)return fr;On=1;var r=Te();function t(){this.__data__=r?r(null):{},this.size=0}return fr=t,fr}var cr,An;function Nu(){if(An)return cr;An=1;function r(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return cr=r,cr}var lr,jn;function zu(){if(jn)return lr;jn=1;var r=Te(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function u(o){var f=this.__data__;if(r){var c=f[o];return c===t?void 0:c}return i.call(f,o)?f[o]:void 0}return lr=u,lr}var hr,mn;function Bu(){if(mn)return hr;mn=1;var r=Te(),t=Object.prototype,n=t.hasOwnProperty;function i(u){var o=this.__data__;return r?o[u]!==void 0:n.call(o,u)}return hr=i,hr}var _r,Rn;function Ku(){if(Rn)return _r;Rn=1;var r=Te(),t="__lodash_hash_undefined__";function n(i,u){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=r&&u===void 0?t:u,this}return _r=n,_r}var vr,In;function Vu(){if(In)return vr;In=1;var r=Uu(),t=Nu(),n=zu(),i=Bu(),u=Ku();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,vr=o,vr}var pr,Sn;function $u(){if(Sn)return pr;Sn=1;var r=Vu(),t=ye(),n=Ha();function i(){this.size=0,this.__data__={hash:new r,map:new(n||t),string:new r}}return pr=i,pr}var dr,wn;function Ju(){if(wn)return dr;wn=1;function r(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return dr=r,dr}var gr,xn;function Ce(){if(xn)return gr;xn=1;var r=Ju();function t(n,i){var u=n.__data__;return r(i)?u[typeof i=="string"?"string":"hash"]:u.map}return gr=t,gr}var br,Pn;function Wu(){if(Pn)return br;Pn=1;var r=Ce();function t(n){var i=r(this,n).delete(n);return this.size-=i?1:0,i}return br=t,br}var yr,Mn;function Xu(){if(Mn)return yr;Mn=1;var r=Ce();function t(n){return r(this,n).get(n)}return yr=t,yr}var qr,Gn;function Yu(){if(Gn)return qr;Gn=1;var r=Ce();function t(n){return r(this,n).has(n)}return qr=t,qr}var Tr,Dn;function Zu(){if(Dn)return Tr;Dn=1;var r=Ce();function t(n,i){var u=r(this,n),o=u.size;return u.set(n,i),this.size+=u.size==o?0:1,this}return Tr=t,Tr}var Cr,Ln;function Qu(){if(Ln)return Cr;Ln=1;var r=$u(),t=Wu(),n=Xu(),i=Yu(),u=Zu();function o(f){var c=-1,l=f==null?0:f.length;for(this.clear();++c<l;){var _=f[c];this.set(_[0],_[1])}}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=u,Cr=o,Cr}var Or,Fn;function ku(){if(Fn)return Or;Fn=1;var r=ye(),t=Ha(),n=Qu(),i=200;function u(o,f){var c=this.__data__;if(c instanceof r){var l=c.__data__;if(!t||l.length<i-1)return l.push([o,f]),this.size=++c.size,this;c=this.__data__=new n(l)}return c.set(o,f),this.size=c.size,this}return Or=u,Or}var Ar,En;function es(){if(En)return Ar;En=1;var r=ye(),t=Su(),n=wu(),i=xu(),u=Pu(),o=ku();function f(c){var l=this.__data__=new r(c);this.size=l.size}return f.prototype.clear=t,f.prototype.delete=n,f.prototype.get=i,f.prototype.has=u,f.prototype.set=o,Ar=f,Ar}var jr,Hn;function Ua(){if(Hn)return jr;Hn=1;var r=Tt(),t=(function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}})();return jr=t,jr}var mr,Un;function Ct(){if(Un)return mr;Un=1;var r=Ua();function t(n,i,u){i=="__proto__"&&r?r(n,i,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[i]=u}return mr=t,mr}var Rr,Nn;function Na(){if(Nn)return Rr;Nn=1;var r=Ct(),t=ge();function n(i,u,o){(o!==void 0&&!t(i[u],o)||o===void 0&&!(u in i))&&r(i,u,o)}return Rr=n,Rr}var Ir,zn;function rs(){if(zn)return Ir;zn=1;function r(t){return function(n,i,u){for(var o=-1,f=Object(n),c=u(n),l=c.length;l--;){var _=c[t?l:++o];if(i(f[_],_,f)===!1)break}return n}}return Ir=r,Ir}var Sr,Bn;function ts(){if(Bn)return Sr;Bn=1;var r=rs(),t=r();return Sr=t,Sr}var ae={exports:{}};ae.exports;var Kn;function ns(){return Kn||(Kn=1,(function(r,t){var n=X(),i=t&&!t.nodeType&&t,u=i&&!0&&r&&!r.nodeType&&r,o=u&&u.exports===i,f=o?n.Buffer:void 0,c=f?f.allocUnsafe:void 0;function l(_,p){if(p)return _.slice();var b=_.length,y=c?c(b):new _.constructor(b);return _.copy(y),y}r.exports=l})(ae,ae.exports)),ae.exports}var wr,Vn;function as(){if(Vn)return wr;Vn=1;var r=X(),t=r.Uint8Array;return wr=t,wr}var xr,$n;function is(){if($n)return xr;$n=1;var r=as();function t(n){var i=new n.constructor(n.byteLength);return new r(i).set(new r(n)),i}return xr=t,xr}var Pr,Jn;function us(){if(Jn)return Pr;Jn=1;var r=is();function t(n,i){var u=i?r(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}return Pr=t,Pr}var Mr,Wn;function ss(){if(Wn)return Mr;Wn=1;function r(t,n){var i=-1,u=t.length;for(n||(n=Array(u));++i<u;)n[i]=t[i];return n}return Mr=r,Mr}var Gr,Xn;function os(){if(Xn)return Gr;Xn=1;var r=V(),t=Object.create,n=(function(){function i(){}return function(u){if(!r(u))return{};if(t)return t(u);i.prototype=u;var o=new i;return i.prototype=void 0,o}})();return Gr=n,Gr}var Dr,Yn;function fs(){if(Yn)return Dr;Yn=1;function r(t,n){return function(i){return t(n(i))}}return Dr=r,Dr}var Lr,Zn;function za(){if(Zn)return Lr;Zn=1;var r=fs(),t=r(Object.getPrototypeOf,Object);return Lr=t,Lr}var Fr,Qn;function Ba(){if(Qn)return Fr;Qn=1;var r=Object.prototype;function t(n){var i=n&&n.constructor,u=typeof i=="function"&&i.prototype||r;return n===u}return Fr=t,Fr}var Er,kn;function cs(){if(kn)return Er;kn=1;var r=os(),t=za(),n=Ba();function i(u){return typeof u.constructor=="function"&&!n(u)?r(t(u)):{}}return Er=i,Er}var Hr,ea;function se(){if(ea)return Hr;ea=1;function r(t){return t!=null&&typeof t=="object"}return Hr=r,Hr}var Ur,ra;function ls(){if(ra)return Ur;ra=1;var r=qe(),t=se(),n="[object Arguments]";function i(u){return t(u)&&r(u)==n}return Ur=i,Ur}var Nr,ta;function Ka(){if(ta)return Nr;ta=1;var r=ls(),t=se(),n=Object.prototype,i=n.hasOwnProperty,u=n.propertyIsEnumerable,o=r((function(){return arguments})())?r:function(f){return t(f)&&i.call(f,"callee")&&!u.call(f,"callee")};return Nr=o,Nr}var zr,na;function Va(){if(na)return zr;na=1;var r=Array.isArray;return zr=r,zr}var Br,aa;function $a(){if(aa)return Br;aa=1;var r=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=r}return Br=t,Br}var Kr,ia;function Ot(){if(ia)return Kr;ia=1;var r=qt(),t=$a();function n(i){return i!=null&&t(i.length)&&!r(i)}return Kr=n,Kr}var Vr,ua;function hs(){if(ua)return Vr;ua=1;var r=Ot(),t=se();function n(i){return t(i)&&r(i)}return Vr=n,Vr}var ie={exports:{}},$r,sa;function _s(){if(sa)return $r;sa=1;function r(){return!1}return $r=r,$r}ie.exports;var oa;function Ja(){return oa||(oa=1,(function(r,t){var n=X(),i=_s(),u=t&&!t.nodeType&&t,o=u&&!0&&r&&!r.nodeType&&r,f=o&&o.exports===u,c=f?n.Buffer:void 0,l=c?c.isBuffer:void 0,_=l||i;r.exports=_})(ie,ie.exports)),ie.exports}var Jr,fa;function vs(){if(fa)return Jr;fa=1;var r=qe(),t=za(),n=se(),i="[object Object]",u=Function.prototype,o=Object.prototype,f=u.toString,c=o.hasOwnProperty,l=f.call(Object);function _(p){if(!n(p)||r(p)!=i)return!1;var b=t(p);if(b===null)return!0;var y=c.call(b,"constructor")&&b.constructor;return typeof y=="function"&&y instanceof y&&f.call(y)==l}return Jr=_,Jr}var Wr,ca;function ps(){if(ca)return Wr;ca=1;var r=qe(),t=$a(),n=se(),i="[object Arguments]",u="[object Array]",o="[object Boolean]",f="[object Date]",c="[object Error]",l="[object Function]",_="[object Map]",p="[object Number]",b="[object Object]",y="[object RegExp]",m="[object Set]",S="[object String]",x="[object WeakMap]",P="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",Y="[object Float64Array]",Z="[object Int8Array]",U="[object Int16Array]",D="[object Int32Array]",I="[object Uint8Array]",j="[object Uint8ClampedArray]",$="[object Uint16Array]",R="[object Uint32Array]",d={};d[A]=d[Y]=d[Z]=d[U]=d[D]=d[I]=d[j]=d[$]=d[R]=!0,d[i]=d[u]=d[P]=d[o]=d[E]=d[f]=d[c]=d[l]=d[_]=d[p]=d[b]=d[y]=d[m]=d[S]=d[x]=!1;function N(L){return n(L)&&t(L.length)&&!!d[r(L)]}return Wr=N,Wr}var Xr,la;function ds(){if(la)return Xr;la=1;function r(t){return function(n){return t(n)}}return Xr=r,Xr}var ue={exports:{}};ue.exports;var ha;function gs(){return ha||(ha=1,(function(r,t){var n=Fa(),i=t&&!t.nodeType&&t,u=i&&!0&&r&&!r.nodeType&&r,o=u&&u.exports===i,f=o&&n.process,c=(function(){try{var l=u&&u.require&&u.require("util").types;return l||f&&f.binding&&f.binding("util")}catch{}})();r.exports=c})(ue,ue.exports)),ue.exports}var Yr,_a;function Wa(){if(_a)return Yr;_a=1;var r=ps(),t=ds(),n=gs(),i=n&&n.isTypedArray,u=i?t(i):r;return Yr=u,Yr}var Zr,va;function Xa(){if(va)return Zr;va=1;function r(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Zr=r,Zr}var Qr,pa;function bs(){if(pa)return Qr;pa=1;var r=Ct(),t=ge(),n=Object.prototype,i=n.hasOwnProperty;function u(o,f,c){var l=o[f];(!(i.call(o,f)&&t(l,c))||c===void 0&&!(f in o))&&r(o,f,c)}return Qr=u,Qr}var kr,da;function ys(){if(da)return kr;da=1;var r=bs(),t=Ct();function n(i,u,o,f){var c=!o;o||(o={});for(var l=-1,_=u.length;++l<_;){var p=u[l],b=f?f(o[p],i[p],p,o,i):void 0;b===void 0&&(b=i[p]),c?t(o,p,b):r(o,p,b)}return o}return kr=n,kr}var et,ga;function qs(){if(ga)return et;ga=1;function r(t,n){for(var i=-1,u=Array(t);++i<t;)u[i]=n(i);return u}return et=r,et}var rt,ba;function Ya(){if(ba)return rt;ba=1;var r=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(i,u){var o=typeof i;return u=u??r,!!u&&(o=="number"||o!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<u}return rt=n,rt}var tt,ya;function Ts(){if(ya)return tt;ya=1;var r=qs(),t=Ka(),n=Va(),i=Ja(),u=Ya(),o=Wa(),f=Object.prototype,c=f.hasOwnProperty;function l(_,p){var b=n(_),y=!b&&t(_),m=!b&&!y&&i(_),S=!b&&!y&&!m&&o(_),x=b||y||m||S,P=x?r(_.length,String):[],E=P.length;for(var A in _)(p||c.call(_,A))&&!(x&&(A=="length"||m&&(A=="offset"||A=="parent")||S&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||u(A,E)))&&P.push(A);return P}return tt=l,tt}var nt,qa;function Cs(){if(qa)return nt;qa=1;function r(t){var n=[];if(t!=null)for(var i in Object(t))n.push(i);return n}return nt=r,nt}var at,Ta;function Os(){if(Ta)return at;Ta=1;var r=V(),t=Ba(),n=Cs(),i=Object.prototype,u=i.hasOwnProperty;function o(f){if(!r(f))return n(f);var c=t(f),l=[];for(var _ in f)_=="constructor"&&(c||!u.call(f,_))||l.push(_);return l}return at=o,at}var it,Ca;function Za(){if(Ca)return it;Ca=1;var r=Ts(),t=Os(),n=Ot();function i(u){return n(u)?r(u,!0):t(u)}return it=i,it}var ut,Oa;function As(){if(Oa)return ut;Oa=1;var r=ys(),t=Za();function n(i){return r(i,t(i))}return ut=n,ut}var st,Aa;function js(){if(Aa)return st;Aa=1;var r=Na(),t=ns(),n=us(),i=ss(),u=cs(),o=Ka(),f=Va(),c=hs(),l=Ja(),_=qt(),p=V(),b=vs(),y=Wa(),m=Xa(),S=As();function x(P,E,A,Y,Z,U,D){var I=m(P,A),j=m(E,A),$=D.get(j);if($){r(P,A,$);return}var R=U?U(I,j,A+"",P,E,D):void 0,d=R===void 0;if(d){var N=f(j),L=!N&&l(j),oe=!N&&!L&&y(j);R=j,N||L||oe?f(I)?R=I:c(I)?R=i(I):L?(d=!1,R=t(j,!0)):oe?(d=!1,R=n(j,!0)):R=[]:b(j)||o(j)?(R=I,o(I)?R=S(I):(!p(I)||_(I))&&(R=u(j))):d=!1}d&&(D.set(j,R),Z(R,j,Y,U,D),D.delete(j)),r(P,A,R)}return st=x,st}var ot,ja;function ms(){if(ja)return ot;ja=1;var r=es(),t=Na(),n=ts(),i=js(),u=V(),o=Za(),f=Xa();function c(l,_,p,b,y){l!==_&&n(_,function(m,S){if(y||(y=new r),u(m))i(l,_,S,p,c,b,y);else{var x=b?b(f(l,S),m,S+"",l,_,y):void 0;x===void 0&&(x=m),t(l,S,x)}},o)}return ot=c,ot}var ft,ma;function Qa(){if(ma)return ft;ma=1;function r(t){return t}return ft=r,ft}var ct,Ra;function Rs(){if(Ra)return ct;Ra=1;function r(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}return ct=r,ct}var lt,Ia;function Is(){if(Ia)return lt;Ia=1;var r=Rs(),t=Math.max;function n(i,u,o){return u=t(u===void 0?i.length-1:u,0),function(){for(var f=arguments,c=-1,l=t(f.length-u,0),_=Array(l);++c<l;)_[c]=f[u+c];c=-1;for(var p=Array(u+1);++c<u;)p[c]=f[c];return p[u]=o(_),r(i,this,p)}}return lt=n,lt}var ht,Sa;function Ss(){if(Sa)return ht;Sa=1;function r(t){return function(){return t}}return ht=r,ht}var _t,wa;function ws(){if(wa)return _t;wa=1;var r=Ss(),t=Ua(),n=Qa(),i=t?function(u,o){return t(u,"toString",{configurable:!0,enumerable:!1,value:r(o),writable:!0})}:n;return _t=i,_t}var vt,xa;function xs(){if(xa)return vt;xa=1;var r=800,t=16,n=Date.now;function i(u){var o=0,f=0;return function(){var c=n(),l=t-(c-f);if(f=c,l>0){if(++o>=r)return arguments[0]}else o=0;return u.apply(void 0,arguments)}}return vt=i,vt}var pt,Pa;function Ps(){if(Pa)return pt;Pa=1;var r=ws(),t=xs(),n=t(r);return pt=n,pt}var dt,Ma;function Ms(){if(Ma)return dt;Ma=1;var r=Qa(),t=Is(),n=Ps();function i(u,o){return n(t(u,o,r),u+"")}return dt=i,dt}var gt,Ga;function Gs(){if(Ga)return gt;Ga=1;var r=ge(),t=Ot(),n=Ya(),i=V();function u(o,f,c){if(!i(c))return!1;var l=typeof f;return(l=="number"?t(c)&&n(f,c.length):l=="string"&&f in c)?r(c[f],o):!1}return gt=u,gt}var bt,Da;function Ds(){if(Da)return bt;Da=1;var r=Ms(),t=Gs();function n(i){return r(function(u,o){var f=-1,c=o.length,l=c>1?o[c-1]:void 0,_=c>2?o[2]:void 0;for(l=i.length>3&&typeof l=="function"?(c--,l):void 0,_&&t(o[0],o[1],_)&&(l=c<3?void 0:l,c=1),u=Object(u);++f<c;){var p=o[f];p&&i(u,p,f,l)}return u})}return bt=n,bt}var yt,La;function Ls(){if(La)return yt;La=1;var r=ms(),t=Ds(),n=t(function(i,u,o){r(i,u,o)});return yt=n,yt}var Fs=Ls();const Es=G.getDefaultExportFromCjs(Fs);exports.merge=Es;exports.mergeWith=Ou;
|