PageSourceSearch

https://www.dealberg.com/63afd9678e2f76caab9e142deda17ff7abeb147a-0ef3a11ca5fbe5e9121e.js

js dealberg.com collected 2026-09-24 13:57:43 UTC 123,010 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdealberg_customer_portal=self.webpackChunkdealberg_customer_portal||[]).push([[4087],{104:function(t,e,n){n.d(e,{Gt:function(){return o},PP:function(){return u},WG:function(){return r},uv:function(){return a}});var i=n(1533),s=n(8530);const{schedule:o,cancel:r,state:a,steps:u}=(0,s.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},309:function(t,e,n){n.d(e,{b:function(){return s}});var i=n(4768);const s=t=>(t*=2)<1?.5*(0,i.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},568:function(t,e,n){n.d(e,{j:function(){return s},p:function(){return r}});const i=t=>e=>"string"==typeof e&&e.startsWith(t),s=i("--"),o=i("var(--"),r=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},849:function(t,e,n){n.d(e,{S:function(){return i}});const i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},1339:function(t,e,n){n.d(e,{F:function(){return s}});const i=(t,e)=>n=>e(t(n)),s=(...t)=>t.reduce(i)},1533:function(t,e,n){n.d(e,{l:function(){return i}});const i=t=>t},2027:function(t,e,n){n.d(e,{V:function(){return a}});var i=n(2944),s=n(5269),o=n(6046),r=n(3259);const a={test:(0,r.$)("hsl","hue"),parse:(0,r.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,o.a)(e))+", "+s.KN.transform((0,o.a)(n))+", "+(0,o.a)(i.X4.transform(r))+")"}},2358:function(t,e,n){function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:function(){return s},Kq:function(){return i}})},2443:function(t,e,n){n.d(e,{U:function(){return i},f:function(){return s}});const i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(i)},2464:function(t,e,n){n.d(e,{q:function(){return i}});const i=(t,e,n)=>n>e?e:n<t?t:n},2606:function(t,e,n){n.d(e,{v:function(){return s}});var i=n(2358);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.Kq)(this.subscriptions,t),()=>(0,i.Ai)(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 s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},2944:function(t,e,n){n.d(e,{X4:function(){return o},ai:function(){return s},hs:function(){return r}});var i=n(2464);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.q)(0,1,t)},r={...s,default:1}},2946:function(t,e,n){n.d(e,{G:function(){return i}});const i=t=>e=>1-t(1-e)},3041:function(t,e,n){n.d(e,{V:function(){return i}});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},3259:function(t,e,n){n.d(e,{$:function(){return o},q:function(){return r}});var i=n(849);const s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>n=>Boolean("string"==typeof n&&s.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),r=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[o,r,a,u]=s.match(i.S);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==u?parseFloat(u):1}}},3420:function(t,e,n){n.d(e,{E4:function(){return r},Hr:function(){return d},W9:function(){return h}});var i=n(2944),s=n(5269),o=n(2443);const r=t=>t===i.ai||t===s.px,a=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return a(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},l=new Set(["x","y","z"]),c=o.U.filter(t=>!l.has(t));function h(t){const e=[];return c.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const d={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:u(4,13),y:u(5,14)};d.translateX=d.x,d.translateY=d.y},3735:function(t,e,n){n.d(e,{B:function(){return u}});var i=n(2464),s=n(2944),o=n(6046),r=n(3259);const a={...s.ai,transform:t=>Math.round((t=>(0,i.q)(0,255,t))(t))},u={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.a)(s.X4.transform(i))+")"}},4043:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(1533);const s=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,o=1e-7,r=12;function a(t,e,n,a){if(t===e&&n===a)return i.l;const u=e=>function(t,e,n,i,a){let u,l,c=0;do{l=e+(n-e)/2,u=s(l,i,a)-t,u>0?n=l:e=l}while(Math.abs(u)>o&&++c<r);return l}(e,0,1,t,n);return t=>0===t||1===t?t:s(u(t),e,a)}},4435:function(t,e,n){function i(t){let e;return()=>(void 0===e&&(e=t()),e)}n.d(e,{p:function(){return i}})},4552:function(t,e,n){n.d(e,{V:function(){return p},f:function(){return g}});var i=n(7739);const s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
1var o=n(849),r=n(6046);const a="number",u="color",l="var",c="var(",h="${}",d=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function p(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},o=[];let r=0;const p=e.replace(d,t=>(i.y.test(t)?(s.color.push(r),o.push(u),n.push(i.y.parse(t))):t.startsWith(c)?(s.var.push(r),o.push(l),n.push(t)):(s.number.push(r),o.push(a),n.push(parseFloat(t))),++r,h)).split(h);return{values:n,split:p,indexes:s,types:o}}function m(t){return p(t).values}function f(t){const{split:e,types:n}=p(t),s=e.length;return t=>{let o="";for(let l=0;l<s;l++)if(o+=e[l],void 0!==t[l]){const e=n[l];o+=e===a?(0,r.a)(t[l]):e===u?i.y.transform(t[l]):t[l]}return o}}const v=t=>"number"==typeof t?0:t;const g={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(o.S))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s))||void 0===n?void 0:n.length)||0)>0},parse:m,createTransformer:f,getAnimatableNone:function(t){const e=m(t);return f(t)(e.map(v))}}},4582:function(t,e,n){n.d(e,{k:function(){return a}});var i=n(4668),s=n(104);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},4668:function(t,e,n){n.d(e,{W:function(){return i}});const i={skipAnimations:!1,useManualTiming:!1}},4768:function(t,e,n){n.d(e,{Sz:function(){return r},ZZ:function(){return u},dg:function(){return a}});var i=n(4043),s=n(3041),o=n(2946);const r=(0,i.A)(.33,1.53,.69,.99),a=(0,o.G)(r),u=(0,s.V)(a)},4785:function(t,e,n){n.d(e,{OQ:function(){return l},bt:function(){return a}});var i=n(4582),s=n(2606),o=n(7177),r=n(104);const a={current:void 0};class u{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=i.k.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Gt.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new u(t,e)}},4835:function(t,e,n){n.d(e,{h:function(){return h},q:function(){return c}});var i=n(3420),s=n(104);const o=new Set;let r=!1,a=!1;function u(){if(a){const t=Array.from(o).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=(0,i.W9)(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,r=!1,o.forEach(t=>t.complete()),o.clear()}function l(){o.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l(),u()}class h{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),r||(r=!0,s.Gt.read(l),s.Gt.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),o.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,o.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},4868:function(t,e,n){n.d(e,{po:function(){return o},tn:function(){return a},yT:function(){return r}});var i=n(3041),s=n(2946);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.G)(o),a=(0,i.V)(o)},4942:function(t,e,n){n.d(e,{P6:function(){return r},vG:function(){return h},tu:function(){return l},KZ:function(){return g},rU:function(){return a},PT:function(){return E},DW:function(){return d},WH:function(){return c},Mc:function(){return C},yL:function(){return y},TU:function(){return T},YE:function(){return u},c$:function(){return B},Wp:function(){return F},nL:function(){return f}});var i=n(4435);const s=(0,i.p)(()=>void 0!==window.ScrollTimeline);class o{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map(n=>s()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0);return()=>
1{n.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class r extends o{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}const u=2e4;function l(t){let e=0;let n=t.next(e);for(;!n.done&&e<u;)e+=50,n=t.next(e);return e>=u?1/0:e}function c(t){return"function"==typeof t}function h(t,e){t.timeline=e,t.onfinish=null}const d=t=>Array.isArray(t)&&"number"==typeof t[0],p={linearEasing:void 0};function m(t,e){const n=(0,i.p)(t);return()=>{var t;return null!==(t=p[e])&&void 0!==t?t:n()}}const f=m(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var v=n(6896);const g=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t((0,v.q)(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function y(t){return Boolean("function"==typeof t&&f()||!t||"string"==typeof t&&(t in P||f())||d(t)||Array.isArray(t)&&t.every(y))}const x=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,P={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:x([0,.65,.55,1]),circOut:x([.55,0,1,.45]),backIn:x([.31,.01,.66,-.59]),backOut:x([.33,1.53,.69,.99])};function T(t,e){return t?"function"==typeof t&&f()?g(t,e):d(t)?x(t):Array.isArray(t)?t.map(t=>T(t,e)||P.easeOut):P[t]:void 0}const w={x:!1,y:!1};function S(){return w.x||w.y}function b(t,e){const n=function(t,e,n){var i;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);const o=null!==(i=null==n?void 0:n[t])&&void 0!==i?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function A(t){return e=>{"touch"===e.pointerType||S()||t(e)}}function E(t,e,n={}){const[i,s,o]=b(t,n),r=A(t=>{const{target:n}=t,i=e(t);if("function"!=typeof i||!n)return;const o=A(t=>{i(t),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,s)});return i.forEach(t=>{t.addEventListener("pointerenter",r,s)}),o}const V=(t,e)=>!!e&&(t===e||V(t,e.parentElement)),C=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,M=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const k=new WeakSet;function D(t){return e=>{"Enter"===e.key&&t(e)}}function R(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const j=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=D(()=>{if(k.has(n))return;R(n,"down");const t=D(()=>{R(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>R(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function L(t){return C(t)&&!S()}function B(t,e,n={}){const[i,s,o]=b(t,n),r=t=>{const i=t.currentTarget;if(!L(t)||k.has(i))return;k.add(i);const o=e(t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",u),L(t)&&k.has(i)&&(k.delete(i),"function"==typeof o&&o(t,{success:e}))},a=t=>{r(t,n.useGlobalTarget||V(i,t.target))},u=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",u,s)};return i.forEach(t=>{(function(t){return M.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0);(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),t.addEventListener("focus",t=>j(t,s),s)}),o}n(7331),n(1533);function F(t){return"x"===t||"y"===t?w[t]?null:(w[t]=!0,()=>{w[t]=!1}):w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}},5128:function(t,e,n){n.d(e,{E:function(){return s}});var i=n(6540);const s=n(8288).B?i.useLayoutEffect:i.useEffect},5252:function(t,e,n){n.d(e,{u:function(){return s}});var i=n(3735);const s={test:(0,n(3259).$)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.B.transform}},5269:function(t,e,n){n.d(e,{KN:function(){return o},gQ:function(){return l},px:function(){return r},uj:function(){return s},vh:function(){return a},vw:function(){return u}});const i=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=i("deg"),o=i("%"),r=i("px"),a=i("vh"),u=i("vw"),l={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},5446:function(t,e,n){n.d(e,{Q:function(){return i}});const i=(0,n(6540).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},6046:function(t,e,n){n.d(e,{a:function(){return i}});const i=t=>Math.round(1e5*t)/1e5},6439:function(t,e,n){n.d(e,{i:function(){return h}});var i=n(4582),s=n(4835),o=n(9652),r=n(4942),a=n(8104),u=n(4552);const l=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!u.f.test(t)&&"0"!==t||t.startsWith("url(")));var c=n(8072);class h{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=i.k.now(),this.options={autoplay:t,delay:e,type:n,repeat:s,repeatDelay:o,repeatType:r,...a}
1,this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,s.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=i.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:u,delay:h,onComplete:d,onUpdate:p,isGenerator:m}=this.options;if(!m&&!function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],u=l(s,e),c=l(o,e);return(0,a.$)(u===c,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!u||!c)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||(0,r.WH)(n))&&i)}(t,n,s,u)){if(o.d.current||!h)return p&&p((0,c.X)(t,this.options,e)),d&&d(),void this.resolveFinishedPromise();this.options.duration=0}const f=this.initPlayback(t,e);!1!==f&&(this._resolved={keyframes:t,finalKeyframe:e,...f},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}},6719:function(t,e,n){n.d(e,{t:function(){return i}});const i=(0,n(6540).createContext)(null)},6896:function(t,e,n){n.d(e,{q:function(){return i}});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7177:function(t,e,n){function i(t,e){return e?t*(1e3/e):0}n.d(e,{f:function(){return i}})},7331:function(t,e,n){n.d(e,{X:function(){return s},f:function(){return i}});const i=t=>1e3*t,s=t=>t/1e3},7739:function(t,e,n){n.d(e,{y:function(){return r}});var i=n(5252),s=n(2027),o=n(3735);const r={test:t=>o.B.test(t)||i.u.test(t)||s.V.test(t),parse:t=>o.B.test(t)?o.B.parse(t):s.V.test(t)?s.V.parse(t):i.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?o.B.transform(t):s.V.transform(t)}},8072:function(t,e,n){n.d(e,{X:function(){return s}});const i=t=>null!==t;function s(t,{repeat:e,repeatType:n="loop"},s){const o=t.filter(i),r=e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==s?s:o[r]}},8104:function(t,e,n){n.d(e,{$:function(){return s},V:function(){return o}});var i=n(1533);let s=i.l,o=i.l},8288:function(t,e,n){n.d(e,{B:function(){return i}});const i="undefined"!=typeof window},8530:function(t,e,n){n.d(e,{I:function(){return r}});var i=n(4668);const s=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,e){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,l=s.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(u.schedule(e),t()),e(r)}const u={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,u.process(t)))}};return u}(u),t),{}),{read:c,resolveKeyframes:h,update:d,preRender:p,render:m,postRender:f}=l,v=()=>{const s=i.W.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(s-a.timestamp,o),1),a.timestamp=s,a.isProcessing=!0,c.process(a),h.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&e&&(r=!1,t(v))};return{schedule:s.reduce((e,i)=>{const s=l[i];return e[i]=(e,i=!1,o=!1)=>(n||(n=!0,r=!0,a.isProcessing||t(v)),s.schedule(e,i,o)),e},{}),cancel:t=>{for(let e=0;e<s.length;e++)l[s[e]].cancel(t)},state:a,steps:l}}},8601:function(t,e,n){n.d(e,{M:function(){return s}});var i=n(6540);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},8602:function(t,e,n){n.d(e,{N:function(){return g}});var i=n(4848),s=n(6540),o=n(9473),r=n(8601),a=n(6719),u=n(5446);class l extends s.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:e}){const n=(0,s.useId)(),o=(0,s.useRef)(null),r=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,s.useContext)(u.Q);return(0,s.useInsertionEffect)(()=>{const{width:t,height:i,top:s,left:u}=r.current;if(e||!o.current||!t||!i)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return a&&(l.nonce=a),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${i}px !important;\n            top: ${s}px !important;\n            left: ${u}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}},[e]),(0,i.jsx)(l,{isPresent:e,childRef:o,sizeRef:r,children:s.cloneElement(t,{ref:o})})}const h=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:u,presenceAffectsLayout:l,mode:h})=>{const p=(0,r.M)(d),m=(0,s.useId)(),f=(0,s.useCallback)(t=>{p.set(t,!0);for(const e of p.values())if(!e)return;o&&o()},[p,o]),v=(0,s.useMemo)(()=>({id:m,initial:e,isPresent:n,custom:u,onExitComplete:f,register:t=>(p.set(t,!1),()=>p.delete(t))}),l?[Math.random(),f]:[n,f]);return(0,s.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[n]),s.useEffect(()=>{!n&&!p.size&&o&&o()},[n]),"popLayout"===h&&(t=(0,i.jsx)(c,{isPresent:n,children:t})),(0,i.jsx)(a.t.Provider,{value:v,children:t})};function d(){return new Map}var p=n(9120);const m=t=>t.key||"";function f(t){const e=[];
1return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}var v=n(5128);const g=({children:t,custom:e,initial:n=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:l="sync",propagate:c=!1})=>{const[d,g]=(0,p.xQ)(c),y=(0,s.useMemo)(()=>f(t),[t]),x=c&&!d?[]:y.map(m),P=(0,s.useRef)(!0),T=(0,s.useRef)(y),w=(0,r.M)(()=>new Map),[S,b]=(0,s.useState)(y),[A,E]=(0,s.useState)(y);(0,v.E)(()=>{P.current=!1,T.current=y;for(let t=0;t<A.length;t++){const e=m(A[t]);x.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[A,x.length,x.join("-")]);const V=[];if(y!==S){let t=[...y];for(let e=0;e<A.length;e++){const n=A[e],i=m(n);x.includes(i)||(t.splice(e,0,n),V.push(n))}return"wait"===l&&V.length&&(t=V),E(f(t)),void b(y)}const{forceRender:C}=(0,s.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:A.map(t=>{const s=m(t),o=!(c&&!d)&&(y===A||x.includes(s));return(0,i.jsx)(h,{isPresent:o,initial:!(P.current&&!n)&&void 0,custom:o?void 0:e,presenceAffectsLayout:u,mode:l,onExitComplete:o?void 0:()=>{if(!w.has(s))return;w.set(s,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),E(T.current),c&&(null==g||g()),a&&a())},children:t},s)})})}},8799:function(t,e,n){n.d(e,{j:function(){return b}});var i=n(9713),s=n(8104);function o(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}var r=n(5252),a=n(3735),u=n(2027);function l(t,e){return n=>n>0?e:t}const c=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},h=[r.u,a.B,u.V];function d(t){const e=(n=t,h.find(t=>t.test(n)));var n;if((0,s.$)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===u.V&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,r=0,a=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,u=2*n-i;s=o(u,i,t+1/3),r=o(u,i,t),a=o(u,i,t-1/3)}else s=r=a=n;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:i}}(i)),i}const p=(t,e)=>{const n=d(t),s=d(e);if(!n||!s)return l(t,e);const o={...n};return t=>(o.red=c(n.red,s.red,t),o.green=c(n.green,s.green,t),o.blue=c(n.blue,s.blue,t),o.alpha=(0,i.k)(n.alpha,s.alpha,t),a.B.transform(o))};var m=n(1339),f=n(7739),v=n(4552),g=n(568);const y=new Set(["none","hidden"]);function x(t,e){return n=>(0,i.k)(t,e,n)}function P(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?l:f.y.test(t)?p:S:Array.isArray(t)?T:"object"==typeof t?f.y.test(t)?p:w:l}function T(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>P(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function w(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=P(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const S=(t,e)=>{const n=v.f.createTransformer(e),i=(0,v.V)(t),o=(0,v.V)(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?y.has(t)&&!o.values.length||y.has(e)&&!i.values.length?function(t,e){return y.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):(0,m.F)(T(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],u=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=u,s[r]++}return i}(i,o),o.values),n):((0,s.$)(!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.`),l(t,e))};function b(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return(0,i.k)(t,e,n);return P(t)(t,e)}},8844:function(t,e,n){n.d(e,{G:function(){return l}});var i=n(1533),s=n(8104),o=n(6896),r=n(2464),a=n(8799),u=n(1339);function l(t,e,{clamp:n=!0,ease:l,mixer:c}={}){const h=t.length;if((0,s.V)(h===e.length,"Both input and output ranges must be the same length"),1===h)return()=>e[0];if(2===h&&e[0]===e[1])return()=>e[1];const d=t[0]===t[1];t[0]>t[h-1]&&(t=[...t].reverse(),e=[...e].reverse());const p=function(t,e,n){const s=[],o=n||a.j,r=t.length-1;for(let a=0;a<r;a++){let n=o(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]||i.l:e;n=(0,u.F)(t,n)}s.push(n)}return s}(e,l,c),m=p.length,f=n=>{if(d&&n<t[0])return e[0];let i=0;if(m>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=(0,o.q)(t[i],t[i+1],n);return p[i](s)};return n?e=>f((0,r.q)(t[0],t[h-1],e)):f}},9003:function(t,e,n){n.d(e,{o:function(){return nt},L:function(){return it}});var i=n(4942),s=n(7331),o=n(4835),r=n(2464),a=n(8799),u=n(1339),l=n(7177);function c(t,e,n){const i=Math.max(e-5,0);return(0,l.f)(n-t(i),e-i)}const h=100,d=10,p=1,m=0,f=800,v=.3,g=.3,y={granular:.01,default:2},x={granular:.005,default:.5},P=.01,T=10,w=.05,S=1;var b=n(8104);const A=.001;function E({duration:t=f,bounce:e=v,velocity:n=m,mass:i=p}){let o,a;(0,b.$)(t<=(0,s.f)(T),"Spring duration must be 10 seconds or less");let u=1-e;u=(0,r.q)(w,S,u),t=(0,r.q)(P,T,(0,s.X)(t)),u<1?(o=e=>{const i=e*u,s=i*t,o=i-n,r=C(e,u),a=Math.exp(-s);return A-o/r*a},a=e=>{const i=e*u*t,s=i*n+n,r=Math.pow(u,2)*Math.pow(e,2)*t,a=Math.exp(-i),l=C(Math.pow(e,2),u);return(-o(e)+A>0?-1:1)*((s-r)*a)/l}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,a=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let s=1;s<V;s++)i-=t(i)/e(i);return i}(o,a,5/t);if(t=(0,s.f)(t),isNaN(l))return{stiffness:h,damping:d,duration:t};{const e=Math.pow(l,2)*i;return{stiffness:e,damping:2*u*Math.sqrt(i*e),duration:t}}}const V=12;function C(t,e){return t*Math.sqrt(1-e*e)}const M=["duration","bounce"],k=["stiffness","damping","mass"];function D(t,e){return e.some(e=>void 0!==t[e])}function R(t=g,e=v){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:o,restDelta:a}=n;const u=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],f={done:!1,value:u},{stiffness:P,damping:T,mass:w,duration:S,velocity:b,isResolvedFromDuration:A}=function(t){let e={velocity:m,stiffness:h,damping:d,mass:p,isResolvedFromDuration:!1,...t};if(!D(t,k)&&D(t,M))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*(0,r.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:p,stiffness:s,damping:o}}else{const n=E(t);e={...e,...n,mass:p},e.isResolvedFromDuration=!0}return e}({...n,velocity:-(0,s.X)(n.velocity||0)}),V=b||0,R=T/(2*Math.sqrt(P*w)),j=l-u,L=(0,s.X)(Math.sqrt(P/w)),B=Math.abs(j)<5;let F;if(o||(o=B?y.granular:y.default),a||(a=B?x.granular:x.default),R<1){const t=C(L,R);F=e=>{const n=Math.exp(-R*L*e);return l-n*((V+R*L*j)/t*Math.sin(t*e)+j*Math.cos(t*e))}}else if(1===R)F=t=>l-Math.exp(-L*t)*(j+(V+L*j)*t);else{const t=L*Math.sqrt(R*R-1);F=e=>{const n=Math.exp(-R*L*e),i=Math.min(t*e,300);
1return l-n*((V+R*L*j)*Math.sinh(i)+t*j*Math.cosh(i))/t}}const O={calculatedDuration:A&&S||null,next:t=>{const e=F(t);if(A)f.done=t>=S;else{let n=0;R<1&&(n=0===t?(0,s.f)(V):c(F,t,e));const i=Math.abs(n)<=o,r=Math.abs(l-e)<=a;f.done=i&&r}return f.value=f.done?l:e,f},toString:()=>{const t=Math.min((0,i.tu)(O),i.YE),e=(0,i.KZ)(e=>O.next(t*e).value,t,30);return t+"ms "+e}};return O}function j({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:u,restDelta:l=.5,restSpeed:h}){const d=t[0],p={done:!1,value:d},m=t=>void 0===a?u:void 0===u||Math.abs(a-t)<Math.abs(u-t)?a:u;let f=n*e;const v=d+f,g=void 0===r?v:r(v);g!==v&&(f=g-d);const y=t=>-f*Math.exp(-t/i),x=t=>g+y(t),P=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=l,p.value=p.done?g:n};let T,w;const S=t=>{var e;(e=p.value,void 0!==a&&e<a||void 0!==u&&e>u)&&(T=t,w=R({keyframes:[p.value,m(p.value)],velocity:c(x,t,p.value),damping:s,stiffness:o,restDelta:l,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==T||(e=!0,P(t),S(t)),void 0!==T&&t>=T?w.next(t-T):(!e&&P(t),p)}}}var L=n(4043);const B=(0,L.A)(.42,0,1,1),F=(0,L.A)(0,0,.58,1),O=(0,L.A)(.42,0,.58,1);var I=n(1533),U=n(309),$=n(4768),W=n(4868);const N={linear:I.l,easeIn:B,easeInOut:O,easeOut:F,circIn:W.po,circInOut:W.tn,circOut:W.yT,backIn:$.dg,backInOut:$.ZZ,backOut:$.Sz,anticipate:U.b},G=t=>{if((0,i.DW)(t)){(0,b.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return(0,L.A)(e,n,i,s)}return"string"==typeof t?((0,b.V)(void 0!==N[t],`Invalid easing type '${t}'`),N[t]):t};var X=n(8844),K=n(6896),q=n(9713);function z(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=(0,K.q)(0,e,i);t.push((0,q.k)(n,1,s))}}(e,t.length-1),e}function Y({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(G):G(i),o={done:!1,value:e[0]},r=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:z(e),t),a=(0,X.G)(r,e,{ease:Array.isArray(s)?s:(u=e,l=s,u.map(()=>l||O).splice(0,u.length-1))});var u,l;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}var H=n(6439),Z=n(4582),Q=n(104);const _=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Q.Gt.update(e,!0),stop:()=>(0,Q.WG)(e),now:()=>Q.uv.isProcessing?Q.uv.timestamp:Z.k.now()}};var J=n(8072);const tt={decay:j,inertia:j,tween:Y,keyframes:Y,spring:R},et=t=>t/100;class nt extends H.i{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,r=(null==i?void 0:i.KeyframeResolver)||o.h;this.resolver=new r(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=this.options,l=(0,i.WH)(e)?e:tt[e]||Y;let c,h;l!==Y&&"number"!=typeof t[0]&&(c=(0,u.F)(et,(0,a.j)(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});"mirror"===o&&(h=l({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===d.calculatedDuration&&(d.calculatedDuration=(0,i.tu)(d));const{calculatedDuration:p}=d,m=p+s;return{generator:d,mirroredGenerator:h,mapPercentToKeyframes:c,calculatedDuration:p,resolvedDuration:m,totalDuration:m*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:u,calculatedDuration:l,totalDuration:c,resolvedDuration:h}=n;
1if(null===this.startTime)return s.next(0);const{delay:d,repeat:p,repeatType:m,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let x=this.currentTime,P=s;if(p){const t=Math.min(this.currentTime,c)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,p+1);Boolean(e%2)&&("reverse"===m?(n=1-n,f&&(n-=f/h)):"mirror"===m&&(P=o)),x=(0,r.q)(0,1,n)*h}const T=y?{done:!1,value:u[0]}:P.next(x);a&&(T.value=a(T.value));let{done:w}=T;y||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==i&&(T.value=(0,J.X)(u,this.options,i)),v&&v(T.value),S&&this.finish(),T}get duration(){const{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=_,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function it(t){return new nt(t)}},9120:function(t,e,n){n.d(e,{xQ:function(){return o}});var i=n(6540),s=n(6719);function o(t=!0){const e=(0,i.useContext)(s.t);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,a=(0,i.useId)();(0,i.useEffect)(()=>{t&&r(a)},[t]);const u=(0,i.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,u]:[!0]}},9406:function(t,e,n){function i(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy((...e)=>t(...e),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{P:function(){return bs}});const o=t=>Array.isArray(t);function r(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}function a(t){return"string"==typeof t||Array.isArray(t)}function u(t){const e=[{},{}];return null==t||t.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function l(t,e,n,i){if("function"==typeof e){const[s,o]=u(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=u(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function c(t,e,n){const i=t.getProps();return l(i,e,void 0!==n?n:i.custom,t)}const h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h];var p=n(4942),m=n(2443);const f=new Set(["width","height","top","left","right","bottom",...m.U]),v=t=>o(t)?t[t.length-1]||0:t;var g=n(4785);function y(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,g.OQ)(n))}var x=n(9896);function P(t,e){const n=t.getValue("willChange");if(i=n,Boolean((0,x.S)(i)&&i.add))return n.add(e);var i}const T=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),w="data-"+T("framerAppearId");function S(t){return t.props[w]}var b=n(7331),A=n(104),E=n(4668),V=n(9652),C=n(1533),M=n(309),k=n(4768),D=n(4868);const R=t=>/^0[^.\s]+$/u.test(t);function j(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||R(t))}var L=n(4552),B=n(849);const F=new Set(["brightness","contrast","saturate","opacity"]);function O(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(B.S)||[];if(!i)return t;const s=n.replace(i,"");let o=F.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const I=/\b([a-z-]*)\(.*?\)/gu,U={...L.f,getAnimatableNone:t=>{const e=t.match(I);return e?e.map(O).join(" "):t}};var $=n(7739),W=n(2944),N=n(5269);const G={borderWidth:N.px,borderTopWidth:N.px,borderRightWidth:N.px,borderBottomWidth:N.px,borderLeftWidth:N.px,borderRadius:N.px,radius:N.px,borderTopLeftRadius:N.px,borderTopRightRadius:N.px,borderBottomRightRadius:N.px,borderBottomLeftRadius:N.px,width:N.px,maxWidth:N.px,height:N.px,maxHeight:N.px,top:N.px,right:N.px,bottom:N.px,left:N.px,padding:N.px,paddingTop:N.px,paddingRight:N.px,paddingBottom:N.px,paddingLeft:N.px,margin:N.px,marginTop:N.px,marginRight:N.px,marginBottom:N.px,marginLeft:N.px,backgroundPositionX:N.px,backgroundPositionY:N.px},X={rotate:N.uj,rotateX:N.uj,rotateY:N.uj,rotateZ:N.uj,scale:W.hs,scaleX:W.hs,scaleY:W.hs,scaleZ:W.hs,skew:N.uj,skewX:N.uj,skewY:N.uj,distance:N.px,translateX:N.px,translateY:N.px,translateZ:N.px,x:N.px,y:N.px,z:N.px,perspective:N.px,transformPerspective:N.px,opacity:W.X4,originX:N.gQ,originY:N.gQ,originZ:N.px},K={...W.ai,transform:Math.round},q={...G,...X,zIndex:K,size:N.px,fillOpacity:W.X4,strokeOpacity:W.X4,numOctaves:K},z={...q,color:$.y,backgroundColor:$.y,outlineColor:$.y,fill:$.y,stroke:$.y,borderColor:$.y,borderTopColor:$.y,borderRightColor:$.y,borderBottomColor:$.y,borderLeftColor:$.y,filter:U,WebkitFilter:U},Y=t=>z[t];function H(t,e){let n=Y(t);return n!==U&&(n=L.f),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
1const Z=new Set(["auto","none","0"]);var Q=n(4835),_=n(8104);const J=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var tt=n(568);const et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nt(t,e,n=1){(0,_.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=et.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return J(t)?parseFloat(t):t}return(0,tt.p)(s)?nt(s,e,n+1):s}var it=n(3420);const st=t=>e=>e.test(t),ot=[W.ai,N.px,N.KN,N.uj,N.vw,N.vh,{test:t=>"auto"===t,parse:t=>t}],rt=t=>ot.find(st(t));class at extends Q.h{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),(0,tt.p)(n))){const i=nt(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!f.has(n)||2!==t.length)return;const[i,s]=t,o=rt(i),r=rt(s);if(o!==r)if((0,it.E4)(o)&&(0,it.E4)(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)j(t[i])&&n.push(i);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Z.has(e)&&(0,L.V)(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=H(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it.Hr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=it.Hr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var ut=n(6439),lt=n(9003);const ct=new Set(["opacity","clipPath","filter","transform"]);var ht=n(8072);const dt=(0,n(4435).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));const pt={anticipate:M.b,backInOut:k.ZZ,circInOut:D.tn};class mt extends ut.i{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new at(s,(t,e)=>this.onKeyframesResolved(t,e),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:i,ease:s,type:o,motionValue:r,name:a,startTime:u}=this.options;if(!r.owner||!r.owner.current)return!1;var l;if("string"==typeof s&&(0,p.nL)()&&s in pt&&(s=pt[s]),l=this.options,(0,p.WH)(l.type)||"spring"===l.type||!(0,p.yL)(l.ease)){const{onComplete:e,onUpdate:r,motionValue:a,element:u,...l}=this.options,c=function(t,e){const n=new lt.o({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,l);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,i=c.times,s=c.ease,o="keyframes"}const c=function(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:u}={}){const l={[e]:n};u&&(l.offset=u);const c=(0,p.TU)(a,s);return Array.isArray(c)&&(l.easing=c),t.animate(l,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(r.owner.current,a,t,{...this.options,duration:n,times:i,ease:s});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,p.vG)(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;r.set((0,ht.X)(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return(0,b.X)(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return(0,b.X)(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=(0,b.f)(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return C.l;const{animation:n}=e;(0,p.vG)(n,t)}else this.pendingTimeline=t;return C.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:o,times:r}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:u,...l}=this.options,c=new lt.o({...l,keyframes:n,duration:i,type:s,ease:o,times:r,isGenerator:!0}),h=(0,b.f)(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=e.owner.getProps();return dt()&&n&&ct.has(n)&&!a&&!u&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const ft={type:"spring",stiffness:500,damping:25,restSpeed:10},vt={type:"keyframes",duration:.8},gt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yt=(t,{keyframes:e})=>e.length>2?vt:m.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ft:gt;const xt=(t,e,n,i={},s,o)=>r=>{const a=(0,p.rU)(i,t)||{},u=a.delay||i.delay||0;let{elapsed:l=0}=i;l-=(0,b.f)(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length})(a)||(c={...c,...yt(t,c)}),c.duration&&(c.duration=(0,b.f)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,b.f)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(h=!0)),(V.d.current||E.W.skipAnimations)&&(h=!0,c.duration=0,
1c.delay=0),h&&!o&&void 0!==e.get()){const t=(0,ht.X)(c.keyframes,a);if(void 0!==t)return A.Gt.update(()=>{c.onUpdate(t),c.onComplete()}),new p.P6([])}return!o&&mt.supports(c)?new mt(c):new lt.o(c)};function Pt({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Tt(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...u}=e;i&&(r=i);const l=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in u){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=u[c];if(void 0===i||h&&Pt(h,c))continue;const s={delay:n,...(0,p.rU)(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=S(t);if(e){const t=window.MotionHandoffAnimation(e,c,A.Gt);null!==t&&(s.startTime=t,a=!0)}}P(t,c),e.start(xt(c,e,i,t.shouldReduceMotion&&f.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{A.Gt.update(()=>{a&&function(t,e){const n=c(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o)y(t,r,v(o[r]))}(t,a)})}),l}function wt(t,e,n={}){var i;const s=c(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(Tt(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,u=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(St).forEach((t,i)=>{t.notify("AnimationStart",e),r.push(wt(t,e,{...o,delay:n+u(i)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[t,e]="beforeChildren"===u?[r,a]:[a,r];return t().then(()=>e())}return Promise.all([r(),a(n.delay)])}function St(t,e){return t.sortNodePosition(e)}const bt=d.length;function At(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&At(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<bt;n++){const i=d[n],s=t.props[i];(a(s)||!1===s)&&(e[i]=s)}return e}const Et=[...h].reverse(),Vt=h.length;function Ct(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 s=e.map(e=>wt(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=wt(t,e,n);else{const s="function"==typeof e?c(t,e,n.custom):e;i=Promise.all(Tt(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function Mt(t){let e=Ct(t),n=Rt(),i=!0;const u=e=>(n,i)=>{var s;const o=c(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function l(l){const{props:c}=t,h=At(t.parent)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<Vt;e++){const v=Et[e],g=n[v],y=void 0!==c[v]?c[v]:h[v],x=a(y),P=v===l?g.isActive:null;!1===P&&(f=e);let T=y===h[v]&&y!==c[v]&&x;if(T&&i&&t.manuallyAnimateOnMount&&(T=!1),g.protectedKeys={...m},!g.isActive&&null===P||!y&&!g.prevProp||s(y)||"boolean"==typeof y)continue;const w=kt(g.prevProp,y);let S=w||v===l&&g.isActive&&!T&&x||e>f&&x,b=!1;const A=Array.isArray(y)?y:[y];let E=A.reduce(u(v),{});!1===P&&(E={});const{prevResolvedValues:V={}}=g,C={...V,...E},M=e=>{S=!0,p.has(e)&&(b=!0,p.delete(e)),g.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=E[t],n=V[t];if(m.hasOwnProperty(t))continue;let i=!1;i=o(e)&&o(n)?!r(e,n):e!==n,i?null!=e?M(t):p.add(t):void 0!==e&&p.has(t)?M(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(m={...m,...E}),i&&t.blockInitialAnimation&&(S=!1);S&&(!(T&&w)||b)&&d.push(...A.map(t=>({animation:t,options:{type:v}})))}if(p.size){const e={};p.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null}),d.push({animation:e})}let v=Boolean(d.length);return!i||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(v=!1),i=!1,v?e(d):Promise.resolve()}return{animateChanges:l,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();
1null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)}),n[e].isActive=i;const o=l(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Rt(),i=!0}}}function kt(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function Dt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rt(){return{animate:Dt(!0),whileInView:Dt(),whileHover:Dt(),whileTap:Dt(),whileDrag:Dt(),whileFocus:Dt(),exit:Dt()}}class jt{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Lt=0;const Bt={animation:{Feature:class extends jt{constructor(t){super(t),t.animationState||(t.animationState=Mt(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends jt{constructor(){super(...arguments),this.id=Lt++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>e(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function Ft(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Ot(t){return{point:{x:t.pageX,y:t.pageY}}}function It(t,e,n,i){return Ft(t,e,(t=>e=>(0,p.Mc)(e)&&t(e,Ot(e)))(n),i)}const Ut=(t,e)=>Math.abs(t-e);var $t=n(1339);class Wt{constructor(t,e,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Xt(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ut(t.x,e.x),i=Ut(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:s}=A.uv;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Nt(e,this.transformPagePoint),A.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Xt("pointercancel"===t.type?this.lastMoveEventInfo:Nt(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,p.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=Nt(Ot(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=A.uv;this.history=[{...r,timestamp:a}];const{onSessionStart:u}=e;u&&u(t,Xt(o,this.history)),this.removeListeners=(0,$t.F)(It(this.contextWindow,"pointermove",this.handlePointerMove),It(this.contextWindow,"pointerup",this.handlePointerUp),It(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,A.WG)(this.updatePoint)}}function Nt(t,e){return e?{point:e(t.point)}:t}function Gt(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xt({point:t},e){return{point:t,delta:Gt(t,qt(e)),offset:Gt(t,Kt(e)),velocity:zt(e,.1)}}function Kt(t){return t[0]}function qt(t){return t[t.length-1]}function zt(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=qt(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,b.f)(e)));)n--;if(!i)return{x:0,y:0};const o=(0,b.X)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Yt(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var Ht=n(6896),Zt=n(9713);function Qt(t){return t.max-t.min}function _t(t,e,n,i=.5){t.origin=i,t.originPoint=(0,Zt.k)(e.min,e.max,t.origin),t.scale=Qt(n)/Qt(e),t.translate=(0,Zt.k)(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Jt(t,e,n,i){_t(t.x,e.x,n.x,i?i.originX:void 0),_t(t.y,e.y,n.y,i?i.originY:void 0)}function te(t,e,n){t.min=n.min+e.min,t.max=t.min+Qt(e)}function ee(t,e,n){t.min=e.min-n.min,t.max=t.min+Qt(e)}function ne(t,e,n){ee(t.x,e.x,n.x),ee(t.y,e.y,n.y)}var ie=n(2464);function se(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 oe(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 re=.35;
1function ae(t,e,n){return{min:ue(t,e),max:ue(t,n)}}function ue(t,e){return"number"==typeof t?t:t[e]||0}const le=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ce(t){return[t("x"),t("y")]}function he({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function de(t){return void 0===t||1===t}function pe({scale:t,scaleX:e,scaleY:n}){return!de(t)||!de(e)||!de(n)}function me(t){return pe(t)||fe(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function fe(t){return ve(t.x)||ve(t.y)}function ve(t){return t&&"0%"!==t}function ge(t,e,n){return n+e*(t-n)}function ye(t,e,n,i,s){return void 0!==s&&(t=ge(t,s,i)),ge(t,n,i)+e}function xe(t,e=0,n=1,i,s){t.min=ye(t.min,e,n,i,s),t.max=ye(t.max,e,n,i,s)}function Pe(t,{x:e,y:n}){xe(t.x,e.translate,e.scale,e.originPoint),xe(t.y,n.translate,n.scale,n.originPoint)}const Te=.999999999999,we=1.0000000000001;function Se(t,e){t.min=t.min+e,t.max=t.max+e}function be(t,e,n,i,s=.5){xe(t,e,n,(0,Zt.k)(t.min,t.max,s),i)}function Ae(t,e){be(t.x,e.x,e.scaleX,e.scale,e.originX),be(t.y,e.y,e.scaleY,e.scale,e.originY)}function Ee(t,e){return he(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 Ve=({current:t})=>t?t.ownerDocument.defaultView:null,Ce=new WeakMap;class Me{constructor(t){this.openDragLock=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}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new Wt(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Ot(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,p.Wp)(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ce(t=>{let e=this.getAxisMotionValue(t).get()||0;if(N.KN.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Qt(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&A.Gt.postRender(()=>s(t,e)),P(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)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&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ce(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:Ve(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&A.Gt.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!ke(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,Zt.k)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,Zt.k)(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&Yt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:se(t.x,n,s),y:se(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=re){return!1===t?t=0:!0===t&&(t=re),{x:ae(t,"left","right"),y:ae(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ce(t=>{!1!==this.constraints&&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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!Yt(t))return!1;const n=t.current;(0,_.V)(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 s=function(t,e,n){const i=Ee(t,n),{scroll:s}=e;return s&&(Se(i.x,s.offset.x),Se(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:oe(t.x,e.x),y:oe(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=he(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},u=ce(r=>{if(!ke(r,e,this.currentDirection))return;let u=a&&a[r]||{};o&&(u={min:0,max:0});const l=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:l,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(r,h)});return Promise.all(u).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return P(this.visualElement,t),n.start(xt(t,n,0,e,this.visualElement,!1))}stopAnimation(){ce(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ce(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ce(e=>{const{drag:n}=this.getProps();if(!ke(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,Zt.k)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!Yt(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ce(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Qt(t),s=Qt(e);return s>i?n=(0,Ht.q)(e.min,e.max-i,t.min):i>s&&(n=(0,Ht.q)(t.min,t.max-s,e.min)),(0,ie.q)(0,1,n)}({min:n,max:n},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ce(e=>{if(!ke(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set((0,Zt.k)(s,o,i[e]))})}addListeners(){if(!this.visualElement.current)return;Ce.set(this.visualElement,this);const t=It(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:n=!0}
1=this.getProps();e&&n&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();Yt(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),A.Gt.read(e);const s=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ce(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(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=re,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function ke(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const De=t=>(e,n)=>{t&&A.Gt.postRender(()=>t(e,n))};var Re=n(4848),je=n(6540),Le=n(9120),Be=n(9473);const Fe=(0,je.createContext)({}),Oe={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ie(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ue={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!N.px.test(t))return t;t=parseFloat(t)}return`${Ie(t,e.target.x)}% ${Ie(t,e.target.y)}%`}},$e={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=L.f.parse(t);if(s.length>5)return i;const o=L.f.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=u;const l=(0,Zt.k)(a,u,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),o(s)}},We={};var Ne=n(8530);const{schedule:Ge,cancel:Xe}=(0,Ne.I)(queueMicrotask,!1);class Ke extends je.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=ze,Object.assign(We,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Oe.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||A.Gt.postRender(()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ge.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qe(t){const[e,n]=(0,Le.xQ)(),i=(0,je.useContext)(Be.L);return(0,Re.jsx)(Ke,{...t,layoutGroup:i,switchLayoutGroup:(0,je.useContext)(Fe),isPresent:e,safeToRemove:n})}const ze={borderRadius:{...Ue,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomLeftRadius:Ue,borderBottomRightRadius:Ue,boxShadow:$e};var Ye=n(4582);var He=n(2358);const Ze=(t,e)=>t.depth-e.depth;class Qe{constructor(){this.children=[],this.isDirty=!1}add(t){(0,He.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,He.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ze),this.isDirty=!1,this.children.forEach(t)}}function _e(t,e){const n=Ye.k.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&((0,A.WG)(i),t(o-e))};return A.Gt.read(i,!0),()=>(0,A.WG)(i)}var Je=n(2606);function tn(t){const e=(0,x.S)(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const en=["TopLeft","TopRight","BottomLeft","BottomRight"],nn=en.length,sn=t=>"string"==typeof t?parseFloat(t):t,on=t=>"number"==typeof t||N.px.test(t);function rn(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const an=ln(0,.5,D.yT),un=ln(.5,.95,C.l);function ln(t,e,n){return i=>i<t?0:i>e?1:n((0,Ht.q)(t,e,i))}function cn(t,e){t.min=e.min,t.max=e.max}function hn(t,e){cn(t.x,e.x),cn(t.y,e.y)}function dn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function pn(t,e,n,i,s){return t=ge(t-=e,1/n,i),void 0!==s&&(t=ge(t,1/s,i)),t}function mn(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){N.KN.test(e)&&(e=parseFloat(e),e=(0,Zt.k)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,Zt.k)(o.min,o.max,i);t===o&&(a-=e),t.min=pn(t.min,e,n,a,s),t.max=pn(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const fn=["x","scaleX","originX"],vn=["y","scaleY","originY"];function gn(t,e,n,i){mn(t.x,e,fn,n?n.x:void 0,i?i.x:void 0),mn(t.y,e,vn,n?n.y:void 0,i?i.y:void 0)}function yn(t){return 0===t.translate&&1===t.scale}function xn(t){return yn(t.x)&&yn(t.y)}function Pn(t,e){return t.min===e.min&&t.max===e.max}function Tn(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function wn(t,e){return Tn(t.x,e.x)&&Tn(t.y,e.y)}function Sn(t){return Qt(t.x)/Qt(t.y)}function bn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class An{constructor(){this.members=[]}add(t){(0,He.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,He.Ai)(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)}
1}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const En={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vn="undefined"!=typeof window&&void 0!==window.MotionDebug,Cn=["","X","Y","Z"],Mn={visibility:"hidden"};let kn=0;function Dn(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Rn(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=S(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",A.Gt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Rn(i)}function jn({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=kn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vn&&(En.totalNodes=En.resolvedTargetDeltas=En.recalculatedProjection=0),this.nodes.forEach(Fn),this.nodes.forEach(Gn),this.nodes.forEach(Xn),this.nodes.forEach(On),Vn&&window.MotionDebug.record(En)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qe)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Je.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=_e(i,250),Oe.hasAnimatedSinceResize&&(Oe.hasAnimatedSinceResize=!1,this.nodes.forEach(Nn))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||Zn,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),u=!this.targetLayout||!wn(this.targetLayout,i)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);const e={...(0,p.rU)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Nn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,A.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(Kn),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Un);this.isUpdating||this.nodes.forEach($n),this.isUpdating=!1,this.nodes.forEach(Wn),this.nodes.forEach(Ln),this.nodes.forEach(Bn),this.clearAllSnapshots();const t=Ye.k.now();A.uv.delta=(0,ie.q)(0,1e3/60,t-A.uv.timestamp),A.uv.timestamp=t,A.uv.isProcessing=!0,A.PP.update.process(A.uv),A.PP.preRender.process(A.uv),A.PP.render.process(A.uv),A.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ge.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(In),this.sharedNodes.forEach(qn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=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);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!xn(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||me(this.latestValues)||o)&&(s(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)),Jn((i=n).x),Jn(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ei))){const{scroll:t}=this.root;t&&(Se(n.x,t.offset.x),Se(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(hn(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&hn(n,t),Se(n.x,s.offset.x),Se(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};hn(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Ae(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),me(t.latestValues)&&Ae(n,t.latestValues)}return me(this.latestValues)&&Ae(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};hn(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!me(t.latestValues))continue;pe(t.latestValues)&&t.updateSnapshot();const i=le();hn(i,t.measurePageBox()),gn(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return me(this.latestValues)&&gn(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==A.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=A.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ne(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),hn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,u;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&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,u=this.relativeParent.target,te(r.x,a.x,u.x),te(r.y,a.y,u.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):hn(this.target,this.layout.layoutBox),Pe(this.target,this.targetDelta)):hn(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&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},ne(this.relativeTargetOrigin,this.target,t.target),hn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vn&&En.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!pe(this.parent.latestValues)&&!fe(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===A.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;hn(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ae(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Pe(t,r)),i&&me(o.latestValues)&&Ae(t,o.latestValues))}e.x<we&&e.x>Te&&(e.x=1),e.y<we&&e.y>Te&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:u}=e;u?(this.projectionDelta&&this.prevProjectionDelta?(dn(this.prevProjectionDelta.x,this.projectionDelta.x),dn(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Jt(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&bn(this.projectionDelta.x,this.prevProjectionDelta.x)&&bn(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),Vn&&En.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},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}}}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o={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 r={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),l=!u||u.members.length<=1,c=Boolean(a&&!l&&!0===this.options.crossfade&&!this.path.some(Hn));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var u,d,p,m,f,v;zn(o.x,t.x,n),zn(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ne(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,Yn(p.x,m.x,f.x,v),Yn(p.y,m.y,f.y,v),h&&(u=this.relativeTarget,d=h,Pn(u.x,d.x)&&Pn(u.y,d.y))&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),hn(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=(0,Zt.k)(0,void 0!==n.opacity?n.opacity:1,an(i)),t.opacityExit=(0,Zt.k)(void 0!==e.opacity?e.opacity:1,0,un(i))):o&&(t.opacity=(0,Zt.k)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<nn;r++){const s=`border${en[r]}Radius`;let o=rn(e,s),a=rn(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||on(o)===on(a)?(t[s]=Math.max((0,Zt.k)(sn(o),sn(a),i),0),(N.KN.test(a)||N.KN.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,Zt.k)(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,c,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,A.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.Gt.update(()=>{Oe.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=(0,x.S)(t)?t:(0,g.OQ)(t);return i.start(xt("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&ti(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Qt(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Qt(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}hn(e,n),Ae(e,s),Jt(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new An);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}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)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Dn("z",t,i,this.animationValues);for(let s=0;s<Cn.length;s++)Dn(`rotate${Cn[s]}`,t,i,this.animationValues),Dn(`skew${Cn[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Mn;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=tn(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tn(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!me(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,u=t.y.scale*e.y;return 1===a&&1===u||(i+=`scale(${a}, ${u})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:u}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*u.origin}% 0`,o.animationValues?i.opacity=o===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=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const l in We){if(void 0===r[l])continue;const{correct:t,applyTo:e}=We[l],n="none"===i.transform?r[l]:t(r[l],o);if(e){const t=e.length;for(let s=0;s<t;s++)i[e[s]]=n}else i[l]=n}return this.options.layoutId&&(i.pointerEvents=o===this?tn(null==t?void 0: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(Un),this.root.sharedNodes.clear()}}}function Ln(t){t.updateLayout()}function Bn(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ce(t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Qt(i);i.min=e[t].min,i.max=i.min+s}
1):ti(s,n.layoutBox,e)&&ce(i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Qt(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)});const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Jt(r,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?Jt(a,t.applyTransform(i,!0),n.measuredBox):Jt(a,e,n.layoutBox);const u=!xn(r);let l=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r={x:{min:0,max:0},y:{min:0,max:0}};ne(r,n.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};ne(a,e,o.layoutBox),wn(r,a)||(l=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Fn(t){Vn&&En.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function On(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function In(t){t.clearSnapshot()}function Un(t){t.clearMeasurements()}function $n(t){t.isLayoutDirty=!1}function Wn(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Nn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Gn(t){t.resolveTargetDelta()}function Xn(t){t.calcProjection()}function Kn(t){t.resetSkewAndRotation()}function qn(t){t.removeLeadSnapshot()}function zn(t,e,n){t.translate=(0,Zt.k)(e.translate,0,n),t.scale=(0,Zt.k)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Yn(t,e,n,i){t.min=(0,Zt.k)(e.min,n.min,i),t.max=(0,Zt.k)(e.max,n.max,i)}function Hn(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Zn={duration:.45,ease:[.4,0,.1,1]},Qn=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),_n=Qn("applewebkit/")&&!Qn("chrome/")?Math.round:C.l;function Jn(t){t.min=_n(t.min),t.max=_n(t.max)}function ti(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Sn(e),s=Sn(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function ei(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const ni=jn({attachResizeListener:(t,e)=>Ft(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ii={current:void 0},si=jn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ii.current){const t=new ni({});t.mount(window),t.setOptions({layoutScroll:!0}),ii.current=t}return ii.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),oi={pan:{Feature:class extends jt{constructor(){super(...arguments),this.removePointerDownListener=C.l}onPointerDown(t){this.session=new Wt(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ve(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:De(t),onStart:De(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&A.Gt.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=It(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends jt{constructor(t){super(t),this.removeGroupControls=C.l,this.removeListeners=C.l,this.controls=new Me(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||C.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:si,MeasureLayout:qe}};function ri(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&A.Gt.postRender(()=>s(e,Ot(e)))}function ai(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&A.Gt.postRender(()=>s(e,Ot(e)))}const ui=new WeakMap,li=new WeakMap,ci=t=>{const e=ui.get(t.target);e&&e(t)}
1,hi=t=>{t.forEach(ci)};function di(t,e,n){const i=function({root:t,...e}){const n=t||document;li.has(n)||li.set(n,{});const i=li.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(hi,{root:t,...e})),i[s]}(e);return ui.set(t,n),i.observe(t),()=>{ui.delete(t),i.unobserve(t)}}const pi={some:0,all:1};const mi={inView:{Feature:class extends jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:pi[i]};return di(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends jt{mount(){const{current:t}=this.node;t&&(this.unmount=(0,p.c$)(t,t=>(ai(this.node,t,"Start"),(t,{success:e})=>ai(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,$t.F)(Ft(this.node.current,"focus",()=>this.onFocus()),Ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends jt{mount(){const{current:t}=this.node;t&&(this.unmount=(0,p.PT)(t,t=>(ri(this.node,t,"Start"),t=>ri(this.node,t,"End"))))}unmount(){}}}},fi={layout:{ProjectionNode:si,MeasureLayout:qe}},vi=(0,je.createContext)({strict:!1});var gi=n(5446);const yi=(0,je.createContext)({});function xi(t){return s(t.animate)||d.some(e=>a(t[e]))}function Pi(t){return Boolean(xi(t)||t.variants)}function Ti(t){const{initial:e,animate:n}=function(t,e){if(xi(t)){const{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,je.useContext)(yi));return(0,je.useMemo)(()=>({initial:e,animate:n}),[wi(e),wi(n)])}function wi(t){return Array.isArray(t)?t.join(" "):t}var Si=n(8288);const bi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ai={};for(const Es in bi)Ai[Es]={isEnabled:t=>bi[Es].some(e=>!!t[e])};const Ei=Symbol.for("motionComponentSymbol");function Vi(t,e,n){return(0,je.useCallback)(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):Yt(n)&&(n.current=i))},[e])}var Ci=n(6719),Mi=n(5128);function ki(t,e,n,i,s){var o,r;const{visualElement:a}=(0,je.useContext)(yi),u=(0,je.useContext)(vi),l=(0,je.useContext)(Ci.t),c=(0,je.useContext)(gi.Q).reducedMotion,h=(0,je.useRef)(null);i=i||u.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));const d=h.current,p=(0,je.useContext)(Fe);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:u,layoutRoot:l}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Di(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&Yt(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:u,layoutRoot:l})}(h.current,n,s,p);const m=(0,je.useRef)(!1);(0,je.useInsertionEffect)(()=>{d&&m.current&&d.update(n,l)});const f=n[w],v=(0,je.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return(0,Mi.E)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ge.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,je.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),d}function Di(t){if(t)return!1!==t.options.allowProjection?t.projection:Di(t.parent)}function Ri({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var o,r;function a(t,o){let r;const a={...(0,je.useContext)(gi.Q),...t,layoutId:ji(t)},{isStatic:u}=a,l=Ti(t),c=i(t,u);if(!u&&Si.B){!function(){(0,je.useContext)(vi).strict;0}();const t=function(t){const{drag:e,layout:n}=Ai;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
1(a);r=t.MeasureLayout,l.visualElement=ki(s,c,a,e,t.ProjectionNode)}return(0,Re.jsxs)(yi.Provider,{value:l,children:[r&&l.visualElement?(0,Re.jsx)(r,{visualElement:l.visualElement,...a}):null,n(s,t,Vi(c,l.visualElement,o),c,u,l.visualElement)]})}t&&function(t){for(const e in t)Ai[e]={...Ai[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof s?s:`create(${null!==(r=null!==(o=s.displayName)&&void 0!==o?o:s.name)&&void 0!==r?r:""})`}`;const u=(0,je.forwardRef)(a);return u[Ei]=s,u}function ji({layoutId:t}){const e=(0,je.useContext)(Be.L).id;return e&&void 0!==t?e+"-"+t:t}const Li=["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 Bi(t){return"string"==typeof t&&!t.includes("-")&&!!(Li.indexOf(t)>-1||/[A-Z]/u.test(t))}var Fi=n(8601);const Oi=t=>(e,n)=>{const i=(0,je.useContext)(yi),s=(0,je.useContext)(Ci.t),o=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:Ii(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(t,e,i,s);return n?o():(0,Fi.M)(o)};function Ii(t,e,n,i){const o={},r=i(t,{});for(const s in r)o[s]=tn(r[s]);let{initial:a,animate:u}=t;const c=xi(t),h=Pi(t);e&&h&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===u&&(u=e.animate));let d=!!n&&!1===n.initial;d=d||!1===a;const p=d?u:a;if(p&&"boolean"!=typeof p&&!s(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n<e.length;n++){const i=l(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(o[i]=t)}for(const i in t)o[i]=t[i]}}}return o}const Ui=(t,e)=>e&&"number"==typeof t?e.transform(t):t,$i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wi=m.U.length;function Ni(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const u in e){const t=e[u];if(m.f.has(u))r=!0;else if((0,tt.j)(u))s[u]=t;else{const e=Ui(t,q[u]);u.startsWith("origin")?(a=!0,o[u]=e):i[u]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<Wi;o++){const r=m.U[o],a=t[r];if(void 0===a)continue;let u=!0;if(u="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!u||n){const t=Ui(a,q[r]);u||(s=!1,i+=`${$i[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Gi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xi={offset:"strokeDashoffset",array:"strokeDasharray"};function Ki(t,e,n){return"string"==typeof t?t:N.px.transform(e+n*t)}function qi(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:u=0,...l},c,h){if(Ni(t,l,h),c)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!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Ki(e,t.x,t.width)} ${Ki(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Gi:Xi;t[o.offset]=N.px.transform(-i);const r=N.px.transform(e),a=N.px.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,u,!1)}const zi=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Yi=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Hi=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Zi(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const Qi=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 _i(t,e,n,i){Zi(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Qi.has(s)?s:T(s),e.attrs[s])}function Ji(t,{layout:e,layoutId:n}){return m.f.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!We[t]||"opacity"===t)}function ts(t,e,n){var i;const{style:s}=t,o={};for(const r in s)((0,x.S)(s[r])||e.style&&(0,x.S)(e.style[r])||Ji(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function es(t,e,n){const i=ts(t,e,n);for(const s in t)if((0,x.S)(t[s])||(0,x.S)(e[s])){i[-1!==m.U.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s
1]=t[s]}return i}const ns=["x","y","width","height","cx","cy","r"],is={useVisualState:Oi({scrapeMotionValuesFromProps:es,createRenderState:Yi,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const a in s)if(m.f.has(a)){o=!0;break}if(!o)return;let r=!e;if(e)for(let a=0;a<ns.length;a++){const n=ns[a];t[n]!==e[n]&&(r=!0)}r&&A.Gt.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),A.Gt.render(()=>{qi(i,s,Hi(n.tagName),t.transformTemplate),_i(n,i)})})}})},ss={useVisualState:Oi({scrapeMotionValuesFromProps:ts,createRenderState:zi})};function os(t,e,n){for(const i in e)(0,x.S)(e[i])||Ji(i,n)||(t[i]=e[i])}function rs(t,e){const n={};return os(n,t.style||{},t),Object.assign(n,function({transformTemplate:t},e){return(0,je.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Ni(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),n}function as(t,e){const n={},i=rs(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const us=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ls(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||us.has(t)}let cs=t=>!ls(t);try{(hs=require("@emotion/is-prop-valid").default)&&(cs=t=>t.startsWith("on")?!ls(t):hs(t))}catch(As){}var hs;function ds(t,e,n,i){const s=(0,je.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return qi(n,e,Hi(i),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){const e={};os(e,t.style,t),s.style={...e,...s.style}}return s}function ps(t=!1){return(e,n,i,{latestValues:s},o)=>{const r=(Bi(e)?ds:as)(n,s,o,e),a=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(cs(s)||!0===n&&ls(s)||!e&&!ls(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),u=e!==je.Fragment?{...a,...r,ref:i}:{},{children:l}=n,c=(0,je.useMemo)(()=>(0,x.S)(l)?l.get():l,[l]);return(0,je.createElement)(e,{...u,children:c})}}function ms(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return Ri({...Bi(n)?is:ss,preloadedFeatures:t,useRender:ps(i),createVisualElement:e,Component:n})}}const fs={current:null},vs={current:!1};const gs=[...ot,$.y,L.f],ys=new WeakMap;const xs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ps{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Q.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=Ye.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,A.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:u,onUpdate:l}=o;this.onUpdate=l,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=xi(e),this.isVariantNode=Pi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in h){const t=h[d];void 0!==a[d]&&(0,x.S)(t)&&t.set(a[d],!1)}}mount(t){this.current=t,ys.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),vs.current||function(){if(vs.current=!0,Si.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>fs.current=t.matches;t.addListener(e),e()}else fs.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||fs.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ys.delete(this.current),this.projection&&this.projection.unmount(),(0,A.WG)(this.notifyUpdate),(0,A.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=m.f.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&A.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Ai){const e=Ai[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,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}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<xs.length;n++){const e=xs[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if((0,x.S)(s))t.addValue(i,s);else if((0,x.S)(o))t.addValue(i,(0,g.OQ)(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,(0,g.OQ)(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,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);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=(0,g.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&(J(i)||R(i))?i=parseFloat(i):(s=i,!gs.find(st(s))&&L.f.test(e)&&(i=H(t,e))),this.setBaseTarget(t,(0,x.S)(i)?i.get():i)),(0,x.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=l(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,x.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Je.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ts extends Ps{constructor(){super(...arguments),this.KeyframeResolver=at}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,x.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class ws extends Ts{constructor(){super(...arguments),this.type="html",this.renderInstance=Zi}readValueFromInstance(t,e){if(m.f.has(e)){const t=Y(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=((0,tt.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ee(t,e)}build(t,e,n){Ni(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ts(t,e,n)}}class Ss extends Ts{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.f.has(e)){const t=Y(e);return t&&t.default||0}return e=Qi.has(e)?e:T(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return es(t,e,n)}
1build(t,e,n){qi(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){_i(t,e,0,i)}mount(t){this.isSVGTag=Hi(t.tagName),super.mount(t)}}const bs=i(ms({...Bt,...mi,...oi,...fi},(t,e)=>Bi(t)?new Ss(e):new ws(e,{allowProjection:t!==je.Fragment})))},9473:function(t,e,n){n.d(e,{L:function(){return i}});const i=(0,n(6540).createContext)({})},9652:function(t,e,n){n.d(e,{d:function(){return i}});const i={current:!1}},9713:function(t,e,n){n.d(e,{k:function(){return i}});const i=(t,e,n)=>t+(e-t)*n},9896:function(t,e,n){n.d(e,{S:function(){return i}});const i=t=>Boolean(t&&t.getVelocity)}}]);
2//# sourceMappingURL=63afd9678e2f76caab9e142deda17ff7abeb147a-0ef3a11ca5fbe5e9121e.js.map

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