feffery_utils_components 0.3.2 → 0.3.3

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.
Files changed (56) hide show
  1. package/DESCRIPTION +1 -1
  2. package/Project.toml +1 -1
  3. package/README-en_US.md +1 -1
  4. package/README.md +1 -1
  5. package/feffery_utils_components/FefferyDPlayer.py +11 -7
  6. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  7. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +1 -1
  8. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  9. package/feffery_utils_components/async-feffery_animated_image.js.LICENSE.txt +1 -1
  10. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  11. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  12. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  13. package/feffery_utils_components/async-feffery_auto_fit.js.LICENSE.txt +1 -1
  14. package/feffery_utils_components/async-feffery_barcode.js +1 -1
  15. package/feffery_utils_components/async-feffery_burger.js +1 -1
  16. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  17. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  18. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  19. package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -1
  20. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  21. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  22. package/feffery_utils_components/async-feffery_emoji_picker.js.LICENSE.txt +1 -1
  23. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  24. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  25. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  26. package/feffery_utils_components/async-feffery_grid.js +1 -1
  27. package/feffery_utils_components/async-feffery_http_requests.js +1 -1
  28. package/feffery_utils_components/async-feffery_http_requests.js.LICENSE.txt +1 -1
  29. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  30. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  31. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  32. package/feffery_utils_components/async-feffery_local_large_storage.js.LICENSE.txt +1 -1
  33. package/feffery_utils_components/async-feffery_markdown_editor.js +1 -1
  34. package/feffery_utils_components/async-feffery_motion.js +1 -1
  35. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  36. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  37. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js.LICENSE.txt +4 -2
  38. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  39. package/feffery_utils_components/async-feffery_rich_text_editor.js +1 -1
  40. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  41. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  42. package/feffery_utils_components/async-feffery_shortcut_panel.js +2 -2
  43. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -1
  44. package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -1
  45. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  46. package/feffery_utils_components/async-feffery_vditor.js +1 -1
  47. package/feffery_utils_components/async-feffery_vditor.js.LICENSE.txt +1 -1
  48. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  49. package/feffery_utils_components/async-fuc-shared.js +1 -1
  50. package/feffery_utils_components/feffery_utils_components.min.js +8 -8
  51. package/feffery_utils_components/feffery_utils_components.min.js.LICENSE.txt +1 -1
  52. package/feffery_utils_components/metadata.json +1 -1
  53. package/feffery_utils_components/package-info.json +2 -2
  54. package/package.json +2 -2
  55. package/webpack.config.js +1 -0
  56. package/.vscode/settings.json +0 -5
