"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[323],{10692:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},73968:function(t,e,i){i.d(e,{D2:function(){return m},YY:function(){return l},am:function(){return p},o2:function(){return u},q2:function(){return s}});var n=i(28856),r=i(75893);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function u(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function l(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let l=0;l<a;l++){o=(s=i[l]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&m(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,u(t,o)),n&&(0,r.ud)(s.latestValues)&&m(t,s.latestValues))}e.x=h(e.x),e.y=h(e.y)}}function h(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function p(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,[i,r,s]){let o=void 0!==e[s]?e[s]:.5,u=(0,n.t)(t.min,t.max,o);a(t,e[i],e[r],u,e.scale)}let d=["x","scaleX","originX"],f=["y","scaleY","originY"];function m(t,e){c(t.x,e,d),c(t.y,e,f)}},47720:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},75893:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},85151:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(10692),r=i(73968);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},94555:function(t,e,i){i.d(e,{J:function(){return E}});var n=i(47720),r=i(88480),s=i(71845);let o={current:null},a={current:!1};var u=i(37541),l=i(23770),h=i(98167),p=i(11094),c=i(71504),d=i(23740),f=i(44542),m=i(82320),v=i(42124),V=i(3865),g=i(83435),y=i(25425),x=i(10639),C=i(98994),b=i(67237),P=i(88879),S=i(33021),M=i(59730);let w=[...S.$,b.$,P.P],T=t=>w.find((0,M.l)(t));var F=i(91146),j=i(53763);let B=Object.keys(v.A),R=B.length,N=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],I=V.V.length;class A{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.resolveKeyframes=(t,e,i,n)=>new this.KeyframeResolver(t,e,i,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=y.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>j.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,d.G)(e),this.isVariantNode=(0,d.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&(0,p.i)(e)&&(e.set(a[t],!1),(0,h.L)(l)&&l.add(t))}}mount(t){this.current=t,g.R.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.forEach((t,e)=>this.bindToMotionValue(e,t)),a.current||function(){if(a.current=!0,s.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>o.current=t.matches;t.addListener(e),e()}else o.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||o.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;for(let t in g.R.delete(this.current),this.projection&&this.projection.unmount(),(0,j.Pn)(this.notifyUpdate),(0,j.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let e in this.features)null===(t=this.features[e])||void 0===t||t.unmount();this.current=null}bindToMotionValue(t,e){let i=c.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&j.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),r(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,n,s){let o,a;for(let t=0;t<R;t++){let i=B[t],{isEnabled:n,Feature:r,ProjectionNode:s,MeasureLayout:u}=v.A[i];s&&(o=s),n(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),u&&(a=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(this.parent));let{layoutId:t,layout:i,drag:n,dragConstraints:a,layoutScroll:u,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!n||a&&(0,r.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:s,layoutScroll:u,layoutRoot:l})}return a}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,n.dO)()}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 e=0;e<N.length;e++){let i=N[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){let{willChange:n}=e;for(let r in e){let s=e[r],o=i[r];if((0,p.i)(s))t.addValue(r,s),(0,h.L)(n)&&n.add(r);else if((0,p.i)(o))t.addValue(r,(0,l.BX)(s,{owner:t})),(0,h.L)(n)&&n.remove(r);else if(o!==s){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,l.BX)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<I;t++){let i=V.V[t],n=this.props[i];((0,f.$)(n)||!1===n)&&(e[i]=n)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let 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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,l.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,x.P)(n)||(0,C.W)(n))?n=parseFloat(n):!T(n)&&P.P.test(e)&&(n=(0,F.T)(t,e)),this.setBaseTarget(t,(0,p.i)(n)?n.get():n)),(0,p.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,m.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,p.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new u.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var L=i(96260);class E extends A{constructor(){super(...arguments),this.KeyframeResolver=L.s}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:i}){delete e[t],delete i[t]}}},17661:function(t,e,i){i.d(e,{W:function(){return c}});var n=i(99424),r=i(53895),s=i(71504),o=i(43551),a=i(87138),u=i(42690),l=i(85151),h=i(94555),p=i(11094);class c extends h.J{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(s.G.has(e)){let t=(0,u.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,r.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,l.J)(t,e)}build(t,e,i,r){(0,n.r)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.U)(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,p.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,n){(0,a.N)(t,e,i,n)}}},83435:function(t,e,i){i.d(e,{R:function(){return n}});let n=new WeakMap},17510:function(t,e,i){i.d(e,{e:function(){return d}});var n=i(87908),r=i(94555),s=i(45850),o=i(70470),a=i(19813),u=i(71504),l=i(91809),h=i(42690),p=i(47720),c=i(49957);class d extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(u.G.has(e)){let t=(0,h.A)(e);return t&&t.default||0}return e=a.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,p.dO)()}scrapeMotionValuesFromProps(t,e,i){return(0,n.U)(t,e,i)}build(t,e,i,n){(0,s.i)(t,e,i,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,i,n){(0,l.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,c.a)(t.tagName),super.mount(t)}}}}]);