@@ -1,3 +1,3 @@
1
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[23],{550:function(t,e,n){"use strict";n.r(e);var i=n(1),o=n.n(i);const s=Object(i.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r=Object(i.createContext)({});const a=Object(i.createContext)(null),l="undefined"!=typeof document,c=l?i.useLayoutEffect:i.useEffect,u=Object(i.createContext)({strict:!1});function h(t,e,n,o){const l=Object(i.useContext)(r).visualElement,h=Object(i.useContext)(u),d=Object(i.useContext)(a),p=Object(i.useContext)(s).reducedMotion,m=Object(i.useRef)();o=o||h.renderer,!m.current&&o&&(m.current=o(t,{visualState:e,parent:l,props:n,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));const f=m.current;c(()=>{f&&f.render()});return(window.HandoffAppearAnimations?c:i.useEffect)(()=>{f&&f.animationState&&f.animationState.animateChanges()}),f}function d(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function p(t){return"string"==typeof t||Array.isArray(t)}function m(t){return"object"==typeof t&&"function"==typeof t.start}const f=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function g(t){return m(t.animate)||f.some(e=>p(t[e]))}function v(t){return Boolean(g(t)||t.variants)}function y(t){const{initial:e,animate:n}=function(t,e){if(g(t)){const{initial:e,animate:n}=t;return{initial:!1===e||p(e)?e:void 0,animate:p(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,Object(i.useContext)(r));return Object(i.useMemo)(()=>({initial:e,animate:n}),[x(e),x(n)])}function x(t){return Array.isArray(t)?t.join(" "):t}const b=t=>({isEnabled:e=>t.some(t=>!!e[t])}),w={measureLayout:b(["layout","layoutId","drag"]),animation:b(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:b(["exit"]),drag:b(["drag","dragControls"]),focus:b(["whileFocus"]),hover:b(["whileHover","onHoverStart","onHoverEnd"]),tap:b(["whileTap","onTap","onTapStart","onTapCancel"]),pan:b(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:b(["whileInView","onViewportEnter","onViewportLeave"])};function T(t){const e=Object(i.useRef)(null);return null===e.current&&(e.current=t()),e.current}const P={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let E=1;const S=Object(i.createContext)({});class A extends o.a.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const V=Object(i.createContext)({}),C=Symbol.for("motionComponentSymbol");function k({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:o,useVisualState:a,Component:c}){t&&function(t){for(const e in t)"projectionNodeConstructor"===e?w.projectionNodeConstructor=t[e]:w[e].Component=t[e]}(t);const p=Object(i.forwardRef)((function(p,m){const f={...Object(i.useContext)(s),...p,layoutId:M(p)},{isStatic:g}=f;let v=null;const x=y(p),b=g?void 0:T(()=>{if(P.hasEverUpdated)return E++}),S=a(p,g);if(!g&&l){x.visualElement=h(c,S,f,e);const o=Object(i.useContext)(u).strict,s=Object(i.useContext)(V);x.visualElement&&(v=x.visualElement.loadFeatures(f,o,t,b,n||w.projectionNodeConstructor,s))}return i.createElement(A,{visualElement:x.visualElement,props:f},v,i.createElement(r.Provider,{value:x},o(c,p,b,function(t,e,n){return Object(i.useCallback)(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):d(n)&&(n.current=i))},[e])}(S,x.visualElement,m),S,g,x.visualElement)))}));return p[C]=c,p}function M({layoutId:t}){const e=Object(i.useContext)(S).id;return e&&void 0!==t?e+"-"+t:t}function j(t){function e(e,n={}){return k(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const O=["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 R(t){return"string"==typeof t&&!t.includes("-")&&!!(O.indexOf(t)>-1||/[A-Z]/.test(t))}const D={};const L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(L);function F(t,{layout:e,layoutId:n}){return B.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!D[t]||"opacity"===t)}const I=t=>!!(null==t?void 0:t.getVelocity),U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N=(t,e)=>L.indexOf(t)-L.indexOf(e);function $(t){return t.startsWith("--")}const H=(t,e)=>e&&"number"==typeof t?e.transform(t):t,z=(t,e,n)=>Math.min(Math.max(n,t),e),W={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},X={...W,transform:t=>z(0,1,t)},Y={...W,default:1},q=t=>Math.round(1e5*t)/1e5,G=/(-)?([\d]*\.?[\d])+/g,Z=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,K=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _(t){return"string"==typeof t}const J=t=>({test:e=>_(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),it=J("vw"),ot={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)},st={...W,transform:Math.round},rt={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:X,originX:ot,originY:ot,originZ:et,zIndex:st,fillOpacity:X,strokeOpacity:X,numOctaves:st};function at(t,e,n,i){const{style:o,vars:s,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let c=!1,u=!1,h=!0;for(const t in e){const n=e[t];if($(t)){s[t]=n;continue}const i=rt[t],d=H(n,i);if(B.has(t)){if(c=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,l[t]=d):o[t]=d}if(e.transform||(c||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(N);for(const n of e)r+=`${U[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}const lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ct(t,e,n){for(const i in e)I(e[i])||F(i,n)||(t[i]=e[i])}function ut(t,e,n){const o={};return ct(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},e,n){return Object(i.useMemo)(()=>{const i={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return at(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(o):o}function ht(t,e,n){const i={},o=ut(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),i.style=o,i}const dt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","viewport"]);function pt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||dt.has(t)}let mt=t=>!pt(t);try{(ft=n(783).default)&&(mt=t=>t.startsWith("on")?!pt(t):ft(t))}catch(t){}var ft;function gt(t,e,n){return"string"==typeof t?t:et.transform(e+n*t)}const vt={offset:"stroke-dashoffset",array:"stroke-dasharray"},yt={offset:"strokeDashoffset",array:"strokeDasharray"};function xt(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},c,u,h){if(at(t,l,c,h),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${gt(e,t.x,t.width)} ${gt(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?vt:yt;t[s.offset]=et.transform(-i);const r=et.transform(e),a=et.transform(n);t[s.array]=`${r} ${a}`}(d,s,r,a,!1)}const bt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),wt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Tt(t,e,n,o){const s=Object(i.useMemo)(()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return xt(n,e,{enableHardwareAcceleration:!1},wt(o),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};ct(e,t.style,t),s.style={...e,...s.style}}return s}function Pt(t=!1){return(e,n,o,s,{latestValues:r},a)=>{const l=(R(e)?Tt:ht)(n,r,a,e),c={...function(t,e,n){const i={};for(const o in t)"values"===o&&"object"==typeof t.values||(mt(o)||!0===n&&pt(o)||!e&&!pt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}(n,"string"==typeof e,t),...l,ref:s},{children:u}=n,h=Object(i.useMemo)(()=>I(u)?u.get():u,[u]);return o&&(c["data-projection-id"]=o),Object(i.createElement)(e,{...c,children:h})}}const Et=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function St(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}const At=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 Vt(t,e,n,i){St(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(At.has(n)?n:Et(n),e.attrs[n])}function Ct(t,e){const{style:n}=t,i={};for(const o in n)(I(n[o])||e.style&&I(e.style[o])||F(o,t))&&(i[o]=n[o]);return i}function kt(t,e){const n=Ct(t,e);for(const i in t)if(I(t[i])||I(e[i])){n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]}return n}function Mt(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}const jt=t=>Array.isArray(t);function Ot(t){const e=I(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Rt=t=>(e,n)=>{const o=Object(i.useContext)(r),s=Object(i.useContext)(a),l=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,o,s){const r={latestValues:Dt(i,o,s,t),renderState:e()};return n&&(r.mount=t=>n(i,t,r)),r}(t,e,o,s);return n?l():T(l)};function Dt(t,e,n,i){const o={},s=i(t,{});for(const t in s)o[t]=Ot(s[t]);let{initial:r,animate:a}=t;const l=g(t),c=v(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===r;const h=u?a:r;if(h&&"boolean"!=typeof h&&!m(h)){(Array.isArray(h)?h:[h]).forEach(e=>{const n=Mt(t,e);if(!n)return;const{transitionEnd:i,transition:s,...r}=n;for(const t in r){let e=r[t];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in i)o[t]=i[t]})}return o}const Lt={useVisualState:Rt({scrapeMotionValuesFromProps:kt,createRenderState:bt,onMount:(t,e,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}xt(n,i,{enableHardwareAcceleration:!1},wt(e.tagName),t.transformTemplate),Vt(e,n)}})},Bt={useVisualState:Rt({scrapeMotionValuesFromProps:Ct,createRenderState:lt})};function Ft(t,{forwardMotionProps:e=!1},n,i,o){return{...R(t)?Lt:Bt,preloadedFeatures:n,useRender:Pt(e),createVisualElement:i,projectionNodeConstructor:o,Component:t}}var It;function Ut(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Nt(t,e,n,o){Object(i.useEffect)(()=>{const i=t.current;if(n&&i)return Ut(i,e,n,o)},[t,e,n,o])}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(It||(It={}));const $t=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Ht(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const zt=t=>e=>$t(e)&&t(e,Ht(e));function Wt(t,e,n,i){return Ut(t,e,zt(n),i)}function Xt(t,e,n,i){return Nt(t,e,n&&zt(n),i)}function Yt(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const qt=Yt("dragHorizontal"),Gt=Yt("dragVertical");function Zt(t){let e=!1;if("y"===t)e=Gt();else if("x"===t)e=qt();else{const t=qt(),n=Gt();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Kt(){const t=Zt(!0);return!t||(t(),!1)}function _t(t,e,n,i){return(o,s)=>{"touch"===o.type||Kt()||(n&&t.animationState&&t.animationState.setActive(It.Hover,e),i&&i(o,s))}}const Jt=(t,e)=>!!e&&(t===e||Jt(t,e.parentElement));function Qt(t){return Object(i.useEffect)(()=>()=>t(),[])}const te=(t,e)=>n=>e(t(n)),ee=(...t)=>t.reduce(te);const ne=new WeakMap,ie=new WeakMap,oe=t=>{const e=ne.get(t.target);e&&e(t)},se=t=>{t.forEach(oe)};function re(t,e,n){const i=function({root:t,...e}){const n=t||document;ie.has(n)||ie.set(n,{});const i=ie.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(se,{root:t,...e})),i[o]}(e);return ne.set(t,n),i.observe(t),()=>{ne.delete(t),i.unobserve(t)}}const ae={some:0,all:1};function le(t,e,n,{root:o,margin:s,amount:r="some",once:a}){Object(i.useEffect)(()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:ae[r]};return re(n.current,i,t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(It.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)})},[t,o,s,r])}function ce(t,e,n,{fallback:o=!0}){Object(i.useEffect)(()=>{t&&o&&requestAnimationFrame(()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(It.InView,!0)})},[t])}const ue=t=>e=>(t(e),null),he={inView:ue((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=Object(i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ce:le)(a,r.current,t,s)})),tap:ue((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s,...r}){const a=t||e||n||o,l=Object(i.useRef)(!1),c=Object(i.useRef)(null),u={passive:!(e||t||n||r.onPointerDown)};function h(){c.current&&c.current(),c.current=null}function d(){h(),l.current=!1;return s.getProps().whileTap&&s.animationState&&s.animationState.setActive(It.Tap,!1),!Kt()}function p(t,e){var n,i,o,r;d()&&(Jt(s.current,t.target)?null===(r=(o=s.getProps()).onTap)||void 0===r||r.call(o,t,e):null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}function m(t,e){var n,i;d()&&(null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}const f=Object(i.useCallback)((t,e)=>{var n;if(h(),l.current)return;l.current=!0,c.current=ee(Wt(window,"pointerup",p,u),Wt(window,"pointercancel",m,u));const i=s.getProps();i.whileTap&&s.animationState&&s.animationState.setActive(It.Tap,!0),null===(n=i.onTapStart)||void 0===n||n.call(i,t,e)},[Boolean(e),s]);Xt(s,"pointerdown",a?f:void 0,u),Qt(h)})),focus:ue((function({whileFocus:t,visualElement:e}){const{animationState:n}=e,o=Object(i.useCallback)(()=>{n&&n.setActive(It.Focus,!0)},[n]),s=Object(i.useCallback)(()=>{n&&n.setActive(It.Focus,!1)},[n]);Nt(e,"focus",t?o:void 0),Nt(e,"blur",t?s:void 0)})),hover:ue((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){Xt(o,"pointerenter",Object(i.useMemo)(()=>t||n?_t(o,!0,Boolean(n),t):void 0,[t,Boolean(n),o]),{passive:!t}),Xt(o,"pointerleave",Object(i.useMemo)(()=>e||n?_t(o,!1,Boolean(n),e):void 0,[t,Boolean(n),o]),{passive:!e})}))};function de(){const t=Object(i.useContext)(a);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,s=Object(i.useId)();Object(i.useEffect)(()=>o(s),[]);return!e&&n?[!1,()=>n&&n(s)]:[!0]}function pe(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 me=t=>/^0[^.\s]+$/.test(t),fe={delta:0,timestamp:0},ge="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ve="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(ge()),1/60*1e3);let ye=!0,xe=!1,be=!1;const we=["read","update","preRender","render","postRender"],Te=we.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,c=l?e:n;return s&&r.add(t),-1===c.indexOf(t)&&(c.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}(()=>xe=!0),t),{}),Pe=we.reduce((t,e)=>{const n=Te[e];return t[e]=(t,e=!1,i=!1)=>(xe||Ce(),n.schedule(t,e,i)),t},{}),Ee=we.reduce((t,e)=>(t[e]=Te[e].cancel,t),{}),Se=we.reduce((t,e)=>(t[e]=()=>Te[e].process(fe),t),{}),Ae=t=>Te[t].process(fe),Ve=t=>{xe=!1,fe.delta=ye?1/60*1e3:Math.max(Math.min(t-fe.timestamp,40),1),fe.timestamp=t,be=!0,we.forEach(Ae),be=!1,xe&&(ye=!1,ve(Ve))},Ce=()=>{xe=!0,ye=!0,be||ve(Ve)};function ke(t,e){-1===t.indexOf(e)&&t.push(e)}function Me(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class je{constructor(){this.subscriptions=[]}add(t){return ke(this.subscriptions,t),()=>Me(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Oe(t,e){return e?t*(1e3/e):0}class Re{constructor(t,e={}){var n;this.version="8.5.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:i}=fe;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,Pe.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Pe.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new je);const n=this.events[t].add(e);return"change"===t?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Oe(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function De(t,e){return new Re(t,e)}const Le=(t,e)=>n=>Boolean(_(n)&&K.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Be=(t,e,n)=>i=>{if(!_(i))return i;const[o,s,r,a]=i.match(G);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Fe={...W,transform:t=>Math.round((t=>z(0,255,t))(t))},Ie={test:Le("rgb","red"),parse:Be("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Fe.transform(t)+", "+Fe.transform(e)+", "+Fe.transform(n)+", "+q(X.transform(i))+")"};const Ue={test:Le("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:Ie.transform},Ne={test:Le("hsl","hue"),parse:Be("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+tt.transform(q(e))+", "+tt.transform(q(n))+", "+q(X.transform(i))+")"},$e={test:t=>Ie.test(t)||Ue.test(t)||Ne.test(t),parse:t=>Ie.test(t)?Ie.parse(t):Ne.test(t)?Ne.parse(t):Ue.parse(t),transform:t=>_(t)?t:t.hasOwnProperty("red")?Ie.transform(t):Ne.transform(t)};function He(t){"number"==typeof t&&(t=""+t);const e=[];let n=0,i=0;const o=t.match(Z);o&&(n=o.length,t=t.replace(Z,"${c}"),e.push(...o.map($e.parse)));const s=t.match(G);return s&&(i=s.length,t=t.replace(G,"${n}"),e.push(...s.map(W.parse))),{values:e,numColors:n,numNumbers:i,tokenised:t}}function ze(t){return He(t).values}function We(t){const{values:e,numColors:n,tokenised:i}=He(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=e.replace(i<n?"${c}":"${n}",i<n?$e.transform(t[i]):q(t[i]));return e}}const Xe=t=>"number"==typeof t?0:t;const Ye={test:function(t){var e,n;return isNaN(t)&&_(t)&&((null===(e=t.match(G))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Z))||void 0===n?void 0:n.length)||0)>0},parse:ze,createTransformer:We,getAnimatableNone:function(t){const e=ze(t);return We(t)(e.map(Xe))}},qe=new Set(["brightness","contrast","saturate","opacity"]);function Ge(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(G)||[];if(!i)return t;const o=n.replace(i,"");let s=qe.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const Ze=/([a-z-]*)\(.*?\)/g,Ke={...Ye,getAnimatableNone:t=>{const e=t.match(Ze);return e?e.map(Ge).join(" "):t}},_e={...rt,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Ke,WebkitFilter:Ke},Je=t=>_e[t];function Qe(t,e){var n;let i=Je(t);return i!==Ke&&(i=Ye),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}const tn=t=>e=>e.test(t),en=[W,et,tt,Q,it,nt,{test:t=>"auto"===t,parse:t=>t}],nn=t=>en.find(tn(t)),on=[...en,$e,Ye],sn=t=>on.find(tn(t));function rn(t,e,n){const i=t.getProps();return Mt(i,e,void 0!==n?n:i.custom,function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function an(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,De(n))}function ln(t,e){const n=rn(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){an(t,e,(r=s[e],jt(r)?r[r.length-1]||0:r))}var r}function cn(t,e){if(!e)return;return(e[t]||e.default||e).from}function un(t){return Boolean(I(t)&&t.add)}const hn="data-"+Et("framerAppearId");var dn=n(582);const pn=t=>1e3*t,mn=!1,fn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gn=t=>e=>1-t(1-e),vn=t=>t*t,yn=gn(vn),xn=fn(vn),bn=(t,e,n)=>-n*t+n*e+t;function wn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Tn=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Pn=[Ue,Ie,Ne];function En(t){const e=(n=t,Pn.find(t=>t.test(n)));var n;Object(dn.invariant)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===Ne&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=wn(a,i,t+1/3),s=wn(a,i,t),r=wn(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const Sn=(t,e)=>{const n=En(t),i=En(e),o={...n};return t=>(o.red=Tn(n.red,i.red,t),o.green=Tn(n.green,i.green,t),o.blue=Tn(n.blue,i.blue,t),o.alpha=bn(n.alpha,i.alpha,t),Ie.transform(o))};function An(t,e){return"number"==typeof t?n=>bn(t,e,n):$e.test(t)?Sn(t,e):kn(t,e)}const Vn=(t,e)=>{const n=[...t],i=n.length,o=t.map((t,n)=>An(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},Cn=(t,e)=>{const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=An(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}},kn=(t,e)=>{const n=Ye.createTransformer(e),i=He(t),o=He(e);return i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?ee(Vn(i.values,o.values),n):(Object(dn.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>""+(n>0?e:t))},Mn=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},jn=(t,e)=>n=>bn(t,e,n);function On(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?jn:"string"==typeof s?$e.test(s)?Sn:kn:Array.isArray(s)?Vn:"object"==typeof s?Cn:jn);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=ee(t,s)}i.push(s)}return i}function Rn(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const s=t.length;Object(dn.invariant)(s===e.length,"Both input and output ranges must be the same length"),Object(dn.invariant)(!i||!Array.isArray(i)||i.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=On(e,i,o),a=r.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=Mn(t[n],t[n+1],e);return r[n](i)};return n?e=>l(z(t[0],t[s-1],e)):l}const Dn=t=>t,Ln=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Bn(t,e,n,i){if(t===e&&n===i)return Dn;const o=e=>function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=Ln(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Ln(o(t),e,i)}const Fn=t=>1-Math.sin(Math.acos(t)),In=gn(Fn),Un=fn(In),Nn=Bn(.33,1.53,.69,.99),$n=gn(Nn),Hn=fn($n),zn={linear:Dn,easeIn:vn,easeInOut:xn,easeOut:yn,circIn:Fn,circInOut:Un,circOut:In,backIn:$n,backInOut:Hn,backOut:Nn,anticipate:t=>(t*=2)<1?.5*$n(t):.5*(2-Math.pow(2,-10*(t-1)))},Wn=t=>{if(Array.isArray(t)){Object(dn.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,o]=t;return Bn(e,n,i,o)}return"string"==typeof t?(Object(dn.invariant)(void 0!==zn[t],`Invalid easing type '${t}'`),zn[t]):t};function Xn({keyframes:t,ease:e=xn,times:n,duration:i=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(Wn):Wn(e),s={done:!1,value:t[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t),i);function a(){return Rn(r,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map(()=>n||xn).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=i,s),flipTarget:()=>{t.reverse(),l=a()}}}function Yn({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,s;Object(dn.warning)(t<=1e4,"Spring duration must be 10 seconds or less");let r=1-e;r=z(.05,1,r),t=z(.01,10,t/1e3),r<1?(o=e=>{const i=e*r,o=i*t;return.001-(i-n)/qn(e,r)*Math.exp(-o)},s=e=>{const i=e*r*t,s=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=qn(Math.pow(e,2),r);return(.001-o(e)>0?-1:1)*((s-a)*l)/c}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(o,s,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}function qn(t,e){return t*Math.sqrt(1-e*e)}const Gn=["duration","bounce"],Zn=["stiffness","damping","mass"];function Kn(t,e){return e.some(e=>void 0!==t[e])}function _n({keyframes:t,restDelta:e,restSpeed:n,...i}){let o=t[0],s=t[t.length-1];const r={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Kn(t,Zn)&&Kn(t,Gn)){const n=Yn(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(i);let p=Jn,m=u?-u/1e3:0;const f=l/(2*Math.sqrt(a*c));function g(){const t=s-o,i=Math.sqrt(a/c)/1e3,r=Math.abs(t)<5;if(n||(n=r?.01:2),e||(e=r?.005:.5),f<1){const e=qn(i,f);p=n=>{const o=Math.exp(-f*i*n);return s-o*((m+f*i*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===f)p=e=>s-Math.exp(-i*e)*(t+(m+i*t)*e);else{const e=i*Math.sqrt(f*f-1);p=n=>{const o=Math.exp(-f*i*n),r=Math.min(e*n,300);return s-o*((m+f*i*t)*Math.sinh(r)+e*t*Math.cosh(r))/e}}}return g(),{next:t=>{const i=p(t);if(d)r.done=t>=h;else{let o=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);o=Oe(i-p(e),t-e)}else o=0;const a=Math.abs(o)<=n,l=Math.abs(s-i)<=e;r.done=a&&l}return r.value=r.done?s:i,r},flipTarget:()=>{m=-m,[o,s]=[s,o],g()}}}_n.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const Jn=t=>0;const Qn={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r=t[0],a={done:!1,value:r};let l=n*e;const c=r+l,u=void 0===s?c:s(c);return u!==c&&(l=u-r),{next:t=>{const e=-l*Math.exp(-t/i);return a.done=!(e>o||e<-o),a.value=a.done?u:u+e,a},flipTarget:()=>{}}},keyframes:Xn,tween:Xn,spring:_n};function ti(t,e,n=0){return t-e-n}const ei=t=>{const e=({delta:e})=>t(e);return{start:()=>Pe.update(e,!0),stop:()=>Ee.update(e)}};function ni({duration:t,driver:e=ei,elapsed:n=0,repeat:i=0,repeatType:o="loop",repeatDelay:s=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){var f,g;const v=n;let y,x,b=0,w=t,T=!1,P=!0;const E=Qn[r.length>2?"keyframes":p]||Xn,S=r[0],A=r[r.length-1];let V={done:!1,value:S};(null===(g=(f=E).needsInterpolation)||void 0===g?void 0:g.call(f,S,A))&&(x=Rn([0,100],[S,A],{clamp:!1}),r=[0,100]);const C=E({...m,duration:t,keyframes:r});function k(){b++,"reverse"===o?(P=b%2==0,n=function(t,e=0,n=0,i=!0){return i?ti(e+-t,e,n):e-(t-e)+n}(n,w,s,P)):(n=ti(n,w,s),"mirror"===o&&C.flipTarget()),T=!1,h&&h()}function M(t){P||(t=-t),n+=t,T||(V=C.next(Math.max(0,n)),x&&(V.value=x(V.value)),T=P?V.done:n<=0),d&&d(V.value),T&&(0===b&&(w=void 0!==w?w:n),b<i?function(t,e,n,i){return i?t>=e+n:t<=-n}(n,w,s,P)&&k():(y&&y.stop(),u&&u()))}return a&&(l&&l(),y=e(M),y.start()),{stop:()=>{c&&c(),y&&y.stop()},set currentTime(t){n=v,M(t)},sample:e=>{n=v;const i=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(M(0);o<=e;){const t=e-o;M(Math.min(t,i)),o+=i}return V}}}const ii=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,oi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ii([0,.65,.55,1]),circOut:ii([.55,0,1,.45]),backIn:ii([.31,.01,.66,-.59]),backOut:ii([.33,1.53,.69,.99])};function si(t){if(t)return Array.isArray(t)?ii(t):oi[t]}const ri={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ai={},li={};for(const t in ri)li[t]=()=>(void 0===ai[t]&&(ai[t]=ri[t]()),ai[t]);const ci=new Set(["opacity"]);function ui(t,e,{onUpdate:n,onComplete:i,...o}){if(!(li.waapi()&&ci.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:r=300,elapsed:a=0,ease:l}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&oi[c])){if(o.repeat===1/0)return;const t=ni({...o,elapsed:0});let e={done:!1,value:s[0]};const n=[];let i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;s=n,r=i-10,l="linear"}var c;const u=function(t,e,n,{delay:i=0,duration:o,repeat:s=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:o,easing:si(a),fill:"both",iterations:s+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-a,duration:r,ease:l});return u.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),Pe.update(()=>u.cancel()),i&&i()},{get currentTime(){return u.currentTime||0},set currentTime(t){u.currentTime=t},stop:()=>{const{currentTime:e}=u;if(e){const n=ni({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Pe.update(()=>u.cancel())}}}function hi(t,e){const n=performance.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(Ee.read(i),t(s-e))};return Pe.read(i,!0),()=>Ee.read(i)}const di=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),pi=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mi=()=>({type:"keyframes",ease:"linear",duration:.3}),fi={type:"keyframes",duration:.8},gi={x:di,y:di,z:di,rotate:di,rotateX:di,rotateY:di,rotateZ:di,scaleX:pi,scaleY:pi,scale:pi,opacity:mi,backgroundColor:mi,color:mi,default:pi},vi=(t,{keyframes:e})=>{if(e.length>2)return fi;return(gi[t]||gi.default)(e[1])},yi=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Ye.test(e)||e.startsWith("url(")));function xi(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bi(t){return"number"==typeof t?0:Qe("",t)}function wi(t,e){return t[e]||t.default||t}const Ti=(t,e,n,i={})=>o=>{const s=wi(i,t)||{},r=s.delay||i.delay||0;let{elapsed:a=0}=i;a-=pn(r);const l=function(t,e,n,i){const o=yi(e,n);let s=void 0!==i.from?i.from:t.get();return"none"===s&&o&&"string"==typeof n?s=Qe(e,n):xi(s)&&"string"==typeof n?s=bi(n):!Array.isArray(n)&&xi(n)&&"string"==typeof s&&(n=bi(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,s),c=l[0],u=l[l.length-1],h=yi(t,c),d=yi(t,u);Object(dn.warning)(h===d,`You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...s,elapsed:a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{o(),s.onComplete&&s.onComplete()}};if(!h||!d||mn||!1===s.type)return function({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){const o=()=>{n&&n(t[t.length-1]),i&&i()};return e?{stop:hi(o,-e)}:o()}(p);if("inertia"===s.type)return function({keyframes:t,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function g(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=ni({keyframes:[0,1],velocity:0,...t,driver:u,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(g(m))x({velocity:e,keyframes:[m,v(m)]});else{let t=o*e+m;void 0!==c&&(t=c(t));const i=v(t),r=i===n?-1:1;let a,u;const h=t=>{a=u,u=t,e=Oe(t-a,fe.delta),(1===r&&t>i||-1===r&&t<i)&&x({keyframes:[t,i],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:c,onUpdate:g(t)?h:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(p);(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(p={...p,...vi(t,p)}),p.duration&&(p.duration=pn(p.duration)),p.repeatDelay&&(p.repeatDelay=pn(p.repeatDelay));const m=e.owner,f=m&&m.current;if(m&&f instanceof HTMLElement&&!(null==m?void 0:m.getProps().onUpdate)){const n=ui(e,t,p);if(n)return n}return ni(p)};function Pi(t,e,n={}){var i;const o=rn(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>Ei(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(Si).forEach((t,i)=>{t.notify("AnimationStart",e),r.push(Pi(t,e,{...s,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function Ei(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const u=[],h=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||h&&Ai(h,e))continue;const s={delay:n,elapsed:0,...r};if(window.HandoffAppearAnimations&&!i.hasAnimated){const n=t.getProps()[hn];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,i,Pe))}let a=i.start(Ti(e,i,o,t.shouldReduceMotion&&B.has(e)?{type:!1}:s));un(c)&&(c.add(e),a=a.then(()=>c.remove(e))),u.push(a)}return Promise.all(u).then(()=>{a&&ln(t,a)})}function Si(t,e){return t.sortNodePosition(e)}function Ai({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}const Vi=[It.Animate,It.InView,It.Focus,It.Hover,It.Tap,It.Drag,It.Exit],Ci=[...Vi].reverse(),ki=Vi.length;function Mi(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Pi(t,e,n));i=Promise.all(o)}else if("string"==typeof e)i=Pi(t,e,n);else{const o="function"==typeof e?rn(t,e,n.custom):e;i=Ei(t,o,n)}return i.then(()=>t.notify("AnimationComplete",e))}(t,e,n)))}function ji(t){let e=Mi(t);const n={[It.Animate]:Ri(!0),[It.InView]:Ri(),[It.Hover]:Ri(),[It.Tap]:Ri(),[It.Drag]:Ri(),[It.Focus]:Ri(),[It.Exit]:Ri()};let i=!0;const o=(e,n)=>{const i=rn(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function s(s,r){const a=t.getProps(),l=t.getVariantContext(!0)||{},c=[],u=new Set;let h={},d=1/0;for(let e=0;e<ki;e++){const f=Ci[e],g=n[f],v=void 0!==a[f]?a[f]:l[f],y=p(v),x=f===r?g.isActive:null;!1===x&&(d=e);let b=v===l[f]&&v!==a[f]&&y;if(b&&i&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...h},!g.isActive&&null===x||!v&&!g.prevProp||m(v)||"boolean"==typeof v)continue;const w=Oi(g.prevProp,v);let T=w||f===r&&g.isActive&&!b&&y||e>d&&y;const P=Array.isArray(v)?v:[v];let E=P.reduce(o,{});!1===x&&(E={});const{prevResolvedValues:S={}}=g,A={...S,...E},V=t=>{T=!0,u.delete(t),g.needsAnimating[t]=!0};for(const t in A){const e=E[t],n=S[t];h.hasOwnProperty(t)||(e!==n?jt(e)&&jt(n)?!pe(e,n)||w?V(t):g.protectedKeys[t]=!0:void 0!==e?V(t):u.add(t):void 0!==e&&u.has(t)?V(t):g.protectedKeys[t]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),i&&t.blockInitialAnimation&&(T=!1),T&&!b&&c.push(...P.map(t=>({animation:t,options:{type:f,...s}})))}if(u.size){const e={};u.forEach(n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)}),c.push({animation:e})}let f=Boolean(c.length);return i&&!1===a.initial&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(c):Promise.resolve()}return{animateChanges:s,setActive:function(e,i,o){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;const a=s(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Oi(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!pe(e,t)}function Ri(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const Di={animation:ue(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ji(t)),m(e)&&Object(i.useEffect)(()=>e.subscribe(t),[e])}),exit:ue(t=>{const{custom:e,visualElement:n}=t,[o,s]=de(),r=Object(i.useContext)(a);Object(i.useEffect)(()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(It.Exit,!o,{custom:r&&r.custom||e});t&&!o&&t.then(s)},[o])})},Li=(t,e)=>Math.abs(t-e);class Bi{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Ui(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Li(t.x,e.x),i=Li(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=fe;this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Fi(e,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:i}=this.handlers,o=Ui("pointercancel"===t.type?this.lastMoveEventInfo:Fi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!$t(t))return;this.handlers=e,this.transformPagePoint=n;const i=Fi(Ht(t),this.transformPagePoint),{point:o}=i,{timestamp:s}=fe;this.history=[{...o,timestamp:s}];const{onSessionStart:r}=e;r&&r(t,Ui(i,this.history)),this.removeListeners=ee(Wt(window,"pointermove",this.handlePointerMove),Wt(window,"pointerup",this.handlePointerUp),Wt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ee.update(this.updatePoint)}}function Fi(t,e){return e?{point:e(t.point)}:t}function Ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ui({point:t},e){return{point:t,delta:Ii(t,$i(e)),offset:Ii(t,Ni(e)),velocity:Hi(e,.1)}}function Ni(t){return t[0]}function $i(t){return t[t.length-1]}function Hi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=$i(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>pn(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function zi(t){return t.max-t.min}function Wi(t,e=0,n=.01){return Math.abs(t-e)<=n}function Xi(t,e,n,i=.5){t.origin=i,t.originPoint=bn(e.min,e.max,t.origin),t.scale=zi(n)/zi(e),(Wi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=bn(n.min,n.max,t.origin)-t.originPoint,(Wi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Yi(t,e,n,i){Xi(t.x,e.x,n.x,null==i?void 0:i.originX),Xi(t.y,e.y,n.y,null==i?void 0:i.originY)}function qi(t,e,n){t.min=n.min+e.min,t.max=t.min+zi(e)}function Gi(t,e,n){t.min=e.min-n.min,t.max=t.min+zi(e)}function Zi(t,e,n){Gi(t.x,e.x,n.x),Gi(t.y,e.y,n.y)}function Ki(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function _i(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}}const Ji=.35;function Qi(t,e,n){return{min:to(t,e),max:to(t,n)}}function to(t,e){return"number"==typeof t?t:t[e]||0}function eo(t){return[t("x"),t("y")]}function no({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function io(t){return void 0===t||1===t}function oo({scale:t,scaleX:e,scaleY:n}){return!io(t)||!io(e)||!io(n)}function so(t){return oo(t)||ro(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ro(t){return ao(t.x)||ao(t.y)}function ao(t){return t&&"0%"!==t}function lo(t,e,n){return n+e*(t-n)}function co(t,e,n,i,o){return void 0!==o&&(t=lo(t,o,i)),lo(t,n,i)+e}function uo(t,e=0,n=1,i,o){t.min=co(t.min,e,n,i,o),t.max=co(t.max,e,n,i,o)}function ho(t,{x:e,y:n}){uo(t.x,e.translate,e.scale,e.originPoint),uo(t.y,n.translate,n.scale,n.originPoint)}function po(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function mo(t,e){t.min=t.min+e,t.max=t.max+e}function fo(t,e,[n,i,o]){const s=void 0!==e[o]?e[o]:.5,r=bn(t.min,t.max,s);uo(t,e[n],e[i],r,e.scale)}const go=["x","scaleX","originX"],vo=["y","scaleY","originY"];function yo(t,e){fo(t.x,e,go),fo(t.y,e,vo)}function xo(t,e){return no(function(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}}(t.getBoundingClientRect(),e))}const bo=new WeakMap;class wo{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new Bi(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(Ht(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zt(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eo(t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(tt.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=zi(o)*(parseFloat(i)/100)}}this.originPoint[t]=i}),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(It.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null==o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(It.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!To(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?bn(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?bn(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:Ki(t.x,n,o),y:Ki(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=Ji){return!1===t?t=0:!0===t&&(t=Ji),{x:Qi(t,"left","right"),y:Qi(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eo(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!d(t))return!1;const n=t.current;Object(dn.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(t,e,n){const i=xo(t,n),{scroll:o}=e;return o&&(mo(i.x,o.offset.x),mo(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:_i(t.x,e.x),y:_i(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=no(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=eo(r=>{if(!To(r,e,this.currentDirection))return;let l=(null==a?void 0:a[r])||{};s&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Ti(t,n,0,e))}stopAnimation(){eo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){eo(e=>{const{drag:n}=this.getProps();if(!To(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-bn(n,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!d(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};eo(t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const i=zi(t),o=zi(e);return o>i?n=Mn(e.min,e.max-i,t.min):i>o&&(n=Mn(t.min,t.max-o,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),eo(t=>{if(!To(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(bn(i,s,o[t]))})}addListeners(){var t;if(!this.visualElement.current)return;bo.set(this.visualElement,this);const e=Wt(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),n=()=>{const{dragConstraints:t}=this.getProps();d(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),n();const s=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eo(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),o(),null==r||r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ji,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function To(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Po={pan:ue((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:o,visualElement:r}){const a=t||e||n||o,l=Object(i.useRef)(null),{transformPagePoint:c}=Object(i.useContext)(s),u={onSessionStart:o,onStart:e,onMove:t,onEnd:(t,e)=>{l.current=null,n&&n(t,e)}};Object(i.useEffect)(()=>{null!==l.current&&l.current.updateHandlers(u)}),Xt(r,"pointerdown",a&&function(t){l.current=new Bi(t,u,{transformPagePoint:c})}),Qt(()=>l.current&&l.current.end())})),drag:ue((function(t){const{dragControls:e,visualElement:n}=t,o=T(()=>new wo(n));Object(i.useEffect)(()=>e&&e.subscribe(o),[o,e]),Object(i.useEffect)(()=>o.addListeners(),[o])}))};function Eo(t){return"string"==typeof t&&t.startsWith("var(--")}const So=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ao(t,e,n=1){Object(dn.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,o]=function(t){const e=So.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():Eo(o)?Ao(o,e,n+1):o}const Vo=new Set(["width","height","top","left","right","bottom","x","y"]),Co=t=>Vo.has(t),ko=t=>t===W||t===et;var Mo;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Mo||(Mo={}));const jo=(t,e)=>parseFloat(t.split(", ")[e]),Oo=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return jo(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?jo(e[1],t):0}},Ro=new Set(["x","y","z"]),Do=L.filter(t=>!Ro.has(t));const Lo={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Oo(4,13),y:Oo(5,14)},Bo=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Co);let s=[],r=!1;const a=[];if(o.forEach(o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],u=nn(c);const h=e[o];let d;if(jt(h)){const t=h.length,e=null===h[0]?1:0;c=h[e],u=nn(c);for(let n=e;n<t;n++)d?Object(dn.invariant)(nn(h[n])===d,"All keyframes must be of the same type"):(d=nn(h[n]),Object(dn.invariant)(d===u||ko(u)&&ko(d),"Keyframes must be of the same dimension as the current value"))}else d=nn(h);if(u!==d)if(ko(u)&&ko(d)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof h?e[o]=parseFloat(h):Array.isArray(h)&&d===et&&(e[o]=h.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==d?void 0:d.transform)&&(0===c||0===h)?0===c?l.set(d.transform(c)):e[o]=u.transform(h):(r||(s=function(t){const e=[];return Do.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),r=!0),a.push(o),i[o]=void 0!==i[o]?i[o]:e[o],l.jump(h))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=Lo[t](i,s)}),e.render();const l=e.measureViewportBox();return n.forEach(n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Lo[n](l,s)}),t})(e,t,a);return s.length&&s.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),l&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function Fo(t,e,n,i){return(t=>Object.keys(t).some(Co))(e)?Bo(t,e,n,i):{target:e,transitionEnd:i}}const Io=(t,e,n,i)=>{const o=function(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(t=>{const e=t.get();if(!Eo(e))return;const n=Ao(e,i);n&&t.set(n)});for(const t in e){const o=e[t];if(!Eo(o))continue;const s=Ao(o,i);s&&(e[t]=s,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,i);return Fo(t,e=o.target,n,i=o.transitionEnd)},Uo={current:null},No={current:!1};const $o=Object.keys(w),Ho=$o.length,zo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Wo=["initial",...Vi],Xo=Wo.length;class Yo extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Pe.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=g(e),this.isVariantNode=v(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&I(e)&&(e.set(s[t],!1),un(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),No.current||function(){if(No.current=!0,l)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Uo.current=t.matches;t.addListener(e),e()}else Uo.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Uo.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Ee.update(this.notifyUpdate),Ee.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=B.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Pe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,o,s,r,a){const l=[];for(let t=0;t<Ho;t++){const n=$o[t],{isEnabled:o,Component:s}=w[n];o(e)&&s&&l.push(Object(i.createElement)(s,{key:n,...e,visualElement:this}))}if(!this.projection&&r){this.projection=new r(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:i,dragConstraints:o,layoutScroll:l,layoutRoot:c}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(i)||o&&d(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:c})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<zo.length;e++){const n=zo[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if(I(s))t.addValue(o,s),un(i)&&i.add(o);else if(I(r))t.addValue(o,De(s,{owner:t})),un(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,De(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<Xo;t++){const e=Wo[t],n=this.props[e];(p(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=De(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=Mt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||I(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new je),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=cn(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter(e=>!t.hasValue(e)),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||me(c))?c=parseFloat(c):!sn(c)&&Ye.test(l)&&(c=Qe(r,l)),t.addValue(r,De(c,{owner:t})),void 0===n[r]&&(n[r]=c),null!==c&&t.setBaseTarget(r,c))}}(this,n,s);const t=Io(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class qo extends Yo{readValueFromInstance(t,e){if(B.has(e)){const t=Je(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=($(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return xo(t,e)}build(t,e,n,i){at(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Ct(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;I(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=""+t)}))}renderInstance(t,e,n,i){St(t,e,n,i)}}class Go extends Yo{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return B.has(e)?(null===(n=Je(e))||void 0===n?void 0:n.default)||0:(e=At.has(e)?e:Et(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return kt(t,e)}build(t,e,n,i){xt(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){Vt(t,e,0,i)}mount(t){this.isSVGTag=wt(t.tagName),super.mount(t)}}const Zo=(t,e)=>R(t)?new Go(e,{enableHardwareAcceleration:!1}):new qo(e,{enableHardwareAcceleration:!0});function Ko(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const _o={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!et.test(t))return t;t=parseFloat(t)}return`${Ko(t,e.target.x)}% ${Ko(t,e.target.y)}%`}},Jo={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(So,t=>(s.push(t),"_$css")));const r=Ye.parse(t);if(r.length>5)return i;const a=Ye.createTransformer(t),l="number"!=typeof r[0]?1:0,c=n.x.scale*e.x,u=n.y.scale*e.y;r[0+l]/=c,r[1+l]/=u;const h=bn(c,u,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace("_$css",()=>{const e=s[t];return t++,e})}return d}};class Qo extends o.a.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;var s;s=ts,Object.assign(D,s),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),P.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Pe.postRender(()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ts={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:Jo},es={measureLayout:function(t){const[e,n]=de(),s=Object(i.useContext)(S);return o.a.createElement(Qo,{...t,layoutGroup:s,switchLayoutGroup:Object(i.useContext)(V),isPresent:e,safeToRemove:n})}};const ns=["TopLeft","TopRight","BottomLeft","BottomRight"],is=ns.length,os=t=>"string"==typeof t?parseFloat(t):t,ss=t=>"number"==typeof t||et.test(t);function rs(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const as=cs(0,.5,In),ls=cs(.5,.95,Dn);function cs(t,e,n){return i=>i<t?0:i>e?1:n(Mn(t,e,i))}function us(t,e){t.min=e.min,t.max=e.max}function hs(t,e){us(t.x,e.x),us(t.y,e.y)}function ds(t,e,n,i,o){return t=lo(t-=e,1/n,i),void 0!==o&&(t=lo(t,1/o,i)),t}function ps(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){if(tt.test(e)){e=parseFloat(e);e=bn(r.min,r.max,e/100)-r.min}if("number"!=typeof e)return;let a=bn(s.min,s.max,i);t===s&&(a-=e),t.min=ds(t.min,e,n,a,o),t.max=ds(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const ms=["x","scaleX","originX"],fs=["y","scaleY","originY"];function gs(t,e,n,i){ps(t.x,e,ms,null==n?void 0:n.x,null==i?void 0:i.x),ps(t.y,e,fs,null==n?void 0:n.y,null==i?void 0:i.y)}function vs(t){return 0===t.translate&&1===t.scale}function ys(t){return vs(t.x)&&vs(t.y)}function xs(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function bs(t){return zi(t.x)/zi(t.y)}class ws{constructor(){this.members=[]}add(t){ke(this.members,t),t.scheduleRender()}remove(t){if(Me(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ts(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}const Ps=(t,e)=>t.depth-e.depth;class Es{constructor(){this.children=[],this.isDirty=!1}add(t){ke(this.children,t),this.isDirty=!0}remove(t){Me(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ps),this.isDirty=!1,this.children.forEach(t)}}const Ss=["","X","Y","Z"];let As=0;function Vs({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=As++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Ms),this.nodes.forEach(Ls),this.nodes.forEach(Bs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Es)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new je),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=hi(i,250),P.hasAnimatedSinceResize&&(P.hasAnimatedSinceResize=!1,this.nodes.forEach(Ds))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,c;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const u=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:Hs,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!xs(this.targetLayout,i)||n,m=!e&&n;if(this.options.layoutRoot||(null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...wi(u,"layout"),onPlay:h,onComplete:d};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||Ds(this),this.isLead()&&(null===(c=(l=this.options).onExitComplete)||void 0===c||c.call(l));this.targetLayout=i})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,Ee.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(Fs),this.animationId++)}getTransformTemplate(){var t;return null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:o,layout:s}=this.options;(void 0!==o||s)&&(this.prevTransformTemplateValue=null===(i=this.getTransformTemplate())||void 0===i?void 0:i(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Os);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(zs),this.potentialNodes.clear()),this.nodes.forEach(Rs),this.nodes.forEach(Cs),this.nodes.forEach(ks),this.clearAllSnapshots(),Se.update(),Se.preRender(),Se.render())}clearAllSnapshots(){this.nodes.forEach(js),this.sharedNodes.forEach(Is)}scheduleUpdateProjection(){Pe.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ys(this.projectionDelta),i=null===(t=this.getTransformTemplate())||void 0===t?void 0:t(this.latestValues,""),s=i!==this.prevTransformTemplateValue;e&&(n||so(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Ws((i=n).x),Ws(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(mo(e.x,n.offset.x),mo(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};hs(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){hs(e,t);const{scroll:n}=this.root;n&&(mo(e.x,-n.offset.x),mo(e.y,-n.offset.y))}mo(e.x,o.offset.x),mo(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};hs(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&yo(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),so(i.latestValues)&&yo(n,i.latestValues)}return so(this.latestValues)&&yo(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};hs(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!so(i.latestValues))continue;oo(i.latestValues)&&i.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};hs(o,i.measurePageBox()),gs(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return so(this.latestValues)&&gs(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zi(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),hs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,qi(o.x,s.x,r.x),qi(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):hs(this.target,this.layout.layoutBox),ho(this.target,this.targetDelta)):hs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zi(this.relativeTargetOrigin,this.target,t.target),hs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!oo(this.parent.latestValues)&&!ro(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;hs(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,i=!1){var o,s;const r=n.length;if(!r)return;let a,l;e.x=e.y=1;for(let c=0;c<r;c++)a=n[c],l=a.projectionDelta,"contents"!==(null===(s=null===(o=a.instance)||void 0===o?void 0:o.style)||void 0===s?void 0:s.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&yo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,ho(t,l)),i&&so(a.latestValues)&&yo(t,a.latestValues));e.x=po(e.x),e.y=po(e.y)}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.treeScale.x,u=this.treeScale.y,h=this.projectionTransform;Yi(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ts(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===c&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},c=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),u=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some($s));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;Us(a.x,t.x,i),Us(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Zi(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,Ns(o.x,d.x,p.x,m),Ns(o.y,d.y,p.y,m)),c&&(this.animationValues=r,function(t,e,n,i,o,s){o?(t.opacity=bn(0,void 0!==n.opacity?n.opacity:1,as(i)),t.opacityExit=bn(void 0!==e.opacity?e.opacity:1,0,ls(i))):s&&(t.opacity=bn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<is;o++){const s=`border${ns[o]}Radius`;let r=rs(e,s),a=rs(n,s);if(void 0===r&&void 0===a)continue;r||(r=0),a||(a=0);0===r||0===a||ss(r)===ss(a)?(t[s]=Math.max(bn(os(r),os(a),i),0),(tt.test(a)||tt.test(r))&&(t[s]+="%")):t[s]=a}(e.rotate||n.rotate)&&(t.rotate=bn(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Ee.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{P.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=I(t)?t:De(t);return i.start(Ti("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Xs(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=zi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=zi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}hs(e,n),yo(e,o),Yi(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new ws);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Ss.length;e++){const o="rotate"+Ss[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Ot(t.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ot(t.pointerEvents)||""),this.hasProjected&&!so(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const r=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=Ts(this.projectionDeltaWithTransform,this.treeScale,r),o&&(i.transform=o(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in D){if(void 0===r[t])continue;const{correct:e,applyTo:n}=D[t],o="none"===i.transform?r[t]:e(r[t],s);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=o}else i[t]=o}return this.options.layoutId&&(i.pointerEvents=s===this?Ot(t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(Os),this.root.sharedNodes.clear()}}}function Cs(t){t.updateLayout()}function ks(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?eo(t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=zi(n);n.min=e[t].min,n.max=n.min+i}):Xs(i,o.layoutBox,e)&&eo(t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=zi(e[t]);n.max=n.min+i});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Yi(r,e,o.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Yi(a,t.applyTransform(n,!0),o.measuredBox):Yi(a,e,o.layoutBox);const l=!ys(r);let c=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:s}=n;if(i&&s){const r={x:{min:0,max:0},y:{min:0,max:0}};Zi(r,o.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Zi(a,e,s.layoutBox),xs(r,a)||(c=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Ms(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function js(t){t.clearSnapshot()}function Os(t){t.clearMeasurements()}function Rs(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ds(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Ls(t){t.resolveTargetDelta()}function Bs(t){t.calcProjection()}function Fs(t){t.resetRotation()}function Is(t){t.removeLeadSnapshot()}function Us(t,e,n){t.translate=bn(e.translate,0,n),t.scale=bn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ns(t,e,n,i){t.min=bn(e.min,n.min,i),t.max=bn(e.max,n.max,i)}function $s(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Hs={duration:.45,ease:[.4,0,.1,1]};function zs(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function Ws(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Xs(t,e,n){return"position"===t||"preserve-aspect"===t&&!Wi(bs(e),bs(n),.2)}const Ys=Vs({attachResizeListener:(t,e)=>Ut(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qs={current:void 0},Gs=Vs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qs.current){const t=new Ys(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),qs.current=t}return qs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Zs={...Di,...he,...Po,...es},Ks=j((t,e)=>Ft(t,e,Zs,Zo,Gs));var _s=n(70),Js=n(16),Qs=n(3),tr=n(214),er=function(t){var e=t.id,n=t.children,i=t.style,o=t.className,s=t.key,r=t.initial,a=t.animate,l=t.exit,c=t.whileHover,u=t.whileTap,h=t.transition,d=t.whileInView,p=t.viewport,m=t.variants,f=t.animated,g=t.destroyWhenAnimated,v=t.setProps;h&&h.repeat&&"infinity"===h.repeat&&(h.repeat=1/0);var y=Object(Qs.d)();return g&&f?null:React.createElement(Ks.div,{id:e,className:Object(Js.isString)(o)?o:o?Object(_s.a)(o):void 0,style:i,key:s,initial:r,animate:a,exit:l,whileHover:c,whileTap:u,transition:h,whileInView:d,viewport:p,variants:m,onAnimationComplete:function(){return v({animated:!0})},"data-dash-is-loading":y},n)};e.default=er;er.defaultProps=tr.b,er.propTypes=tr.c},582:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warning=function(){},e.invariant=function(){}},783:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=(i=n(656))&&"object"==typeof i&&"default"in i?i.default:i,s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=o((function(t){return s.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=r}}]);
1
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[23],{553:function(t,e,n){"use strict";n.r(e);var i=n(1),o=n.n(i);const s=Object(i.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r=Object(i.createContext)({});const a=Object(i.createContext)(null),l="undefined"!=typeof document,c=l?i.useLayoutEffect:i.useEffect,u=Object(i.createContext)({strict:!1});function h(t,e,n,o){const l=Object(i.useContext)(r).visualElement,h=Object(i.useContext)(u),d=Object(i.useContext)(a),p=Object(i.useContext)(s).reducedMotion,m=Object(i.useRef)();o=o||h.renderer,!m.current&&o&&(m.current=o(t,{visualState:e,parent:l,props:n,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));const f=m.current;c(()=>{f&&f.render()});return(window.HandoffAppearAnimations?c:i.useEffect)(()=>{f&&f.animationState&&f.animationState.animateChanges()}),f}function d(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function p(t){return"string"==typeof t||Array.isArray(t)}function m(t){return"object"==typeof t&&"function"==typeof t.start}const f=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function g(t){return m(t.animate)||f.some(e=>p(t[e]))}function v(t){return Boolean(g(t)||t.variants)}function y(t){const{initial:e,animate:n}=function(t,e){if(g(t)){const{initial:e,animate:n}=t;return{initial:!1===e||p(e)?e:void 0,animate:p(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,Object(i.useContext)(r));return Object(i.useMemo)(()=>({initial:e,animate:n}),[x(e),x(n)])}function x(t){return Array.isArray(t)?t.join(" "):t}const b=t=>({isEnabled:e=>t.some(t=>!!e[t])}),w={measureLayout:b(["layout","layoutId","drag"]),animation:b(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:b(["exit"]),drag:b(["drag","dragControls"]),focus:b(["whileFocus"]),hover:b(["whileHover","onHoverStart","onHoverEnd"]),tap:b(["whileTap","onTap","onTapStart","onTapCancel"]),pan:b(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:b(["whileInView","onViewportEnter","onViewportLeave"])};function T(t){const e=Object(i.useRef)(null);return null===e.current&&(e.current=t()),e.current}const P={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let E=1;const S=Object(i.createContext)({});class A extends o.a.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const V=Object(i.createContext)({}),C=Symbol.for("motionComponentSymbol");function k({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:o,useVisualState:a,Component:c}){t&&function(t){for(const e in t)"projectionNodeConstructor"===e?w.projectionNodeConstructor=t[e]:w[e].Component=t[e]}(t);const p=Object(i.forwardRef)((function(p,m){const f={...Object(i.useContext)(s),...p,layoutId:M(p)},{isStatic:g}=f;let v=null;const x=y(p),b=g?void 0:T(()=>{if(P.hasEverUpdated)return E++}),S=a(p,g);if(!g&&l){x.visualElement=h(c,S,f,e);const o=Object(i.useContext)(u).strict,s=Object(i.useContext)(V);x.visualElement&&(v=x.visualElement.loadFeatures(f,o,t,b,n||w.projectionNodeConstructor,s))}return i.createElement(A,{visualElement:x.visualElement,props:f},v,i.createElement(r.Provider,{value:x},o(c,p,b,function(t,e,n){return Object(i.useCallback)(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):d(n)&&(n.current=i))},[e])}(S,x.visualElement,m),S,g,x.visualElement)))}));return p[C]=c,p}function M({layoutId:t}){const e=Object(i.useContext)(S).id;return e&&void 0!==t?e+"-"+t:t}function j(t){function e(e,n={}){return k(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const O=["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 R(t){return"string"==typeof t&&!t.includes("-")&&!!(O.indexOf(t)>-1||/[A-Z]/.test(t))}const D={};const L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(L);function F(t,{layout:e,layoutId:n}){return B.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!D[t]||"opacity"===t)}const I=t=>!!(null==t?void 0:t.getVelocity),U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},N=(t,e)=>L.indexOf(t)-L.indexOf(e);function $(t){return t.startsWith("--")}const H=(t,e)=>e&&"number"==typeof t?e.transform(t):t,z=(t,e,n)=>Math.min(Math.max(n,t),e),W={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},X={...W,transform:t=>z(0,1,t)},Y={...W,default:1},q=t=>Math.round(1e5*t)/1e5,G=/(-)?([\d]*\.?[\d])+/g,Z=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,K=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _(t){return"string"==typeof t}const J=t=>({test:e=>_(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),it=J("vw"),ot={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)},st={...W,transform:Math.round},rt={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:X,originX:ot,originY:ot,originZ:et,zIndex:st,fillOpacity:X,strokeOpacity:X,numOctaves:st};function at(t,e,n,i){const{style:o,vars:s,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let c=!1,u=!1,h=!0;for(const t in e){const n=e[t];if($(t)){s[t]=n;continue}const i=rt[t],d=H(n,i);if(B.has(t)){if(c=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,l[t]=d):o[t]=d}if(e.transform||(c||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(N);for(const n of e)r+=`${U[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}const lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ct(t,e,n){for(const i in e)I(e[i])||F(i,n)||(t[i]=e[i])}function ut(t,e,n){const o={};return ct(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},e,n){return Object(i.useMemo)(()=>{const i={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return at(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(o):o}function ht(t,e,n){const i={},o=ut(t,e,n);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),i.style=o,i}const dt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","viewport"]);function pt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||dt.has(t)}let mt=t=>!pt(t);try{(ft=n(790).default)&&(mt=t=>t.startsWith("on")?!pt(t):ft(t))}catch(t){}var ft;function gt(t,e,n){return"string"==typeof t?t:et.transform(e+n*t)}const vt={offset:"stroke-dashoffset",array:"stroke-dasharray"},yt={offset:"strokeDashoffset",array:"strokeDasharray"};function xt(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},c,u,h){if(at(t,l,c,h),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${gt(e,t.x,t.width)} ${gt(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?vt:yt;t[s.offset]=et.transform(-i);const r=et.transform(e),a=et.transform(n);t[s.array]=`${r} ${a}`}(d,s,r,a,!1)}const bt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),wt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Tt(t,e,n,o){const s=Object(i.useMemo)(()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return xt(n,e,{enableHardwareAcceleration:!1},wt(o),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};ct(e,t.style,t),s.style={...e,...s.style}}return s}function Pt(t=!1){return(e,n,o,s,{latestValues:r},a)=>{const l=(R(e)?Tt:ht)(n,r,a,e),c={...function(t,e,n){const i={};for(const o in t)"values"===o&&"object"==typeof t.values||(mt(o)||!0===n&&pt(o)||!e&&!pt(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}(n,"string"==typeof e,t),...l,ref:s},{children:u}=n,h=Object(i.useMemo)(()=>I(u)?u.get():u,[u]);return o&&(c["data-projection-id"]=o),Object(i.createElement)(e,{...c,children:h})}}const Et=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function St(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}const At=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 Vt(t,e,n,i){St(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(At.has(n)?n:Et(n),e.attrs[n])}function Ct(t,e){const{style:n}=t,i={};for(const o in n)(I(n[o])||e.style&&I(e.style[o])||F(o,t))&&(i[o]=n[o]);return i}function kt(t,e){const n=Ct(t,e);for(const i in t)if(I(t[i])||I(e[i])){n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]}return n}function Mt(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}const jt=t=>Array.isArray(t);function Ot(t){const e=I(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Rt=t=>(e,n)=>{const o=Object(i.useContext)(r),s=Object(i.useContext)(a),l=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,o,s){const r={latestValues:Dt(i,o,s,t),renderState:e()};return n&&(r.mount=t=>n(i,t,r)),r}(t,e,o,s);return n?l():T(l)};function Dt(t,e,n,i){const o={},s=i(t,{});for(const t in s)o[t]=Ot(s[t]);let{initial:r,animate:a}=t;const l=g(t),c=v(t);e&&c&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===r;const h=u?a:r;if(h&&"boolean"!=typeof h&&!m(h)){(Array.isArray(h)?h:[h]).forEach(e=>{const n=Mt(t,e);if(!n)return;const{transitionEnd:i,transition:s,...r}=n;for(const t in r){let e=r[t];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in i)o[t]=i[t]})}return o}const Lt={useVisualState:Rt({scrapeMotionValuesFromProps:kt,createRenderState:bt,onMount:(t,e,{renderState:n,latestValues:i})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}xt(n,i,{enableHardwareAcceleration:!1},wt(e.tagName),t.transformTemplate),Vt(e,n)}})},Bt={useVisualState:Rt({scrapeMotionValuesFromProps:Ct,createRenderState:lt})};function Ft(t,{forwardMotionProps:e=!1},n,i,o){return{...R(t)?Lt:Bt,preloadedFeatures:n,useRender:Pt(e),createVisualElement:i,projectionNodeConstructor:o,Component:t}}var It;function Ut(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Nt(t,e,n,o){Object(i.useEffect)(()=>{const i=t.current;if(n&&i)return Ut(i,e,n,o)},[t,e,n,o])}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(It||(It={}));const $t=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Ht(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const zt=t=>e=>$t(e)&&t(e,Ht(e));function Wt(t,e,n,i){return Ut(t,e,zt(n),i)}function Xt(t,e,n,i){return Nt(t,e,n&&zt(n),i)}function Yt(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const qt=Yt("dragHorizontal"),Gt=Yt("dragVertical");function Zt(t){let e=!1;if("y"===t)e=Gt();else if("x"===t)e=qt();else{const t=qt(),n=Gt();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Kt(){const t=Zt(!0);return!t||(t(),!1)}function _t(t,e,n,i){return(o,s)=>{"touch"===o.type||Kt()||(n&&t.animationState&&t.animationState.setActive(It.Hover,e),i&&i(o,s))}}const Jt=(t,e)=>!!e&&(t===e||Jt(t,e.parentElement));function Qt(t){return Object(i.useEffect)(()=>()=>t(),[])}const te=(t,e)=>n=>e(t(n)),ee=(...t)=>t.reduce(te);const ne=new WeakMap,ie=new WeakMap,oe=t=>{const e=ne.get(t.target);e&&e(t)},se=t=>{t.forEach(oe)};function re(t,e,n){const i=function({root:t,...e}){const n=t||document;ie.has(n)||ie.set(n,{});const i=ie.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(se,{root:t,...e})),i[o]}(e);return ne.set(t,n),i.observe(t),()=>{ne.delete(t),i.unobserve(t)}}const ae={some:0,all:1};function le(t,e,n,{root:o,margin:s,amount:r="some",once:a}){Object(i.useEffect)(()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:ae[r]};return re(n.current,i,t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(It.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)})},[t,o,s,r])}function ce(t,e,n,{fallback:o=!0}){Object(i.useEffect)(()=>{t&&o&&requestAnimationFrame(()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(It.InView,!0)})},[t])}const ue=t=>e=>(t(e),null),he={inView:ue((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=Object(i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ce:le)(a,r.current,t,s)})),tap:ue((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s,...r}){const a=t||e||n||o,l=Object(i.useRef)(!1),c=Object(i.useRef)(null),u={passive:!(e||t||n||r.onPointerDown)};function h(){c.current&&c.current(),c.current=null}function d(){h(),l.current=!1;return s.getProps().whileTap&&s.animationState&&s.animationState.setActive(It.Tap,!1),!Kt()}function p(t,e){var n,i,o,r;d()&&(Jt(s.current,t.target)?null===(r=(o=s.getProps()).onTap)||void 0===r||r.call(o,t,e):null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}function m(t,e){var n,i;d()&&(null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}const f=Object(i.useCallback)((t,e)=>{var n;if(h(),l.current)return;l.current=!0,c.current=ee(Wt(window,"pointerup",p,u),Wt(window,"pointercancel",m,u));const i=s.getProps();i.whileTap&&s.animationState&&s.animationState.setActive(It.Tap,!0),null===(n=i.onTapStart)||void 0===n||n.call(i,t,e)},[Boolean(e),s]);Xt(s,"pointerdown",a?f:void 0,u),Qt(h)})),focus:ue((function({whileFocus:t,visualElement:e}){const{animationState:n}=e,o=Object(i.useCallback)(()=>{n&&n.setActive(It.Focus,!0)},[n]),s=Object(i.useCallback)(()=>{n&&n.setActive(It.Focus,!1)},[n]);Nt(e,"focus",t?o:void 0),Nt(e,"blur",t?s:void 0)})),hover:ue((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){Xt(o,"pointerenter",Object(i.useMemo)(()=>t||n?_t(o,!0,Boolean(n),t):void 0,[t,Boolean(n),o]),{passive:!t}),Xt(o,"pointerleave",Object(i.useMemo)(()=>e||n?_t(o,!1,Boolean(n),e):void 0,[t,Boolean(n),o]),{passive:!e})}))};function de(){const t=Object(i.useContext)(a);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,s=Object(i.useId)();Object(i.useEffect)(()=>o(s),[]);return!e&&n?[!1,()=>n&&n(s)]:[!0]}function pe(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 me=t=>/^0[^.\s]+$/.test(t),fe={delta:0,timestamp:0},ge="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ve="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(ge()),1/60*1e3);let ye=!0,xe=!1,be=!1;const we=["read","update","preRender","render","postRender"],Te=we.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,c=l?e:n;return s&&r.add(t),-1===c.indexOf(t)&&(c.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}(()=>xe=!0),t),{}),Pe=we.reduce((t,e)=>{const n=Te[e];return t[e]=(t,e=!1,i=!1)=>(xe||Ce(),n.schedule(t,e,i)),t},{}),Ee=we.reduce((t,e)=>(t[e]=Te[e].cancel,t),{}),Se=we.reduce((t,e)=>(t[e]=()=>Te[e].process(fe),t),{}),Ae=t=>Te[t].process(fe),Ve=t=>{xe=!1,fe.delta=ye?1/60*1e3:Math.max(Math.min(t-fe.timestamp,40),1),fe.timestamp=t,be=!0,we.forEach(Ae),be=!1,xe&&(ye=!1,ve(Ve))},Ce=()=>{xe=!0,ye=!0,be||ve(Ve)};function ke(t,e){-1===t.indexOf(e)&&t.push(e)}function Me(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class je{constructor(){this.subscriptions=[]}add(t){return ke(this.subscriptions,t),()=>Me(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Oe(t,e){return e?t*(1e3/e):0}class Re{constructor(t,e={}){var n;this.version="8.5.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:i}=fe;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,Pe.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Pe.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new je);const n=this.events[t].add(e);return"change"===t?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Oe(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function De(t,e){return new Re(t,e)}const Le=(t,e)=>n=>Boolean(_(n)&&K.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Be=(t,e,n)=>i=>{if(!_(i))return i;const[o,s,r,a]=i.match(G);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},Fe={...W,transform:t=>Math.round((t=>z(0,255,t))(t))},Ie={test:Le("rgb","red"),parse:Be("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Fe.transform(t)+", "+Fe.transform(e)+", "+Fe.transform(n)+", "+q(X.transform(i))+")"};const Ue={test:Le("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:Ie.transform},Ne={test:Le("hsl","hue"),parse:Be("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+tt.transform(q(e))+", "+tt.transform(q(n))+", "+q(X.transform(i))+")"},$e={test:t=>Ie.test(t)||Ue.test(t)||Ne.test(t),parse:t=>Ie.test(t)?Ie.parse(t):Ne.test(t)?Ne.parse(t):Ue.parse(t),transform:t=>_(t)?t:t.hasOwnProperty("red")?Ie.transform(t):Ne.transform(t)};function He(t){"number"==typeof t&&(t=""+t);const e=[];let n=0,i=0;const o=t.match(Z);o&&(n=o.length,t=t.replace(Z,"${c}"),e.push(...o.map($e.parse)));const s=t.match(G);return s&&(i=s.length,t=t.replace(G,"${n}"),e.push(...s.map(W.parse))),{values:e,numColors:n,numNumbers:i,tokenised:t}}function ze(t){return He(t).values}function We(t){const{values:e,numColors:n,tokenised:i}=He(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=e.replace(i<n?"${c}":"${n}",i<n?$e.transform(t[i]):q(t[i]));return e}}const Xe=t=>"number"==typeof t?0:t;const Ye={test:function(t){var e,n;return isNaN(t)&&_(t)&&((null===(e=t.match(G))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Z))||void 0===n?void 0:n.length)||0)>0},parse:ze,createTransformer:We,getAnimatableNone:function(t){const e=ze(t);return We(t)(e.map(Xe))}},qe=new Set(["brightness","contrast","saturate","opacity"]);function Ge(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(G)||[];if(!i)return t;const o=n.replace(i,"");let s=qe.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const Ze=/([a-z-]*)\(.*?\)/g,Ke={...Ye,getAnimatableNone:t=>{const e=t.match(Ze);return e?e.map(Ge).join(" "):t}},_e={...rt,color:$e,backgroundColor:$e,outlineColor:$e,fill:$e,stroke:$e,borderColor:$e,borderTopColor:$e,borderRightColor:$e,borderBottomColor:$e,borderLeftColor:$e,filter:Ke,WebkitFilter:Ke},Je=t=>_e[t];function Qe(t,e){var n;let i=Je(t);return i!==Ke&&(i=Ye),null===(n=i.getAnimatableNone)||void 0===n?void 0:n.call(i,e)}const tn=t=>e=>e.test(t),en=[W,et,tt,Q,it,nt,{test:t=>"auto"===t,parse:t=>t}],nn=t=>en.find(tn(t)),on=[...en,$e,Ye],sn=t=>on.find(tn(t));function rn(t,e,n){const i=t.getProps();return Mt(i,e,void 0!==n?n:i.custom,function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function an(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,De(n))}function ln(t,e){const n=rn(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){an(t,e,(r=s[e],jt(r)?r[r.length-1]||0:r))}var r}function cn(t,e){if(!e)return;return(e[t]||e.default||e).from}function un(t){return Boolean(I(t)&&t.add)}const hn="data-"+Et("framerAppearId");var dn=n(584);const pn=t=>1e3*t,mn=!1,fn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gn=t=>e=>1-t(1-e),vn=t=>t*t,yn=gn(vn),xn=fn(vn),bn=(t,e,n)=>-n*t+n*e+t;function wn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Tn=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Pn=[Ue,Ie,Ne];function En(t){const e=(n=t,Pn.find(t=>t.test(n)));var n;Object(dn.invariant)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===Ne&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=wn(a,i,t+1/3),s=wn(a,i,t),r=wn(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const Sn=(t,e)=>{const n=En(t),i=En(e),o={...n};return t=>(o.red=Tn(n.red,i.red,t),o.green=Tn(n.green,i.green,t),o.blue=Tn(n.blue,i.blue,t),o.alpha=bn(n.alpha,i.alpha,t),Ie.transform(o))};function An(t,e){return"number"==typeof t?n=>bn(t,e,n):$e.test(t)?Sn(t,e):kn(t,e)}const Vn=(t,e)=>{const n=[...t],i=n.length,o=t.map((t,n)=>An(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},Cn=(t,e)=>{const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=An(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}},kn=(t,e)=>{const n=Ye.createTransformer(e),i=He(t),o=He(e);return i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?ee(Vn(i.values,o.values),n):(Object(dn.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>""+(n>0?e:t))},Mn=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i},jn=(t,e)=>n=>bn(t,e,n);function On(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?jn:"string"==typeof s?$e.test(s)?Sn:kn:Array.isArray(s)?Vn:"object"==typeof s?Cn:jn);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=ee(t,s)}i.push(s)}return i}function Rn(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const s=t.length;Object(dn.invariant)(s===e.length,"Both input and output ranges must be the same length"),Object(dn.invariant)(!i||!Array.isArray(i)||i.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=On(e,i,o),a=r.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=Mn(t[n],t[n+1],e);return r[n](i)};return n?e=>l(z(t[0],t[s-1],e)):l}const Dn=t=>t,Ln=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Bn(t,e,n,i){if(t===e&&n===i)return Dn;const o=e=>function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=Ln(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:Ln(o(t),e,i)}const Fn=t=>1-Math.sin(Math.acos(t)),In=gn(Fn),Un=fn(In),Nn=Bn(.33,1.53,.69,.99),$n=gn(Nn),Hn=fn($n),zn={linear:Dn,easeIn:vn,easeInOut:xn,easeOut:yn,circIn:Fn,circInOut:Un,circOut:In,backIn:$n,backInOut:Hn,backOut:Nn,anticipate:t=>(t*=2)<1?.5*$n(t):.5*(2-Math.pow(2,-10*(t-1)))},Wn=t=>{if(Array.isArray(t)){Object(dn.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,o]=t;return Bn(e,n,i,o)}return"string"==typeof t?(Object(dn.invariant)(void 0!==zn[t],`Invalid easing type '${t}'`),zn[t]):t};function Xn({keyframes:t,ease:e=xn,times:n,duration:i=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(Wn):Wn(e),s={done:!1,value:t[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t),i);function a(){return Rn(r,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map(()=>n||xn).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=i,s),flipTarget:()=>{t.reverse(),l=a()}}}function Yn({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,s;Object(dn.warning)(t<=1e4,"Spring duration must be 10 seconds or less");let r=1-e;r=z(.05,1,r),t=z(.01,10,t/1e3),r<1?(o=e=>{const i=e*r,o=i*t;return.001-(i-n)/qn(e,r)*Math.exp(-o)},s=e=>{const i=e*r*t,s=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=qn(Math.pow(e,2),r);return(.001-o(e)>0?-1:1)*((s-a)*l)/c}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(o,s,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}function qn(t,e){return t*Math.sqrt(1-e*e)}const Gn=["duration","bounce"],Zn=["stiffness","damping","mass"];function Kn(t,e){return e.some(e=>void 0!==t[e])}function _n({keyframes:t,restDelta:e,restSpeed:n,...i}){let o=t[0],s=t[t.length-1];const r={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Kn(t,Zn)&&Kn(t,Gn)){const n=Yn(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(i);let p=Jn,m=u?-u/1e3:0;const f=l/(2*Math.sqrt(a*c));function g(){const t=s-o,i=Math.sqrt(a/c)/1e3,r=Math.abs(t)<5;if(n||(n=r?.01:2),e||(e=r?.005:.5),f<1){const e=qn(i,f);p=n=>{const o=Math.exp(-f*i*n);return s-o*((m+f*i*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===f)p=e=>s-Math.exp(-i*e)*(t+(m+i*t)*e);else{const e=i*Math.sqrt(f*f-1);p=n=>{const o=Math.exp(-f*i*n),r=Math.min(e*n,300);return s-o*((m+f*i*t)*Math.sinh(r)+e*t*Math.cosh(r))/e}}}return g(),{next:t=>{const i=p(t);if(d)r.done=t>=h;else{let o=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);o=Oe(i-p(e),t-e)}else o=0;const a=Math.abs(o)<=n,l=Math.abs(s-i)<=e;r.done=a&&l}return r.value=r.done?s:i,r},flipTarget:()=>{m=-m,[o,s]=[s,o],g()}}}_n.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const Jn=t=>0;const Qn={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r=t[0],a={done:!1,value:r};let l=n*e;const c=r+l,u=void 0===s?c:s(c);return u!==c&&(l=u-r),{next:t=>{const e=-l*Math.exp(-t/i);return a.done=!(e>o||e<-o),a.value=a.done?u:u+e,a},flipTarget:()=>{}}},keyframes:Xn,tween:Xn,spring:_n};function ti(t,e,n=0){return t-e-n}const ei=t=>{const e=({delta:e})=>t(e);return{start:()=>Pe.update(e,!0),stop:()=>Ee.update(e)}};function ni({duration:t,driver:e=ei,elapsed:n=0,repeat:i=0,repeatType:o="loop",repeatDelay:s=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){var f,g;const v=n;let y,x,b=0,w=t,T=!1,P=!0;const E=Qn[r.length>2?"keyframes":p]||Xn,S=r[0],A=r[r.length-1];let V={done:!1,value:S};(null===(g=(f=E).needsInterpolation)||void 0===g?void 0:g.call(f,S,A))&&(x=Rn([0,100],[S,A],{clamp:!1}),r=[0,100]);const C=E({...m,duration:t,keyframes:r});function k(){b++,"reverse"===o?(P=b%2==0,n=function(t,e=0,n=0,i=!0){return i?ti(e+-t,e,n):e-(t-e)+n}(n,w,s,P)):(n=ti(n,w,s),"mirror"===o&&C.flipTarget()),T=!1,h&&h()}function M(t){P||(t=-t),n+=t,T||(V=C.next(Math.max(0,n)),x&&(V.value=x(V.value)),T=P?V.done:n<=0),d&&d(V.value),T&&(0===b&&(w=void 0!==w?w:n),b<i?function(t,e,n,i){return i?t>=e+n:t<=-n}(n,w,s,P)&&k():(y&&y.stop(),u&&u()))}return a&&(l&&l(),y=e(M),y.start()),{stop:()=>{c&&c(),y&&y.stop()},set currentTime(t){n=v,M(t)},sample:e=>{n=v;const i=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(M(0);o<=e;){const t=e-o;M(Math.min(t,i)),o+=i}return V}}}const ii=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,oi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ii([0,.65,.55,1]),circOut:ii([.55,0,1,.45]),backIn:ii([.31,.01,.66,-.59]),backOut:ii([.33,1.53,.69,.99])};function si(t){if(t)return Array.isArray(t)?ii(t):oi[t]}const ri={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},ai={},li={};for(const t in ri)li[t]=()=>(void 0===ai[t]&&(ai[t]=ri[t]()),ai[t]);const ci=new Set(["opacity"]);function ui(t,e,{onUpdate:n,onComplete:i,...o}){if(!(li.waapi()&&ci.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:r=300,elapsed:a=0,ease:l}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&oi[c])){if(o.repeat===1/0)return;const t=ni({...o,elapsed:0});let e={done:!1,value:s[0]};const n=[];let i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;s=n,r=i-10,l="linear"}var c;const u=function(t,e,n,{delay:i=0,duration:o,repeat:s=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:o,easing:si(a),fill:"both",iterations:s+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-a,duration:r,ease:l});return u.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),Pe.update(()=>u.cancel()),i&&i()},{get currentTime(){return u.currentTime||0},set currentTime(t){u.currentTime=t},stop:()=>{const{currentTime:e}=u;if(e){const n=ni({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Pe.update(()=>u.cancel())}}}function hi(t,e){const n=performance.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(Ee.read(i),t(s-e))};return Pe.read(i,!0),()=>Ee.read(i)}const di=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),pi=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),mi=()=>({type:"keyframes",ease:"linear",duration:.3}),fi={type:"keyframes",duration:.8},gi={x:di,y:di,z:di,rotate:di,rotateX:di,rotateY:di,rotateZ:di,scaleX:pi,scaleY:pi,scale:pi,opacity:mi,backgroundColor:mi,color:mi,default:pi},vi=(t,{keyframes:e})=>{if(e.length>2)return fi;return(gi[t]||gi.default)(e[1])},yi=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Ye.test(e)||e.startsWith("url(")));function xi(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bi(t){return"number"==typeof t?0:Qe("",t)}function wi(t,e){return t[e]||t.default||t}const Ti=(t,e,n,i={})=>o=>{const s=wi(i,t)||{},r=s.delay||i.delay||0;let{elapsed:a=0}=i;a-=pn(r);const l=function(t,e,n,i){const o=yi(e,n);let s=void 0!==i.from?i.from:t.get();return"none"===s&&o&&"string"==typeof n?s=Qe(e,n):xi(s)&&"string"==typeof n?s=bi(n):!Array.isArray(n)&&xi(n)&&"string"==typeof s&&(n=bi(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,s),c=l[0],u=l[l.length-1],h=yi(t,c),d=yi(t,u);Object(dn.warning)(h===d,`You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),...s,elapsed:a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{o(),s.onComplete&&s.onComplete()}};if(!h||!d||mn||!1===s.type)return function({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){const o=()=>{n&&n(t[t.length-1]),i&&i()};return e?{stop:hi(o,-e)}:o()}(p);if("inertia"===s.type)return function({keyframes:t,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function g(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=ni({keyframes:[0,1],velocity:0,...t,driver:u,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(g(m))x({velocity:e,keyframes:[m,v(m)]});else{let t=o*e+m;void 0!==c&&(t=c(t));const i=v(t),r=i===n?-1:1;let a,u;const h=t=>{a=u,u=t,e=Oe(t-a,fe.delta),(1===r&&t>i||-1===r&&t<i)&&x({keyframes:[t,i],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:c,onUpdate:g(t)?h:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(p);(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(p={...p,...vi(t,p)}),p.duration&&(p.duration=pn(p.duration)),p.repeatDelay&&(p.repeatDelay=pn(p.repeatDelay));const m=e.owner,f=m&&m.current;if(m&&f instanceof HTMLElement&&!(null==m?void 0:m.getProps().onUpdate)){const n=ui(e,t,p);if(n)return n}return ni(p)};function Pi(t,e,n={}){var i;const o=rn(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>Ei(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(Si).forEach((t,i)=>{t.notify("AnimationStart",e),r.push(Pi(t,e,{...s,delay:n+l(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function Ei(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const u=[],h=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||h&&Ai(h,e))continue;const s={delay:n,elapsed:0,...r};if(window.HandoffAppearAnimations&&!i.hasAnimated){const n=t.getProps()[hn];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,i,Pe))}let a=i.start(Ti(e,i,o,t.shouldReduceMotion&&B.has(e)?{type:!1}:s));un(c)&&(c.add(e),a=a.then(()=>c.remove(e))),u.push(a)}return Promise.all(u).then(()=>{a&&ln(t,a)})}function Si(t,e){return t.sortNodePosition(e)}function Ai({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}const Vi=[It.Animate,It.InView,It.Focus,It.Hover,It.Tap,It.Drag,It.Exit],Ci=[...Vi].reverse(),ki=Vi.length;function Mi(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map(e=>Pi(t,e,n));i=Promise.all(o)}else if("string"==typeof e)i=Pi(t,e,n);else{const o="function"==typeof e?rn(t,e,n.custom):e;i=Ei(t,o,n)}return i.then(()=>t.notify("AnimationComplete",e))}(t,e,n)))}function ji(t){let e=Mi(t);const n={[It.Animate]:Ri(!0),[It.InView]:Ri(),[It.Hover]:Ri(),[It.Tap]:Ri(),[It.Drag]:Ri(),[It.Focus]:Ri(),[It.Exit]:Ri()};let i=!0;const o=(e,n)=>{const i=rn(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function s(s,r){const a=t.getProps(),l=t.getVariantContext(!0)||{},c=[],u=new Set;let h={},d=1/0;for(let e=0;e<ki;e++){const f=Ci[e],g=n[f],v=void 0!==a[f]?a[f]:l[f],y=p(v),x=f===r?g.isActive:null;!1===x&&(d=e);let b=v===l[f]&&v!==a[f]&&y;if(b&&i&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...h},!g.isActive&&null===x||!v&&!g.prevProp||m(v)||"boolean"==typeof v)continue;const w=Oi(g.prevProp,v);let T=w||f===r&&g.isActive&&!b&&y||e>d&&y;const P=Array.isArray(v)?v:[v];let E=P.reduce(o,{});!1===x&&(E={});const{prevResolvedValues:S={}}=g,A={...S,...E},V=t=>{T=!0,u.delete(t),g.needsAnimating[t]=!0};for(const t in A){const e=E[t],n=S[t];h.hasOwnProperty(t)||(e!==n?jt(e)&&jt(n)?!pe(e,n)||w?V(t):g.protectedKeys[t]=!0:void 0!==e?V(t):u.add(t):void 0!==e&&u.has(t)?V(t):g.protectedKeys[t]=!0)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),i&&t.blockInitialAnimation&&(T=!1),T&&!b&&c.push(...P.map(t=>({animation:t,options:{type:f,...s}})))}if(u.size){const e={};u.forEach(n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)}),c.push({animation:e})}let f=Boolean(c.length);return i&&!1===a.initial&&!t.manuallyAnimateOnMount&&(f=!1),i=!1,f?e(c):Promise.resolve()}return{animateChanges:s,setActive:function(e,i,o){var r;if(n[e].isActive===i)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;const a=s(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Oi(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!pe(e,t)}function Ri(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const Di={animation:ue(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ji(t)),m(e)&&Object(i.useEffect)(()=>e.subscribe(t),[e])}),exit:ue(t=>{const{custom:e,visualElement:n}=t,[o,s]=de(),r=Object(i.useContext)(a);Object(i.useEffect)(()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(It.Exit,!o,{custom:r&&r.custom||e});t&&!o&&t.then(s)},[o])})},Li=(t,e)=>Math.abs(t-e);class Bi{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Ui(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Li(t.x,e.x),i=Li(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=fe;this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Fi(e,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:i}=this.handlers,o=Ui("pointercancel"===t.type?this.lastMoveEventInfo:Fi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!$t(t))return;this.handlers=e,this.transformPagePoint=n;const i=Fi(Ht(t),this.transformPagePoint),{point:o}=i,{timestamp:s}=fe;this.history=[{...o,timestamp:s}];const{onSessionStart:r}=e;r&&r(t,Ui(i,this.history)),this.removeListeners=ee(Wt(window,"pointermove",this.handlePointerMove),Wt(window,"pointerup",this.handlePointerUp),Wt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ee.update(this.updatePoint)}}function Fi(t,e){return e?{point:e(t.point)}:t}function Ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ui({point:t},e){return{point:t,delta:Ii(t,$i(e)),offset:Ii(t,Ni(e)),velocity:Hi(e,.1)}}function Ni(t){return t[0]}function $i(t){return t[t.length-1]}function Hi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=$i(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>pn(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function zi(t){return t.max-t.min}function Wi(t,e=0,n=.01){return Math.abs(t-e)<=n}function Xi(t,e,n,i=.5){t.origin=i,t.originPoint=bn(e.min,e.max,t.origin),t.scale=zi(n)/zi(e),(Wi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=bn(n.min,n.max,t.origin)-t.originPoint,(Wi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Yi(t,e,n,i){Xi(t.x,e.x,n.x,null==i?void 0:i.originX),Xi(t.y,e.y,n.y,null==i?void 0:i.originY)}function qi(t,e,n){t.min=n.min+e.min,t.max=t.min+zi(e)}function Gi(t,e,n){t.min=e.min-n.min,t.max=t.min+zi(e)}function Zi(t,e,n){Gi(t.x,e.x,n.x),Gi(t.y,e.y,n.y)}function Ki(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function _i(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}}const Ji=.35;function Qi(t,e,n){return{min:to(t,e),max:to(t,n)}}function to(t,e){return"number"==typeof t?t:t[e]||0}function eo(t){return[t("x"),t("y")]}function no({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function io(t){return void 0===t||1===t}function oo({scale:t,scaleX:e,scaleY:n}){return!io(t)||!io(e)||!io(n)}function so(t){return oo(t)||ro(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ro(t){return ao(t.x)||ao(t.y)}function ao(t){return t&&"0%"!==t}function lo(t,e,n){return n+e*(t-n)}function co(t,e,n,i,o){return void 0!==o&&(t=lo(t,o,i)),lo(t,n,i)+e}function uo(t,e=0,n=1,i,o){t.min=co(t.min,e,n,i,o),t.max=co(t.max,e,n,i,o)}function ho(t,{x:e,y:n}){uo(t.x,e.translate,e.scale,e.originPoint),uo(t.y,n.translate,n.scale,n.originPoint)}function po(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function mo(t,e){t.min=t.min+e,t.max=t.max+e}function fo(t,e,[n,i,o]){const s=void 0!==e[o]?e[o]:.5,r=bn(t.min,t.max,s);uo(t,e[n],e[i],r,e.scale)}const go=["x","scaleX","originX"],vo=["y","scaleY","originY"];function yo(t,e){fo(t.x,e,go),fo(t.y,e,vo)}function xo(t,e){return no(function(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}}(t.getBoundingClientRect(),e))}const bo=new WeakMap;class wo{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new Bi(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(Ht(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zt(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eo(t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(tt.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=zi(o)*(parseFloat(i)/100)}}this.originPoint[t]=i}),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(It.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null==o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(It.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!To(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?bn(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?bn(n,t,i.max):Math.min(t,n)),t}(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:Ki(t.x,n,o),y:Ki(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=Ji){return!1===t?t=0:!0===t&&(t=Ji),{x:Qi(t,"left","right"),y:Qi(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&eo(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!d(t))return!1;const n=t.current;Object(dn.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=function(t,e,n){const i=xo(t,n),{scroll:o}=e;return o&&(mo(i.x,o.offset.x),mo(i.y,o.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:_i(t.x,e.x),y:_i(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=no(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=eo(r=>{if(!To(r,e,this.currentDirection))return;let l=(null==a?void 0:a[r])||{};s&&(l={min:0,max:0});const c=i?200:1e6,u=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,h)});return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Ti(t,n,0,e))}stopAnimation(){eo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){eo(e=>{const{drag:n}=this.getProps();if(!To(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-bn(n,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!d(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};eo(t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const i=zi(t),o=zi(e);return o>i?n=Mn(e.min,e.max-i,t.min):i>o&&(n=Mn(t.min,t.max-o,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),eo(t=>{if(!To(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(bn(i,s,o[t]))})}addListeners(){var t;if(!this.visualElement.current)return;bo.set(this.visualElement,this);const e=Wt(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),n=()=>{const{dragConstraints:t}=this.getProps();d(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),n();const s=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eo(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),e(),o(),null==r||r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ji,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function To(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Po={pan:ue((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:o,visualElement:r}){const a=t||e||n||o,l=Object(i.useRef)(null),{transformPagePoint:c}=Object(i.useContext)(s),u={onSessionStart:o,onStart:e,onMove:t,onEnd:(t,e)=>{l.current=null,n&&n(t,e)}};Object(i.useEffect)(()=>{null!==l.current&&l.current.updateHandlers(u)}),Xt(r,"pointerdown",a&&function(t){l.current=new Bi(t,u,{transformPagePoint:c})}),Qt(()=>l.current&&l.current.end())})),drag:ue((function(t){const{dragControls:e,visualElement:n}=t,o=T(()=>new wo(n));Object(i.useEffect)(()=>e&&e.subscribe(o),[o,e]),Object(i.useEffect)(()=>o.addListeners(),[o])}))};function Eo(t){return"string"==typeof t&&t.startsWith("var(--")}const So=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ao(t,e,n=1){Object(dn.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,o]=function(t){const e=So.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():Eo(o)?Ao(o,e,n+1):o}const Vo=new Set(["width","height","top","left","right","bottom","x","y"]),Co=t=>Vo.has(t),ko=t=>t===W||t===et;var Mo;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Mo||(Mo={}));const jo=(t,e)=>parseFloat(t.split(", ")[e]),Oo=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return jo(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?jo(e[1],t):0}},Ro=new Set(["x","y","z"]),Do=L.filter(t=>!Ro.has(t));const Lo={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Oo(4,13),y:Oo(5,14)},Bo=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Co);let s=[],r=!1;const a=[];if(o.forEach(o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],u=nn(c);const h=e[o];let d;if(jt(h)){const t=h.length,e=null===h[0]?1:0;c=h[e],u=nn(c);for(let n=e;n<t;n++)d?Object(dn.invariant)(nn(h[n])===d,"All keyframes must be of the same type"):(d=nn(h[n]),Object(dn.invariant)(d===u||ko(u)&&ko(d),"Keyframes must be of the same dimension as the current value"))}else d=nn(h);if(u!==d)if(ko(u)&&ko(d)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof h?e[o]=parseFloat(h):Array.isArray(h)&&d===et&&(e[o]=h.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==d?void 0:d.transform)&&(0===c||0===h)?0===c?l.set(d.transform(c)):e[o]=u.transform(h):(r||(s=function(t){const e=[];return Do.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),r=!0),a.push(o),i[o]=void 0!==i[o]?i[o]:e[o],l.jump(h))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=Lo[t](i,s)}),e.render();const l=e.measureViewportBox();return n.forEach(n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=Lo[n](l,s)}),t})(e,t,a);return s.length&&s.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),l&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function Fo(t,e,n,i){return(t=>Object.keys(t).some(Co))(e)?Bo(t,e,n,i):{target:e,transitionEnd:i}}const Io=(t,e,n,i)=>{const o=function(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(t=>{const e=t.get();if(!Eo(e))return;const n=Ao(e,i);n&&t.set(n)});for(const t in e){const o=e[t];if(!Eo(o))continue;const s=Ao(o,i);s&&(e[t]=s,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,i);return Fo(t,e=o.target,n,i=o.transitionEnd)},Uo={current:null},No={current:!1};const $o=Object.keys(w),Ho=$o.length,zo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Wo=["initial",...Vi],Xo=Wo.length;class Yo extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Pe.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=g(e),this.isVariantNode=v(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&I(e)&&(e.set(s[t],!1),un(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),No.current||function(){if(No.current=!0,l)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Uo.current=t.matches;t.addListener(e),e()}else Uo.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Uo.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Ee.update(this.notifyUpdate),Ee.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=B.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Pe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,o,s,r,a){const l=[];for(let t=0;t<Ho;t++){const n=$o[t],{isEnabled:o,Component:s}=w[n];o(e)&&s&&l.push(Object(i.createElement)(s,{key:n,...e,visualElement:this}))}if(!this.projection&&r){this.projection=new r(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:i,dragConstraints:o,layoutScroll:l,layoutRoot:c}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(i)||o&&d(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:c})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<zo.length;e++){const n=zo[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if(I(s))t.addValue(o,s),un(i)&&i.add(o);else if(I(r))t.addValue(o,De(s,{owner:t})),un(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,De(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<Xo;t++){const e=Wo[t],n=this.props[e];(p(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=De(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=Mt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||I(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new je),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=cn(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter(e=>!t.hasValue(e)),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||me(c))?c=parseFloat(c):!sn(c)&&Ye.test(l)&&(c=Qe(r,l)),t.addValue(r,De(c,{owner:t})),void 0===n[r]&&(n[r]=c),null!==c&&t.setBaseTarget(r,c))}}(this,n,s);const t=Io(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class qo extends Yo{readValueFromInstance(t,e){if(B.has(e)){const t=Je(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=($(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return xo(t,e)}build(t,e,n,i){at(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Ct(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;I(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=""+t)}))}renderInstance(t,e,n,i){St(t,e,n,i)}}class Go extends Yo{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return B.has(e)?(null===(n=Je(e))||void 0===n?void 0:n.default)||0:(e=At.has(e)?e:Et(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return kt(t,e)}build(t,e,n,i){xt(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){Vt(t,e,0,i)}mount(t){this.isSVGTag=wt(t.tagName),super.mount(t)}}const Zo=(t,e)=>R(t)?new Go(e,{enableHardwareAcceleration:!1}):new qo(e,{enableHardwareAcceleration:!0});function Ko(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const _o={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!et.test(t))return t;t=parseFloat(t)}return`${Ko(t,e.target.x)}% ${Ko(t,e.target.y)}%`}},Jo={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(So,t=>(s.push(t),"_$css")));const r=Ye.parse(t);if(r.length>5)return i;const a=Ye.createTransformer(t),l="number"!=typeof r[0]?1:0,c=n.x.scale*e.x,u=n.y.scale*e.y;r[0+l]/=c,r[1+l]/=u;const h=bn(c,u,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace("_$css",()=>{const e=s[t];return t++,e})}return d}};class Qo extends o.a.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;var s;s=ts,Object.assign(D,s),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),P.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Pe.postRender(()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ts={borderRadius:{..._o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:Jo},es={measureLayout:function(t){const[e,n]=de(),s=Object(i.useContext)(S);return o.a.createElement(Qo,{...t,layoutGroup:s,switchLayoutGroup:Object(i.useContext)(V),isPresent:e,safeToRemove:n})}};const ns=["TopLeft","TopRight","BottomLeft","BottomRight"],is=ns.length,os=t=>"string"==typeof t?parseFloat(t):t,ss=t=>"number"==typeof t||et.test(t);function rs(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const as=cs(0,.5,In),ls=cs(.5,.95,Dn);function cs(t,e,n){return i=>i<t?0:i>e?1:n(Mn(t,e,i))}function us(t,e){t.min=e.min,t.max=e.max}function hs(t,e){us(t.x,e.x),us(t.y,e.y)}function ds(t,e,n,i,o){return t=lo(t-=e,1/n,i),void 0!==o&&(t=lo(t,1/o,i)),t}function ps(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){if(tt.test(e)){e=parseFloat(e);e=bn(r.min,r.max,e/100)-r.min}if("number"!=typeof e)return;let a=bn(s.min,s.max,i);t===s&&(a-=e),t.min=ds(t.min,e,n,a,o),t.max=ds(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const ms=["x","scaleX","originX"],fs=["y","scaleY","originY"];function gs(t,e,n,i){ps(t.x,e,ms,null==n?void 0:n.x,null==i?void 0:i.x),ps(t.y,e,fs,null==n?void 0:n.y,null==i?void 0:i.y)}function vs(t){return 0===t.translate&&1===t.scale}function ys(t){return vs(t.x)&&vs(t.y)}function xs(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function bs(t){return zi(t.x)/zi(t.y)}class ws{constructor(){this.members=[]}add(t){ke(this.members,t),t.scheduleRender()}remove(t){if(Me(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ts(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}const Ps=(t,e)=>t.depth-e.depth;class Es{constructor(){this.children=[],this.isDirty=!1}add(t){ke(this.children,t),this.isDirty=!0}remove(t){Me(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ps),this.isDirty=!1,this.children.forEach(t)}}const Ss=["","X","Y","Z"];let As=0;function Vs({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=As++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Ms),this.nodes.forEach(Ls),this.nodes.forEach(Bs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Es)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new je),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=hi(i,250),P.hasAnimatedSinceResize&&(P.hasAnimatedSinceResize=!1,this.nodes.forEach(Ds))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,c;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const u=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:Hs,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!xs(this.targetLayout,i)||n,m=!e&&n;if(this.options.layoutRoot||(null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...wi(u,"layout"),onPlay:h,onComplete:d};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||Ds(this),this.isLead()&&(null===(c=(l=this.options).onExitComplete)||void 0===c||c.call(l));this.targetLayout=i})}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,Ee.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(Fs),this.animationId++)}getTransformTemplate(){var t;return null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:o,layout:s}=this.options;(void 0!==o||s)&&(this.prevTransformTemplateValue=null===(i=this.getTransformTemplate())||void 0===i?void 0:i(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Os);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(zs),this.potentialNodes.clear()),this.nodes.forEach(Rs),this.nodes.forEach(Cs),this.nodes.forEach(ks),this.clearAllSnapshots(),Se.update(),Se.preRender(),Se.render())}clearAllSnapshots(){this.nodes.forEach(js),this.sharedNodes.forEach(Is)}scheduleUpdateProjection(){Pe.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ys(this.projectionDelta),i=null===(t=this.getTransformTemplate())||void 0===t?void 0:t(this.latestValues,""),s=i!==this.prevTransformTemplateValue;e&&(n||so(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Ws((i=n).x),Ws(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(mo(e.x,n.offset.x),mo(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};hs(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){hs(e,t);const{scroll:n}=this.root;n&&(mo(e.x,-n.offset.x),mo(e.y,-n.offset.y))}mo(e.x,o.offset.x),mo(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};hs(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&yo(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),so(i.latestValues)&&yo(n,i.latestValues)}return so(this.latestValues)&&yo(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};hs(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!so(i.latestValues))continue;oo(i.latestValues)&&i.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};hs(o,i.measurePageBox()),gs(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return so(this.latestValues)&&gs(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zi(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),hs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,qi(o.x,s.x,r.x),qi(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):hs(this.target,this.layout.layoutBox),ho(this.target,this.targetDelta)):hs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zi(this.relativeTargetOrigin,this.target,t.target),hs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!oo(this.parent.latestValues)&&!ro(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;hs(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,i=!1){var o,s;const r=n.length;if(!r)return;let a,l;e.x=e.y=1;for(let c=0;c<r;c++)a=n[c],l=a.projectionDelta,"contents"!==(null===(s=null===(o=a.instance)||void 0===o?void 0:o.style)||void 0===s?void 0:s.display)&&(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&yo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,ho(t,l)),i&&so(a.latestValues)&&yo(t,a.latestValues));e.x=po(e.x),e.y=po(e.y)}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.treeScale.x,u=this.treeScale.y,h=this.projectionTransform;Yi(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ts(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===c&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},c=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),u=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(c&&!u&&!0===this.options.crossfade&&!this.path.some($s));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;Us(a.x,t.x,i),Us(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Zi(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,Ns(o.x,d.x,p.x,m),Ns(o.y,d.y,p.y,m)),c&&(this.animationValues=r,function(t,e,n,i,o,s){o?(t.opacity=bn(0,void 0!==n.opacity?n.opacity:1,as(i)),t.opacityExit=bn(void 0!==e.opacity?e.opacity:1,0,ls(i))):s&&(t.opacity=bn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<is;o++){const s=`border${ns[o]}Radius`;let r=rs(e,s),a=rs(n,s);if(void 0===r&&void 0===a)continue;r||(r=0),a||(a=0);0===r||0===a||ss(r)===ss(a)?(t[s]=Math.max(bn(os(r),os(a),i),0),(tt.test(a)||tt.test(r))&&(t[s]+="%")):t[s]=a}(e.rotate||n.rotate)&&(t.rotate=bn(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Ee.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{P.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=I(t)?t:De(t);return i.start(Ti("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&Xs(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=zi(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=zi(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}hs(e,n),yo(e,o),Yi(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new ws);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Ss.length;e++){const o="rotate"+Ss[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Ot(t.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ot(t.pointerEvents)||""),this.hasProjected&&!so(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const r=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=Ts(this.projectionDeltaWithTransform,this.treeScale,r),o&&(i.transform=o(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in D){if(void 0===r[t])continue;const{correct:e,applyTo:n}=D[t],o="none"===i.transform?r[t]:e(r[t],s);if(n){const t=n.length;for(let e=0;e<t;e++)i[n[e]]=o}else i[t]=o}return this.options.layoutId&&(i.pointerEvents=s===this?Ot(t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(Os),this.root.sharedNodes.clear()}}}function Cs(t){t.updateLayout()}function ks(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?eo(t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=zi(n);n.min=e[t].min,n.max=n.min+i}):Xs(i,o.layoutBox,e)&&eo(t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=zi(e[t]);n.max=n.min+i});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Yi(r,e,o.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Yi(a,t.applyTransform(n,!0),o.measuredBox):Yi(a,e,o.layoutBox);const l=!ys(r);let c=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:s}=n;if(i&&s){const r={x:{min:0,max:0},y:{min:0,max:0}};Zi(r,o.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Zi(a,e,s.layoutBox),xs(r,a)||(c=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Ms(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function js(t){t.clearSnapshot()}function Os(t){t.clearMeasurements()}function Rs(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ds(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Ls(t){t.resolveTargetDelta()}function Bs(t){t.calcProjection()}function Fs(t){t.resetRotation()}function Is(t){t.removeLeadSnapshot()}function Us(t,e,n){t.translate=bn(e.translate,0,n),t.scale=bn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ns(t,e,n,i){t.min=bn(e.min,n.min,i),t.max=bn(e.max,n.max,i)}function $s(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Hs={duration:.45,ease:[.4,0,.1,1]};function zs(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function Ws(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Xs(t,e,n){return"position"===t||"preserve-aspect"===t&&!Wi(bs(e),bs(n),.2)}const Ys=Vs({attachResizeListener:(t,e)=>Ut(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qs={current:void 0},Gs=Vs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qs.current){const t=new Ys(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),qs.current=t}return qs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Zs={...Di,...he,...Po,...es},Ks=j((t,e)=>Ft(t,e,Zs,Zo,Gs));var _s=n(70),Js=n(16),Qs=n(3),tr=n(214),er=function(t){var e=t.id,n=t.children,i=t.style,o=t.className,s=t.key,r=t.initial,a=t.animate,l=t.exit,c=t.whileHover,u=t.whileTap,h=t.transition,d=t.whileInView,p=t.viewport,m=t.variants,f=t.animated,g=t.destroyWhenAnimated,v=t.setProps;h&&h.repeat&&"infinity"===h.repeat&&(h.repeat=1/0);var y=Object(Qs.d)();return g&&f?null:React.createElement(Ks.div,{id:e,className:Object(Js.isString)(o)?o:o?Object(_s.a)(o):void 0,style:i,key:s,initial:r,animate:a,exit:l,whileHover:c,whileTap:u,transition:h,whileInView:d,viewport:p,variants:m,onAnimationComplete:function(){return v({animated:!0})},"data-dash-is-loading":y},n)};e.default=er;er.defaultProps=tr.b,er.propTypes=tr.c},584:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warning=function(){},e.invariant=function(){}},790:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=(i=n(660))&&"object"==typeof i&&"default"in i?i.default:i,s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=o((function(t){return s.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=r}}]);
2
2
  //# sourceMappingURL=async-feffery_motion.js.map
3
3
  //# sourceMappingURL=async-feffery_motion.js.map