From 1ef6a9f730dd5664d0c8fb9c26f6f626ae12b75f Mon Sep 17 00:00:00 2001 From: Kakabay <2kakabayashyrberdyew@gmail.com> Date: Thu, 30 Jan 2025 16:42:25 +0500 Subject: [PATCH] build --- dist/assets/{index-BP2sU5bt.js => index-D0qfKxFm.js} | 2 +- dist/contacts/{ => home}/location.svg | 0 dist/contacts/{ => home}/mail.svg | 0 dist/contacts/home/mobile.svg | 3 +++ dist/index.html | 2 +- public/contacts/{ => home}/location.svg | 0 public/contacts/{ => home}/mail.svg | 0 public/contacts/home/mobile.svg | 3 +++ src/components/shared/home/home-time.tsx | 6 +++--- 9 files changed, 11 insertions(+), 5 deletions(-) rename dist/assets/{index-BP2sU5bt.js => index-D0qfKxFm.js} (92%) rename dist/contacts/{ => home}/location.svg (100%) rename dist/contacts/{ => home}/mail.svg (100%) create mode 100644 dist/contacts/home/mobile.svg rename public/contacts/{ => home}/location.svg (100%) rename public/contacts/{ => home}/mail.svg (100%) create mode 100644 public/contacts/home/mobile.svg diff --git a/dist/assets/index-BP2sU5bt.js b/dist/assets/index-D0qfKxFm.js similarity index 92% rename from dist/assets/index-BP2sU5bt.js rename to dist/assets/index-D0qfKxFm.js index da4a957..7b2e9ac 100644 --- a/dist/assets/index-BP2sU5bt.js +++ b/dist/assets/index-D0qfKxFm.js @@ -165,7 +165,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do ${v}px !important; top: ${h}px !important; } - `),()=>{document.head.removeChild(b)}},[t]),x.jsx(jP,{isPresent:t,childRef:o,sizeRef:a,children:_.cloneElement(e,{ref:o})})}const LP=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:u,anchorX:c})=>{const f=Np(MP),h=_.useId(),m=_.useCallback(v=>{f.set(v,!0);for(const b of f.values())if(!b)return;s&&s()},[f,s]),g=_.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:m,register:v=>(f.set(v,!1),()=>f.delete(v))}),a?[Math.random(),m]:[n,m]);return _.useMemo(()=>{f.forEach((v,b)=>f.set(b,!1))},[n]),_.useEffect(()=>{!n&&!f.size&&s&&s()},[n]),u==="popLayout"&&(e=x.jsx(DP,{isPresent:n,anchorX:c,children:e})),x.jsx(Mc.Provider,{value:g,children:e})};function MP(){return new Map}function tS(e=!0){const t=_.useContext(Mc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=t,a=_.useId();_.useEffect(()=>{e&&o(a)},[e]);const u=_.useCallback(()=>e&&s&&s(a),[a,s,e]);return!n&&s?[!1,u]:[!0]}const Wu=e=>e.key||"";function Hv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const jp=typeof window<"u",nS=jp?_.useLayoutEffect:_.useEffect,Oa=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:u=!1,anchorX:c="left"})=>{const[f,h]=tS(u),m=_.useMemo(()=>Hv(e),[e]),g=u&&!f?[]:m.map(Wu),v=_.useRef(!0),b=_.useRef(m),w=Np(()=>new Map),[S,C]=_.useState(m),[E,R]=_.useState(m);nS(()=>{v.current=!1,b.current=m;for(let T=0;T{const F=Wu(T),z=u&&!f?!1:m===E||g.includes(F),O=()=>{if(w.has(F))w.set(F,!0);else return;let q=!0;w.forEach(te=>{te||(q=!1)}),q&&(I==null||I(),R(b.current),u&&(h==null||h()),s&&s())};return x.jsx(LP,{isPresent:z,initial:!v.current||n?void 0:!1,custom:z?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:z?void 0:O,anchorX:c,children:T},F)})})},Hn=e=>e;let Nh=Hn;const OP={skipAnimations:!1,useManualTiming:!1};function FP(e){let t=new Set,n=new Set,s=!1,o=!1;const a=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(f.schedule(h),e()),h(u)}const f={schedule:(h,m=!1,g=!1)=>{const b=g&&s?t:n;return m&&a.add(h),b.has(h)||b.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(u=h,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(c),t.clear(),s=!1,o&&(o=!1,f.process(h))}};return f}const Hu=["read","resolveKeyframes","update","preRender","render","postRender"],IP=40;function rS(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,u=Hu.reduce((E,R)=>(E[R]=FP(a),E),{}),{read:c,resolveKeyframes:f,update:h,preRender:m,render:g,postRender:v}=u,b=()=>{const E=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(E-o.timestamp,IP),1),o.timestamp=E,o.isProcessing=!0,c.process(o),f.process(o),h.process(o),m.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(b))},w=()=>{n=!0,s=!0,o.isProcessing||e(b)};return{schedule:Hu.reduce((E,R)=>{const N=u[R];return E[R]=(I,T=!1,F=!1)=>(n||w(),N.schedule(I,T,F)),E},{}),cancel:E=>{for(let R=0;RGv[e].some(n=>!!t[n])};function VP(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const BP=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 dc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BP.has(e)}let iS=e=>!dc(e);function zP(e){e&&(iS=t=>t.startsWith("on")?!dc(t):e(t))}try{zP(require("@emotion/is-prop-valid").default)}catch{}function UP(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(iS(o)||n===!0&&dc(o)||!t&&!dc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function $P(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Oc=_.createContext({});function Ga(e){return typeof e=="string"||Array.isArray(e)}function Fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Dp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lp=["initial",...Dp];function Ic(e){return Fc(e.animate)||Lp.some(t=>Ga(e[t]))}function oS(e){return!!(Ic(e)||e.variants)}function WP(e,t){if(Ic(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Ga(n)?n:void 0,animate:Ga(s)?s:void 0}}return e.inherit!==!1?t:{}}function HP(e){const{initial:t,animate:n}=WP(e,_.useContext(Oc));return _.useMemo(()=>({initial:t,animate:n}),[Zv(t),Zv(n)])}function Zv(e){return Array.isArray(e)?e.join(" "):e}const GP=Symbol.for("motionComponentSymbol");function xo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZP(e,t,n){return _.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):xo(n)&&(n.current=s))},[t])}const Mp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),KP="framerAppearId",aS="data-"+Mp(KP),{schedule:Op,cancel:lI}=rS(queueMicrotask,!1),lS=_.createContext({});function qP(e,t,n,s,o){var a,u;const{visualElement:c}=_.useContext(Oc),f=_.useContext(sS),h=_.useContext(Mc),m=_.useContext(Ap).reducedMotion,g=_.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,b=_.useContext(lS);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&YP(g.current,n,o,b);const w=_.useRef(!1);_.useInsertionEffect(()=>{v&&w.current&&v.update(n,h)});const S=n[aS],C=_.useRef(!!S&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,S))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,S)));return nS(()=>{v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Op.render(v.render),C.current&&v.animationState&&v.animationState.animateChanges())}),_.useEffect(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,S)}),C.current=!1))}),v}function YP(e,t,n,s){const{layoutId:o,layout:a,drag:u,dragConstraints:c,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:uS(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!u||c&&xo(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:h})}function uS(e){if(e)return e.options.allowProjection!==!1?e.projection:uS(e.parent)}function XP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var a,u;e&&VP(e);function c(h,m){let g;const v={..._.useContext(Ap),...h,layoutId:QP(h)},{isStatic:b}=v,w=HP(h),S=s(h,b);if(!b&&jp){JP();const C=eN(v);g=C.MeasureLayout,w.visualElement=qP(o,S,v,t,C.ProjectionNode)}return x.jsxs(Oc.Provider,{value:w,children:[g&&w.visualElement?x.jsx(g,{visualElement:w.visualElement,...v}):null,n(o,h,ZP(S,w.visualElement,m),S,b,w.visualElement)]})}c.displayName=`motion.${typeof o=="string"?o:`create(${(u=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&u!==void 0?u:""})`}`;const f=_.forwardRef(c);return f[GP]=o,f}function QP({layoutId:e}){const t=_.useContext(Pp).id;return t&&e!==void 0?t+"-"+e:e}function JP(e,t){_.useContext(sS).strict}function eN(e){const{drag:t,layout:n}=Ro;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const tN=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(tN.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kv(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ip(e,t,n,s){if(typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}return t}const Ah=e=>Array.isArray(e),nN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rN=e=>Ah(e)?e[e.length-1]||0:e,mn=e=>!!(e&&e.getVelocity);function ec(e){const t=mn(e)?e.get():e;return nN(t)?t.toValue():t}function sN({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,o,a){const u={latestValues:iN(s,o,a,e),renderState:t()};return n&&(u.onMount=c=>n({props:s,current:c,...u}),u.onUpdate=c=>n(c)),u}const cS=e=>(t,n)=>{const s=_.useContext(Oc),o=_.useContext(Mc),a=()=>sN(e,t,s,o);return n?a():Np(a)};function iN(e,t,n,s){const o={},a=s(e,{});for(const v in a)o[v]=ec(a[v]);let{initial:u,animate:c}=e;const f=Ic(e),h=oS(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const g=m?c:u;if(g&&typeof g!="boolean"&&!Fc(g)){const v=Array.isArray(g)?g:[g];for(let b=0;bt=>typeof t=="string"&&t.startsWith(e),Vp=dS("--"),oN=dS("var(--"),Bp=e=>oN(e)?aN.test(e.split("/*")[0].trim()):!1,aN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hs=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Za={...Oo,transform:e=>hs(0,1,e)},Gu={...Oo,default:1},bl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ws=bl("deg"),Vr=bl("%"),ze=bl("px"),lN=bl("vh"),uN=bl("vw"),qv={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},cN={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze},dN={rotate:Ws,rotateX:Ws,rotateY:Ws,rotateZ:Ws,scale:Gu,scaleX:Gu,scaleY:Gu,scaleZ:Gu,skew:Ws,skewX:Ws,skewY:Ws,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:Za,originX:qv,originY:qv,originZ:ze},Yv={...Oo,transform:Math.round},zp={...cN,...dN,zIndex:Yv,size:ze,fillOpacity:Za,strokeOpacity:Za,numOctaves:Yv},fN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hN=Mo.length;function pN(e,t,n){let s="",o=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}}),hS=()=>({...Wp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pS(e,{style:t,vars:n},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const a in n)e.style.setProperty(a,n[a])}const mS=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 gS(e,t,n,s){pS(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(mS.has(o)?o:Mp(o),t.attrs[o])}const Ka={};function xN(e){for(const t in e)Ka[t]=e[t],Vp(t)&&(Ka[t].isCSSVariable=!0)}function yS(e,{layout:t,layoutId:n}){return Vi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ka[e]||e==="opacity")}function Gp(e,t,n){var s;const{style:o}=e,a={};for(const u in o)(mn(o[u])||t.style&&mn(t.style[u])||yS(u,e)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(a[u]=o[u]);return a}function vS(e,t,n){const s=Gp(e,t,n);for(const o in e)if(mn(e[o])||mn(t[o])){const a=Mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[a]=e[o]}return s}function wN(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Qv=["x","y","width","height","cx","cy","r"],SN={useVisualState:cS({scrapeMotionValuesFromProps:vS,createRenderState:hS,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in o)if(Vi.has(c)){a=!0;break}}if(!a)return;let u=!t;if(t)for(let c=0;c{wN(n,s),kt.render(()=>{$p(s,o,Hp(n.tagName),e.transformTemplate),gS(n,s)})})}})},bN={useVisualState:cS({scrapeMotionValuesFromProps:Gp,createRenderState:Wp})};function xS(e,t,n){for(const s in t)!mn(t[s])&&!yS(s,n)&&(e[s]=t[s])}function _N({transformTemplate:e},t){return _.useMemo(()=>{const n=Wp();return Up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EN(e,t){const n=e.style||{},s={};return xS(s,n,e),Object.assign(s,_N(e,t)),s}function CN(e,t){const n={},s=EN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function kN(e,t,n,s){const o=_.useMemo(()=>{const a=hS();return $p(a,t,Hp(s),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};xS(a,e.style,e),o.style={...a,...o.style}}return o}function TN(e=!1){return(n,s,o,{latestValues:a},u)=>{const f=(Fp(n)?kN:CN)(s,a,u,n),h=UP(s,typeof n=="string",e),m=n!==_.Fragment?{...h,...f,ref:o}:{},{children:g}=s,v=_.useMemo(()=>mn(g)?g.get():g,[g]);return _.createElement(n,{...m,children:v})}}function RN(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Fp(s)?SN:bN,preloadedFeatures:e,useRender:TN(o),createVisualElement:t,Component:s};return XP(u)}}function wS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(tc===void 0&&Br.set(rn.isProcessing||OP.useManualTiming?rn.timestamp:performance.now()),tc),set:e=>{tc=e,queueMicrotask(PN)}};function Kp(e,t){e.indexOf(t)===-1&&e.push(t)}function qp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yp{constructor(){this.subscriptions=[]}add(t){return Kp(this.subscriptions,t),()=>qp(this.subscriptions,t)}notify(t,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,s);else for(let a=0;a!isNaN(parseFloat(e));class AN{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const a=Br.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yp);const s=this.events[t].add(n);return t==="change"?()=>{s(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Jv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jv);return bS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 qa(e,t){return new AN(e,t)}function jN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qa(n))}function DN(e,t){const n=Vc(e,t);let{transitionEnd:s={},transition:o={},...a}=n||{};a={...a,...s};for(const u in a){const c=rN(a[u]);jN(e,u,c)}}function LN(e){return!!(mn(e)&&e.add)}function jh(e,t){const n=e.getValue("willChange");if(LN(n))return n.add(t)}function _S(e){return e.props[aS]}function Xp(e){let t;return()=>(t===void 0&&(t=e()),t)}const MN=Xp(()=>window.ScrollTimeline!==void 0);class ON{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,n){for(let s=0;s{if(MN()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{s.forEach((o,a)=>{o&&o(),this.animations[a].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 n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class FN extends ON{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const cs=e=>e*1e3,ds=e=>e/1e3;function Qp(e){return typeof e=="function"}function ex(e,t){e.timeline=t,e.onfinish=null}const Jp=e=>Array.isArray(e)&&typeof e[0]=="number",IN={linearEasing:void 0};function VN(e,t){const n=Xp(e);return()=>{var s;return(s=IN[t])!==null&&s!==void 0?s:n()}}const fc=VN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Po=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},ES=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let a=0;a`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Dh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function kS(e,t){if(e)return typeof e=="function"&&fc()?ES(e,t):Jp(e)?Na(e):Array.isArray(e)?e.map(n=>kS(n,t)||Dh.easeOut):Dh[e]}const TS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BN=1e-7,zN=12;function UN(e,t,n,s,o){let a,u,c=0;do u=t+(n-t)/2,a=TS(u,s,o)-e,a>0?n=u:t=u;while(Math.abs(a)>BN&&++cUN(a,0,1,e,n);return a=>a===0||a===1?a:TS(o(a),t,s)}const RS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PS=e=>t=>1-e(1-t),NS=_l(.33,1.53,.69,.99),em=PS(NS),AS=RS(em),jS=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),tm=e=>1-Math.sin(Math.acos(e)),DS=PS(tm),LS=RS(tm),MS=e=>/^0[^.\s]+$/u.test(e);function $N(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||MS(e):!0}const Fa=e=>Math.round(e*1e5)/1e5,nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WN(e){return e==null}const HN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rm=(e,t)=>n=>!!(typeof n=="string"&&HN.test(n)&&n.startsWith(e)||t&&!WN(n)&&Object.prototype.hasOwnProperty.call(n,t)),OS=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,a,u,c]=s.match(nm);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(u),alpha:c!==void 0?parseFloat(c):1}},GN=e=>hs(0,255,e),nh={...Oo,transform:e=>Math.round(GN(e))},_i={test:rm("rgb","red"),parse:OS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+nh.transform(e)+", "+nh.transform(t)+", "+nh.transform(n)+", "+Fa(Za.transform(s))+")"};function ZN(e){let t="",n="",s="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Lh={test:rm("#"),parse:ZN,transform:_i.transform},wo={test:rm("hsl","hue"),parse:OS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Fa(t))+", "+Vr.transform(Fa(n))+", "+Fa(Za.transform(s))+")"},hn={test:e=>_i.test(e)||Lh.test(e)||wo.test(e),parse:e=>_i.test(e)?_i.parse(e):wo.test(e)?wo.parse(e):Lh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_i.transform(e):wo.transform(e)},KN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KN))===null||n===void 0?void 0:n.length)||0)>0}const FS="number",IS="color",YN="var",XN="var(",tx="${}",QN=/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 Ya(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let a=0;const c=t.replace(QN,f=>(hn.test(f)?(s.color.push(a),o.push(IS),n.push(hn.parse(f))):f.startsWith(XN)?(s.var.push(a),o.push(YN),n.push(f)):(s.number.push(a),o.push(FS),n.push(parseFloat(f))),++a,tx)).split(tx);return{values:n,split:c,indexes:s,types:o}}function VS(e){return Ya(e).values}function BS(e){const{split:t,types:n}=Ya(e),s=t.length;return o=>{let a="";for(let u=0;utypeof e=="number"?0:e;function eA(e){const t=VS(e);return BS(e)(t.map(JN))}const Ys={test:qN,parse:VS,createTransformer:BS,getAnimatableNone:eA},tA=new Set(["brightness","contrast","saturate","opacity"]);function nA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(nm)||[];if(!s)return e;const o=n.replace(s,"");let a=tA.has(t)?1:0;return s!==n&&(a*=100),t+"("+a+o+")"}const rA=/\b([a-z-]*)\(.*?\)/gu,Mh={...Ys,getAnimatableNone:e=>{const t=e.match(rA);return t?t.map(nA).join(" "):e}},sA={...zp,color:hn,backgroundColor:hn,outlineColor:hn,fill:hn,stroke:hn,borderColor:hn,borderTopColor:hn,borderRightColor:hn,borderBottomColor:hn,borderLeftColor:hn,filter:Mh,WebkitFilter:Mh},sm=e=>sA[e];function zS(e,t){let n=sm(e);return n!==Mh&&(n=Ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iA=new Set(["auto","none","0"]);function oA(e,t,n){let s=0,o;for(;se===Oo||e===ze,rx=(e,t)=>parseFloat(e.split(", ")[t]),sx=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return rx(o[1],t);{const a=s.match(/^matrix\((.+)\)$/u);return a?rx(a[1],e):0}},aA=new Set(["x","y","z"]),lA=Mo.filter(e=>!aA.has(e));function uA(e){const t=[];return lA.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const No={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sx(4,13),y:sx(5,14)};No.translateX=No.x;No.translateY=No.y;const ki=new Set;let Oh=!1,Fh=!1;function US(){if(Fh){const e=Array.from(ki).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=uA(s);o.length&&(n.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([a,u])=>{var c;(c=s.getValue(a))===null||c===void 0||c.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fh=!1,Oh=!1,ki.forEach(e=>e.complete()),ki.clear()}function $S(){ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fh=!0)})}function cA(){$S(),US()}class im{constructor(t,n,s,o,a,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=o,this.element=a,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ki.add(this),Oh||(Oh=!0,kt.read($S),kt.resolveKeyframes(US))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:o}=this;for(let a=0;a/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fA(e){const t=dA.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function HS(e,t,n=1){const[s,o]=fA(e);if(!s)return;const a=window.getComputedStyle(t).getPropertyValue(s);if(a){const u=a.trim();return WS(u)?parseFloat(u):u}return Bp(o)?HS(o,t,n+1):o}const GS=e=>t=>t.test(e),hA={test:e=>e==="auto",parse:e=>e},ZS=[Oo,ze,Vr,Ws,uN,lN,hA],ix=e=>ZS.find(GS(e));class KS extends im{constructor(t,n,s,o,a){super(t,n,s,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const ox=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ys.test(e)||e==="0")&&!e.startsWith("url("));function pA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Bc(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(gA),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const yA=40;class qS{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:a,repeatType:u,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:a,delay:u,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!mA(t,s,o,a))if(u)this.options.duration=0;else{f&&f(Bc(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ih=2e4;function YS(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=Ih?1/0:t}const jt=(e,t,n)=>e+(t-e)*n;function rh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vA({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let o=0,a=0,u=0;if(!t)o=a=u=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;o=rh(f,c,e+1/3),a=rh(f,c,e),u=rh(f,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:s}}function hc(e,t){return n=>n>0?t:e}const sh=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},xA=[Lh,_i,wo],wA=e=>xA.find(t=>t.test(e));function ax(e){const t=wA(e);if(!t)return!1;let n=t.parse(e);return t===wo&&(n=vA(n)),n}const lx=(e,t)=>{const n=ax(e),s=ax(t);if(!n||!s)return hc(e,t);const o={...n};return a=>(o.red=sh(n.red,s.red,a),o.green=sh(n.green,s.green,a),o.blue=sh(n.blue,s.blue,a),o.alpha=jt(n.alpha,s.alpha,a),_i.transform(o))},SA=(e,t)=>n=>t(e(n)),El=(...e)=>e.reduce(SA),Vh=new Set(["none","hidden"]);function bA(e,t){return Vh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _A(e,t){return n=>jt(e,t,n)}function om(e){return typeof e=="number"?_A:typeof e=="string"?Bp(e)?hc:hn.test(e)?lx:kA:Array.isArray(e)?XS:typeof e=="object"?hn.test(e)?lx:EA:hc}function XS(e,t){const n=[...e],s=n.length,o=e.map((a,u)=>om(a)(a,t[u]));return a=>{for(let u=0;u{for(const a in s)n[a]=s[a](o);return n}}function CA(e,t){var n;const s=[],o={color:0,var:0,number:0};for(let a=0;a{const n=Ys.createTransformer(t),s=Ya(e),o=Ya(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Vh.has(e)&&!o.values.length||Vh.has(t)&&!s.values.length?bA(e,t):El(XS(CA(s,o),o.values),n):hc(e,t)};function QS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?jt(e,t,n):om(e)(e,t)}const TA=5;function JS(e,t,n){const s=Math.max(t-TA,0);return bS(n-e(s),t-s)}const Ft={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ux=.001;function RA({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:s=Ft.mass}){let o,a,u=1-t;u=hs(Ft.minDamping,Ft.maxDamping,u),e=hs(Ft.minDuration,Ft.maxDuration,ds(e)),u<1?(o=h=>{const m=h*u,g=m*e,v=m-n,b=Bh(h,u),w=Math.exp(-g);return ux-v/b*w},a=h=>{const g=h*u*e,v=g*n+n,b=Math.pow(u,2)*Math.pow(h,2)*e,w=Math.exp(-g),S=Bh(Math.pow(h,2),u);return(-o(h)+ux>0?-1:1)*((v-b)*w)/S}):(o=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-.001+m*g},a=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,f=NA(o,a,c);if(e=cs(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:u*2*Math.sqrt(s*h),duration:e}}}const PA=12;function NA(e,t,n){let s=n;for(let o=1;oe[n]!==void 0)}function DA(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!cx(e,jA)&&cx(e,AA))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,a=2*hs(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ft.mass,stiffness:o,damping:a}}else{const n=RA(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function eb(e=Ft.visualDuration,t=Ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=n;const a=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:h,mass:m,duration:g,velocity:v,isResolvedFromDuration:b}=DA({...n,velocity:-ds(n.velocity||0)}),w=v||0,S=h/(2*Math.sqrt(f*m)),C=u-a,E=ds(Math.sqrt(f/m)),R=Math.abs(C)<5;s||(s=R?Ft.restSpeed.granular:Ft.restSpeed.default),o||(o=R?Ft.restDelta.granular:Ft.restDelta.default);let N;if(S<1){const T=Bh(E,S);N=F=>{const z=Math.exp(-S*E*F);return u-z*((w+S*E*C)/T*Math.sin(T*F)+C*Math.cos(T*F))}}else if(S===1)N=T=>u-Math.exp(-E*T)*(C+(w+E*C)*T);else{const T=E*Math.sqrt(S*S-1);N=F=>{const z=Math.exp(-S*E*F),O=Math.min(T*F,300);return u-z*((w+S*E*C)*Math.sinh(O)+T*C*Math.cosh(O))/T}}const I={calculatedDuration:b&&g||null,next:T=>{const F=N(T);if(b)c.done=T>=g;else{let z=0;S<1&&(z=T===0?cs(w):JS(N,T,F));const O=Math.abs(z)<=s,q=Math.abs(u-F)<=o;c.done=O&&q}return c.value=c.done?u:F,c},toString:()=>{const T=Math.min(YS(I),Ih),F=ES(z=>I.next(T*z).value,T,30);return T+"ms "+F}};return I}function dx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:u,min:c,max:f,restDelta:h=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},b=O=>c!==void 0&&Of,w=O=>c===void 0?f:f===void 0||Math.abs(c-O)-S*Math.exp(-O/s),N=O=>E+R(O),I=O=>{const q=R(O),te=N(O);v.done=Math.abs(q)<=h,v.value=v.done?E:te};let T,F;const z=O=>{b(v.value)&&(T=O,F=eb({keyframes:[v.value,w(v.value)],velocity:JS(N,O,v.value),damping:o,stiffness:a,restDelta:h,restSpeed:m}))};return z(0),{calculatedDuration:null,next:O=>{let q=!1;return!F&&T===void 0&&(q=!0,I(O),z(O)),T!==void 0&&O>=T?F.next(O-T):(!q&&I(O),v)}}}const LA=_l(.42,0,1,1),MA=_l(0,0,.58,1),tb=_l(.42,0,.58,1),OA=e=>Array.isArray(e)&&typeof e[0]!="number",fx={linear:Hn,easeIn:LA,easeInOut:tb,easeOut:MA,circIn:tm,circInOut:LS,circOut:DS,backIn:em,backInOut:AS,backOut:NS,anticipate:jS},hx=e=>{if(Jp(e)){Nh(e.length===4);const[t,n,s,o]=e;return _l(t,n,s,o)}else if(typeof e=="string")return Nh(fx[e]!==void 0),fx[e];return e};function FA(e,t,n){const s=[],o=n||QS,a=e.length-1;for(let u=0;ut[0];if(a===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=FA(t,s,o),f=c.length,h=m=>{if(u&&m1)for(;gh(hs(e[0],e[a-1],m)):h}function VA(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Po(0,t,s);e.push(jt(n,1,o))}}function BA(e){const t=[0];return VA(t,e.length-1),t}function zA(e,t){return e.map(n=>n*t)}function UA(e,t){return e.map(()=>t||tb).splice(0,e.length-1)}function pc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=OA(s)?s.map(hx):hx(s),a={done:!1,value:t[0]},u=zA(n&&n.length===t.length?n:BA(t),e),c=IA(u,t,{ease:Array.isArray(o)?o:UA(t,o)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const $A=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kt.update(t,!0),stop:()=>qs(t),now:()=>rn.isProcessing?rn.timestamp:Br.now()}},WA={decay:dx,inertia:dx,tween:pc,keyframes:pc,spring:eb},HA=e=>e/100;class am extends qS{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,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:s,element:o,keyframes:a}=this.options,u=(o==null?void 0:o.KeyframeResolver)||im,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new u(a,c,n,s,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:u=0}=this.options,c=Qp(n)?n:WA[n]||pc;let f,h;c!==pc&&typeof t[0]!="number"&&(f=El(HA,QS(t[0],t[1])),t=[0,100]);const m=c({...this.options,keyframes:t});a==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=YS(m));const{calculatedDuration:g}=m,v=g+o,b=v*(s+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:u,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:g}=s;if(this.startTime===null)return a.next(0);const{delay:v,repeat:b,repeatType:w,repeatDelay:S,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const E=this.currentTime-v*(this.speed>=0?1:-1),R=this.speed>=0?E<0:E>m;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let N=this.currentTime,I=a;if(b){const O=Math.min(this.currentTime,m)/g;let q=Math.floor(O),te=O%1;!te&&O>=1&&(te=1),te===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(w==="reverse"?(te=1-te,S&&(te-=S/g)):w==="mirror"&&(I=u)),N=hs(0,1,te)*g}const T=R?{done:!1,value:f[0]}:I.next(N);c&&(T.value=c(T.value));let{done:F}=T;!R&&h!==null&&(F=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&o!==void 0&&(T.value=Bc(f,this.options,o)),C&&C(T.value),z&&this.finish(),T}get duration(){const{resolved:t}=this;return t?ds(t.calculatedDuration):0}get time(){return ds(this.currentTime)}set time(t){t=cs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$A,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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)}}const GA=new Set(["opacity","clipPath","filter","transform"]);function ZA(e,t,n,{delay:s=0,duration:o=300,repeat:a=0,repeatType:u="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=kS(c,o);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:s,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"})}const KA=Xp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mc=10,qA=2e4;function YA(e){return Qp(e.type)||e.type==="spring"||!CS(e.ease)}function XA(e,t){const n=new am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const o=[];let a=0;for(;!s.done&&athis.onKeyframesResolved(u,c),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:o,ease:a,type:u,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&fc()&&QA(a)&&(a=nb[a]),YA(this.options)){const{onComplete:g,onUpdate:v,motionValue:b,element:w,...S}=this.options,C=XA(t,S);t=C.keyframes,t.length===1&&(t[1]=t[0]),s=C.duration,o=C.times,a=C.ease,u="keyframes"}const m=ZA(c.owner.current,f,t,{...this.options,duration:s,times:o,ease:a});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(ex(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;c.set(Bc(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ds(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ds(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=cs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Hn;const{animation:s}=n;ex(s,t)}return Hn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:o,type:a,ease:u,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:g,element:v,...b}=this.options,w=new am({...b,keyframes:s,duration:o,type:a,ease:u,times:c,isGenerator:!0}),S=cs(this.time);h.setWithVelocity(w.sample(S-mc).value,w.sample(S).value,mc)}const{onStop:f}=this.options;f&&f(),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:n,name:s,repeatDelay:o,repeatType:a,damping:u,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return KA()&&s&&GA.has(s)&&!f&&!h&&!o&&a!=="mirror"&&u!==0&&c!=="inertia"}}const JA={type:"spring",stiffness:500,damping:25,restSpeed:10},ej=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tj={type:"keyframes",duration:.8},nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rj=(e,{keyframes:t})=>t.length>2?tj:Vi.has(e)?e.startsWith("scale")?ej(t[1]):JA:nj;function sj({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:a,repeatType:u,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const lm=(e,t,n,s={},o,a)=>u=>{const c=Zp(s,e)||{},f=c.delay||s.delay||0;let{elapsed:h=0}=s;h=h-cs(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};sj(c)||(m={...m,...rj(e,m)}),m.duration&&(m.duration=cs(m.duration)),m.repeatDelay&&(m.repeatDelay=cs(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=Bc(m.keyframes,c);if(v!==void 0)return kt.update(()=>{m.onUpdate(v),m.onComplete()}),new FN([])}return!a&&px.supports(m)?new px(m):new am(m)};function ij({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function rb(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var a;let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;s&&(u=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),b=f[g];if(b===void 0||m&&ij(m,g))continue;const w={delay:n,...Zp(u||{},g)};let S=!1;if(window.MotionHandoffAnimation){const E=_S(e);if(E){const R=window.MotionHandoffAnimation(E,g,kt);R!==null&&(w.startTime=R,S=!0)}}jh(e,g),v.start(lm(g,v,b,e.shouldReduceMotion&&SS.has(g)?{type:!1}:w,e,S));const C=v.animation;C&&h.push(C)}return c&&Promise.all(h).then(()=>{kt.update(()=>{c&&DN(e,c)})}),h}function zh(e,t,n={}){var s;const o=Vc(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const u=o?()=>Promise.all(rb(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=a;return oj(e,t,m+h,g,v,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[u,c]:[c,u];return h().then(()=>m())}else return Promise.all([u(),c(n.delay)])}function oj(e,t,n=0,s=0,o=1,a){const u=[],c=(e.variantChildren.size-1)*s,f=o===1?(h=0)=>h*s:(h=0)=>c-h*s;return Array.from(e.variantChildren).sort(aj).forEach((h,m)=>{h.notify("AnimationStart",t),u.push(zh(h,t,{...a,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(u)}function aj(e,t){return e.sortNodePosition(t)}function lj(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(a=>zh(e,a,n));s=Promise.all(o)}else if(typeof t=="string")s=zh(e,t,n);else{const o=typeof t=="function"?Vc(e,t,n.custom):t;s=Promise.all(rb(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const uj=Lp.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>lj(e,n,s)))}function hj(e){let t=fj(e),n=mx(),s=!0;const o=f=>(h,m)=>{var g;const v=Vc(e,m,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:b,transitionEnd:w,...S}=v;h={...h,...S,...w}}return h};function a(f){t=f(e)}function u(f){const{props:h}=e,m=sb(e.parent)||{},g=[],v=new Set;let b={},w=1/0;for(let C=0;Cw&&I,q=!1;const te=Array.isArray(N)?N:[N];let pe=te.reduce(o(E),{});T===!1&&(pe={});const{prevResolvedValues:X={}}=R,de={...X,...pe},ke=me=>{O=!0,v.has(me)&&(q=!0,v.delete(me)),R.needsAnimating[me]=!0;const Y=e.getValue(me);Y&&(Y.liveStyle=!1)};for(const me in de){const Y=pe[me],ue=X[me];if(b.hasOwnProperty(me))continue;let ie=!1;Ah(Y)&&Ah(ue)?ie=!wS(Y,ue):ie=Y!==ue,ie?Y!=null?ke(me):v.add(me):Y!==void 0&&v.has(me)?ke(me):R.protectedKeys[me]=!0}R.prevProp=N,R.prevResolvedValues=pe,R.isActive&&(b={...b,...pe}),s&&e.blockInitialAnimation&&(O=!1),O&&(!(F&&z)||q)&&g.push(...te.map(me=>({animation:me,options:{type:E}})))}if(v.size){const C={};v.forEach(E=>{const R=e.getBaseTarget(E),N=e.getValue(E);N&&(N.liveStyle=!0),C[E]=R??null}),g.push({animation:C})}let S=!!g.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?t(g):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var b;return(b=v.animationState)===null||b===void 0?void 0:b.setActive(f,h)}),n[f].isActive=h;const g=u(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:u,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=mx(),s=!0}}}function pj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wS(t,e):!1}function vi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mx(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}class ni{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mj extends ni{constructor(t){super(t),t.animationState||(t.animationState=hj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gj=0;class yj extends ni{constructor(){super(...arguments),this.id=gj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vj={animation:{Feature:mj},exit:{Feature:yj}},gr={x:!1,y:!1};function ib(){return gr.x||gr.y}function xj(e){return e==="x"||e==="y"?gr[e]?null:(gr[e]=!0,()=>{gr[e]=!1}):gr.x||gr.y?null:(gr.x=gr.y=!0,()=>{gr.x=gr.y=!1})}const um=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Xa(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Cl(e){return{point:{x:e.pageX,y:e.pageY}}}const wj=e=>t=>um(t)&&e(t,Cl(t));function Ia(e,t,n,s){return Xa(e,t,wj(n),s)}const gx=(e,t)=>Math.abs(e-t);function Sj(e,t){const n=gx(e.x,t.x),s=gx(e.y,t.y);return Math.sqrt(n**2+s**2)}class ob{constructor(t,n,{transformPagePoint:s,contextWindow:o,dragSnapToOrigin:a=!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 g=oh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=Sj(g.offset,{x:0,y:0})>=3;if(!v&&!b)return;const{point:w}=g,{timestamp:S}=rn;this.history.push({...w,timestamp:S});const{onStart:C,onMove:E}=this.handlers;v||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=ih(v,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=oh(g.type==="pointercancel"?this.lastMoveEventInfo:ih(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(g,C),w&&w(g,C)},!um(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const u=Cl(t),c=ih(u,this.transformPagePoint),{point:f}=c,{timestamp:h}=rn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,oh(c,this.history)),this.removeListeners=El(Ia(this.contextWindow,"pointermove",this.handlePointerMove),Ia(this.contextWindow,"pointerup",this.handlePointerUp),Ia(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qs(this.updatePoint)}}function ih(e,t){return t?{point:t(e.point)}:e}function yx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oh({point:e},t){return{point:e,delta:yx(e,ab(t)),offset:yx(e,bj(t)),velocity:_j(t,.1)}}function bj(e){return e[0]}function ab(e){return e[e.length-1]}function _j(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=ab(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>cs(t)));)n--;if(!s)return{x:0,y:0};const a=ds(o.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const u={x:(o.x-s.x)/a,y:(o.y-s.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const lb=1e-4,Ej=1-lb,Cj=1+lb,ub=.01,kj=0-ub,Tj=0+ub;function Sn(e){return e.max-e.min}function Rj(e,t,n){return Math.abs(e-t)<=n}function vx(e,t,n,s=.5){e.origin=s,e.originPoint=jt(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),e.translate=jt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ej&&e.scale<=Cj||isNaN(e.scale))&&(e.scale=1),(e.translate>=kj&&e.translate<=Tj||isNaN(e.translate))&&(e.translate=0)}function Va(e,t,n,s){vx(e.x,t.x,n.x,s?s.originX:void 0),vx(e.y,t.y,n.y,s?s.originY:void 0)}function xx(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function Pj(e,t,n){xx(e.x,t.x,n.x),xx(e.y,t.y,n.y)}function wx(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function Ba(e,t,n){wx(e.x,t.x,n.x),wx(e.y,t.y,n.y)}function Nj(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?jt(n,e,s.max):Math.min(e,n)),e}function Sx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aj(e,{top:t,left:n,bottom:s,right:o}){return{x:Sx(e.x,n,o),y:Sx(e.y,t,s)}}function bx(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=Po(t.min,t.max-s,e.min):s>o&&(n=Po(e.min,e.max-o,t.min)),hs(0,1,n)}function Lj(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Uh=.35;function Mj(e=Uh){return e===!1?e=0:e===!0&&(e=Uh),{x:_x(e,"left","right"),y:_x(e,"top","bottom")}}function _x(e,t,n){return{min:Ex(e,t),max:Ex(e,n)}}function Ex(e,t){return typeof e=="number"?e:e[t]||0}const Cx=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:Cx(),y:Cx()}),kx=()=>({min:0,max:0}),Bt=()=>({x:kx(),y:kx()});function rr(e){return[e("x"),e("y")]}function cb({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Oj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ah(e){return e===void 0||e===1}function $h({scale:e,scaleX:t,scaleY:n}){return!ah(e)||!ah(t)||!ah(n)}function xi(e){return $h(e)||db(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function db(e){return Tx(e.x)||Tx(e.y)}function Tx(e){return e&&e!=="0%"}function gc(e,t,n){const s=e-n,o=t*s;return n+o}function Rx(e,t,n,s,o){return o!==void 0&&(e=gc(e,o,s)),gc(e,n,s)+t}function Wh(e,t=0,n=1,s,o){e.min=Rx(e.min,t,n,s,o),e.max=Rx(e.max,t,n,s,o)}function fb(e,{x:t,y:n}){Wh(e.x,t.translate,t.scale,t.originPoint),Wh(e.y,n.translate,n.scale,n.originPoint)}const Px=.999999999999,Nx=1.0000000000001;function Ij(e,t,n,s=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,u;for(let c=0;cPx&&(t.x=1),t.yPx&&(t.y=1)}function bo(e,t){e.min=e.min+t,e.max=e.max+t}function Ax(e,t,n,s,o=.5){const a=jt(e.min,e.max,o);Wh(e,t,n,a,s)}function _o(e,t){Ax(e.x,t.x,t.scaleX,t.scale,t.originX),Ax(e.y,t.y,t.scaleY,t.scale,t.originY)}function hb(e,t){return cb(Fj(e.getBoundingClientRect(),t))}function Vj(e,t,n){const s=hb(e,n),{scroll:o}=t;return o&&(bo(s.x,o.offset.x),bo(s.y,o.offset.y)),s}const pb=({current:e})=>e?e.ownerDocument.defaultView:null,Bj=new WeakMap;class zj{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=Bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cl(m).point)},a=(m,g)=>{const{drag:v,dragPropagation:b,onDragStart:w}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xj(v),!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),rr(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Vr.test(E)){const{projection:R}=this.visualElement;if(R&&R.layout){const N=R.layout.layoutBox[C];N&&(E=Sn(N)*(parseFloat(E)/100))}}this.originPoint[C]=E}),w&&kt.postRender(()=>w(m,g)),jh(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(m,g)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:w,onDrag:S}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:C}=g;if(b&&this.currentDirection===null){this.currentDirection=Uj(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),S&&S(m,g)},c=(m,g)=>this.stop(m,g),f=()=>rr(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new ob(t,{onSessionStart:o,onStart:a,onMove:u,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:pb(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&kt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!Zu(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=Nj(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Aj(o.layoutBox,n):this.constraints=!1,this.elastic=Mj(s),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&rr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Lj(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xo(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=Vj(s,o.root,this.visualElement.getTransformPagePoint());let u=jj(o.layout.layoutBox,a);if(n){const c=n(Oj(u));this.hasMutatedConstraints=!!c,c&&(u=cb(c))}return u}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=rr(m=>{if(!Zu(m,n,this.currentDirection))return;let g=f[m]||{};u&&(g={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,w={type:"inertia",velocity:s?t[m]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,w)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return jh(this.visualElement,t),s.start(lm(t,s,0,n,this.visualElement,!1))}stopAnimation(){rr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){rr(n=>{const{drag:s}=this.getProps();if(!Zu(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:c}=o.layout.layoutBox[n];a.set(t[n]-jt(u,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xo(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};rr(u=>{const c=this.getAxisMotionValue(u);if(c&&this.constraints!==!1){const f=c.get();o[u]=Dj({min:f,max:f},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),rr(u=>{if(!Zu(u,t,null))return;const c=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];c.set(jt(f,h,o[u]))})}addListeners(){if(!this.visualElement.current)return;Bj.set(this.visualElement,this);const t=this.visualElement.current,n=Ia(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();xo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),kt.read(s);const u=Xa(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(rr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())});return()=>{u(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:u=Uh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:a,dragElastic:u,dragMomentum:c}}}function Zu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uj(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $j extends ni{constructor(t){super(t),this.removeGroupControls=Hn,this.removeListeners=Hn,this.controls=new zj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hn}unmount(){this.removeGroupControls(),this.removeListeners()}}const jx=e=>(t,n)=>{e&&kt.postRender(()=>e(t,n))};class Wj extends ni{constructor(){super(...arguments),this.removePointerDownListener=Hn}onPointerDown(t){this.session=new ob(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:jx(t),onStart:jx(n),onMove:s,onEnd:(a,u)=>{delete this.session,o&&kt.postRender(()=>o(a,u))}}}mount(){this.removePointerDownListener=Ia(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ca={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;const n=Dx(e,t.target.x),s=Dx(e,t.target.y);return`${n}% ${s}%`}},Hj={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=Ys.parse(e);if(o.length>5)return s;const a=Ys.createTransformer(e),u=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;o[0+u]/=c,o[1+u]/=f;const h=jt(c,f,.5);return typeof o[2+u]=="number"&&(o[2+u]/=h),typeof o[3+u]=="number"&&(o[3+u]/=h),a(o)}};class Gj extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:a}=t;xN(Zj),a&&(n.group&&n.group.add(a),s&&s.register&&o&&s.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:a}=this.props,u=s.projection;return u&&(u.isPresent=a,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||kt.postRender(()=>{const c=u.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Op.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mb(e){const[t,n]=tS(),s=_.useContext(Pp);return x.jsx(Gj,{...e,layoutGroup:s,switchLayoutGroup:_.useContext(lS),isPresent:t,safeToRemove:n})}const Zj={borderRadius:{...Ca,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ca,borderTopRightRadius:Ca,borderBottomLeftRadius:Ca,borderBottomRightRadius:Ca,boxShadow:Hj};function Kj(e,t,n){const s=mn(e)?e:qa(e);return s.start(lm("",s,t,n)),s.animation}function qj(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Yj=(e,t)=>e.depth-t.depth;class Xj{constructor(){this.children=[],this.isDirty=!1}add(t){Kp(this.children,t),this.isDirty=!0}remove(t){qp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yj),this.isDirty=!1,this.children.forEach(t)}}function Qj(e,t){const n=Br.now(),s=({timestamp:o})=>{const a=o-n;a>=t&&(qs(s),e(a-t))};return kt.read(s,!0),()=>qs(s)}const gb=["TopLeft","TopRight","BottomLeft","BottomRight"],Jj=gb.length,Lx=e=>typeof e=="string"?parseFloat(e):e,Mx=e=>typeof e=="number"||ze.test(e);function eD(e,t,n,s,o,a){o?(e.opacity=jt(0,n.opacity!==void 0?n.opacity:1,tD(s)),e.opacityExit=jt(t.opacity!==void 0?t.opacity:1,0,nD(s))):a&&(e.opacity=jt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;ust?1:n(Po(e,t,s))}function Fx(e,t){e.min=t.min,e.max=t.max}function nr(e,t){Fx(e.x,t.x),Fx(e.y,t.y)}function Ix(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vx(e,t,n,s,o){return e-=t,e=gc(e,1/n,s),o!==void 0&&(e=gc(e,1/o,s)),e}function rD(e,t=0,n=1,s=.5,o,a=e,u=e){if(Vr.test(t)&&(t=parseFloat(t),t=jt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let c=jt(a.min,a.max,s);e===a&&(c-=t),e.min=Vx(e.min,t,n,c,o),e.max=Vx(e.max,t,n,c,o)}function Bx(e,t,[n,s,o],a,u){rD(e,t[n],t[s],t[o],t.scale,a,u)}const sD=["x","scaleX","originX"],iD=["y","scaleY","originY"];function zx(e,t,n,s){Bx(e.x,t,sD,n?n.x:void 0,s?s.x:void 0),Bx(e.y,t,iD,n?n.y:void 0,s?s.y:void 0)}function Ux(e){return e.translate===0&&e.scale===1}function vb(e){return Ux(e.x)&&Ux(e.y)}function $x(e,t){return e.min===t.min&&e.max===t.max}function oD(e,t){return $x(e.x,t.x)&&$x(e.y,t.y)}function Wx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xb(e,t){return Wx(e.x,t.x)&&Wx(e.y,t.y)}function Hx(e){return Sn(e.x)/Sn(e.y)}function Gx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aD{constructor(){this.members=[]}add(t){Kp(this.members,t),t.scheduleRender()}remove(t){if(qp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lD(e,t,n){let s="";const o=e.x.translate/t.x,a=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||a||u)&&(s=`translate3d(${o}px, ${a}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:v,skewX:b,skewY:w}=n;h&&(s=`perspective(${h}px) ${s}`),m&&(s+=`rotate(${m}deg) `),g&&(s+=`rotateX(${g}deg) `),v&&(s+=`rotateY(${v}deg) `),b&&(s+=`skewX(${b}deg) `),w&&(s+=`skewY(${w}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(s+=`scale(${c}, ${f})`),s||"none"}const wi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Aa=typeof window<"u"&&window.MotionDebug!==void 0,lh=["","X","Y","Z"],uD={visibility:"hidden"},Zx=1e3;let cD=0;function uh(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_S(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",kt,!(o||a))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&wb(s)}function Sb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},c=t==null?void 0:t()){this.id=cD++,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,Aa&&(wi.totalNodes=wi.resolvedTargetDeltas=wi.recalculatedProjection=0),this.nodes.forEach(hD),this.nodes.forEach(vD),this.nodes.forEach(xD),this.nodes.forEach(pD),Aa&&window.MotionDebug.record(wi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;fthis.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Qj(v,250),nc.hasAnimatedSinceResize&&(nc.hasAnimatedSinceResize=!1,this.nodes.forEach(qx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||m.getDefaultTransition()||ED,{onLayoutAnimationStart:C,onLayoutAnimationComplete:E}=m.getProps(),R=!this.targetLayout||!xb(this.targetLayout,w),N=!v&&b;if(this.options.layoutRoot||this.resumeFrom||N||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,N);const I={...Zp(S,"layout"),onPlay:C,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else v||qx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wD),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Sn(this.snapshot.measuredBox.x)&&!Sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{const T=I/1e3;Yx(g.x,u.x,T),Yx(g.y,u.y,T),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ba(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bD(this.relativeTarget,this.relativeTargetOrigin,v,T),N&&oD(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Bt()),nr(N,this.relativeTarget)),S&&(this.animationValues=m,eD(m,h,this.latestValues,T,R,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{nc.hasAnimatedSinceResize=!0,this.currentAnimation=Kj(0,Zx,{...u,onUpdate:c=>{this.mixTargetDelta(c),u.onUpdate&&u.onUpdate(c)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=u;if(!(!c||!f||!h)){if(this!==u&&this.layout&&h&&bb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Bt();const g=Sn(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const v=Sn(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}nr(c,f),_o(c,m),Va(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(u,c){this.sharedNodes.has(u)||this.sharedNodes.set(u,new aD),this.sharedNodes.get(u).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:c}=this.options;return c?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:c}=this.options;return c?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let c=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&uh("z",u,h,this.animationValues);for(let m=0;m{var c;return(c=u.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Kx),this.root.sharedNodes.clear()}}}function dD(e){e.updateLayout()}function fD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:a}=e.options,u=n.source!==e.layout.source;a==="size"?rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(v);v.min=s[g].min,v.max=v.min+b}):bb(a,n.layoutBox,s)&&rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(s[g]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=So();Va(c,s,n.layoutBox);const f=So();u?Va(f,e.applyTransform(o,!0),n.measuredBox):Va(f,s,n.layoutBox);const h=!vb(c);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const w=Bt();Ba(w,n.layoutBox,v.layoutBox);const S=Bt();Ba(S,s,b.layoutBox),xb(w,S)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function hD(e){Aa&&wi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mD(e){e.clearSnapshot()}function Kx(e){e.clearMeasurements()}function gD(e){e.isLayoutDirty=!1}function yD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vD(e){e.resolveTargetDelta()}function xD(e){e.calcProjection()}function wD(e){e.resetSkewAndRotation()}function SD(e){e.removeLeadSnapshot()}function Yx(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xx(e,t,n,s){e.min=jt(t.min,n.min,s),e.max=jt(t.max,n.max,s)}function bD(e,t,n,s){Xx(e.x,t.x,n.x,s),Xx(e.y,t.y,n.y,s)}function _D(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ED={duration:.45,ease:[.4,0,.1,1]},Qx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jx=Qx("applewebkit/")&&!Qx("chrome/")?Math.round:Hn;function e0(e){e.min=Jx(e.min),e.max=Jx(e.max)}function CD(e){e0(e.x),e0(e.y)}function bb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rj(Hx(t),Hx(n),.2)}function kD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TD=Sb({attachResizeListener:(e,t)=>Xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ch={current:void 0},_b=Sb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ch.current){const e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),ch.current=e}return ch.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RD={pan:{Feature:Wj},drag:{Feature:$j,ProjectionNode:_b,MeasureLayout:mb}};function PD(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function Eb(e,t){const n=PD(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function t0(e){return!(e.pointerType==="touch"||ib())}function ND(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{if(!t0(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=g=>{t0(g)&&(h(g),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,o)};return s.forEach(c=>{c.addEventListener("pointerenter",u,o)}),a}function n0(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class AD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=ND(t,(n,s)=>(n0(this.node,s,"Start"),o=>n0(this.node,o,"End"))))}unmount(){}}class jD extends ni{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=El(Xa(this.node.current,"focus",()=>this.onFocus()),Xa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Cb=(e,t)=>t?e===t?!0:Cb(e,t.parentElement):!1,DD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LD(e){return DD.has(e.tagName)||e.tabIndex!==-1}const ja=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function dh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MD=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=r0(()=>{if(ja.has(n))return;dh(n,"down");const o=r0(()=>{dh(n,"up")}),a=()=>dh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function s0(e){return um(e)&&!ib()}function OD(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{const f=c.currentTarget;if(!s0(c)||ja.has(f))return;ja.add(f);const h=t(f,c),m=(b,w)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!s0(b)||!ja.has(f))&&(ja.delete(f),typeof h=="function"&&h(b,{success:w}))},g=b=>{m(b,n.useGlobalTarget||Cb(f,b.target))},v=b=>{m(b,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return s.forEach(c=>{!LD(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",u,o),c.addEventListener("focus",h=>MD(h,o),o)}),a}function i0(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class FD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=OD(t,(n,s)=>(i0(this.node,s,"Start"),(o,{success:a})=>i0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hh=new WeakMap,fh=new WeakMap,ID=e=>{const t=Hh.get(e.target);t&&t(e)},VD=e=>{e.forEach(ID)};function BD({root:e,...t}){const n=e||document;fh.has(n)||fh.set(n,{});const s=fh.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(VD,{root:e,...t})),s[o]}function zD(e,t,n){const s=BD(t);return Hh.set(e,n),s.observe(e),()=>{Hh.delete(e),s.unobserve(e)}}const UD={some:0,all:1};class $D extends ni{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:UD[o]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=h?m:g;v&&v(f)};return zD(this.node.current,u,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(WD(t,n))&&this.startObserver()}unmount(){}}function WD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HD={inView:{Feature:$D},tap:{Feature:FD},focus:{Feature:jD},hover:{Feature:AD}},GD={layout:{ProjectionNode:_b,MeasureLayout:mb}},Gh={current:null},kb={current:!1};function ZD(){if(kb.current=!0,!!jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gh.current=e.matches;e.addListener(t),t()}else Gh.current=!1}const KD=[...ZS,hn,Ys],qD=e=>KD.find(GS(e)),o0=new WeakMap;function YD(e,t,n){for(const s in t){const o=t[s],a=n[s];if(mn(o))e.addValue(s,o);else if(mn(a))e.addValue(s,qa(o,{owner:e}));else if(a!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,qa(u!==void 0?u:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const a0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class XD{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:a,visualState:u},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=im,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 b=Br.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),kb.current||ZD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){o0.delete(this.current),this.projection&&this.projection.unmount(),qs(this.notifyUpdate),qs(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Vi.has(t),o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&kt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ro){const n=Ro[t];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=qa(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(WS(o)||MS(o))?o=parseFloat(o):!qD(o)&&Ys.test(n)&&(o=zS(t,n)),this.setBaseTarget(t,mn(o)?o.get():o)),mn(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=Ip(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!mn(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Tb extends XD{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QD(e){return window.getComputedStyle(e)}class JD extends Tb{constructor(){super(...arguments),this.type="html",this.renderInstance=pS}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}else{const s=QD(t),o=(Vp(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hb(t,n)}build(t,n,s){Up(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Gp(t,n,s)}}class eL extends Tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}return n=mS.has(n)?n:Mp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return vS(t,n,s)}build(t,n,s){$p(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){gS(t,n,s,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const tL=(e,t)=>Fp(e)?new eL(t):new JD(t,{allowProjection:e!==_.Fragment}),nL=RN({...vj,...HD,...RD,...GD},tL),fs=$P(nL);var hh,l0;function rL(){if(l0)return hh;l0=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,f=typeof Mu=="object"&&Mu&&Mu.Object===Object&&Mu,h=typeof self=="object"&&self&&self.Object===Object&&self,m=f||h||Function("return this")(),g=Object.prototype,v=g.toString,b=Math.max,w=Math.min,S=function(){return m.Date.now()};function C(T,F,z){var O,q,te,pe,X,de,ke=0,we=!1,De=!1,me=!0;if(typeof T!="function")throw new TypeError(e);F=I(F)||0,E(z)&&(we=!!z.leading,De="maxWait"in z,te=De?b(I(z.maxWait)||0,F):te,me="trailing"in z?!!z.trailing:me);function Y(be){var Pe=O,Me=q;return O=q=void 0,ke=be,pe=T.apply(Me,Pe),pe}function ue(be){return ke=be,X=setTimeout(K,F),we?Y(be):pe}function ie(be){var Pe=be-de,Me=be-ke,rt=F-Pe;return De?w(rt,te-Me):rt}function L(be){var Pe=be-de,Me=be-ke;return de===void 0||Pe>=F||Pe<0||De&&Me>=te}function K(){var be=S();if(L(be))return Le(be);X=setTimeout(K,ie(be))}function Le(be){return X=void 0,me&&O?Y(be):(O=q=void 0,pe)}function Oe(){X!==void 0&&clearTimeout(X),ke=0,O=de=q=X=void 0}function Be(){return X===void 0?pe:Le(S())}function We(){var be=S(),Pe=L(be);if(O=arguments,q=this,de=be,Pe){if(X===void 0)return ue(de);if(De)return X=setTimeout(K,F),Y(de)}return X===void 0&&(X=setTimeout(K,F)),pe}return We.cancel=Oe,We.flush=Be,We}function E(T){var F=typeof T;return!!T&&(F=="object"||F=="function")}function R(T){return!!T&&typeof T=="object"}function N(T){return typeof T=="symbol"||R(T)&&v.call(T)==n}function I(T){if(typeof T=="number")return T;if(N(T))return t;if(E(T)){var F=typeof T.valueOf=="function"?T.valueOf():T;T=E(F)?F+"":F}if(typeof T!="string")return T===0?T:+T;T=T.replace(s,"");var z=a.test(T);return z||u.test(T)?c(T.slice(2),z?2:8):o.test(T)?t:+T}return hh=C,hh}rL();var sL=typeof window<"u"?_.useLayoutEffect:_.useEffect,iL=typeof window>"u";function Zh(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=c=>iL?t:window.matchMedia(c).matches,[o,a]=_.useState(()=>n?s(e):t);function u(){a(s(e))}return sL(()=>{const c=window.matchMedia(e);return u(),c.addListener?c.addListener(u):c.addEventListener("change",u),()=>{c.removeListener?c.removeListener(u):c.removeEventListener("change",u)}},[e]),o}const oL=({className:e,stage:t})=>{const n=Zh("(min-width: 768px");return x.jsx("div",{className:e,children:x.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:x.jsxs("div",{className:"relative h-14 w-full",children:[x.jsx("div",{className:Ye("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),x.jsx(fs.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:Ye("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-[20%]":t===2,"w-[75%]":t===3})}),x.jsx(fs.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:Ye("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),x.jsx(fs.div,{className:Ye("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var kl=e=>e.type==="checkbox",Ei=e=>e instanceof Date,xn=e=>e==null;const Rb=e=>typeof e=="object";var Ut=e=>!xn(e)&&!Array.isArray(e)&&Rb(e)&&!Ei(e),Pb=e=>Ut(e)&&e.target?kl(e.target)?e.target.checked:e.target.value:e,aL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nb=(e,t)=>e.has(aL(t)),lL=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},cm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nn(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(cm&&(e instanceof Blob||s))&&(n||Ut(e)))if(t=n?[]:{},!n&&!lL(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Nn(e[o]));else return e;return t}var zc=e=>Array.isArray(e)?e.filter(Boolean):[],zt=e=>e===void 0,ce=(e,t,n)=>{if(!t||!Ut(e))return n;const s=zc(t.split(/[,[\].]+?/)).reduce((o,a)=>xn(o)?o:o[a],e);return zt(s)||s===e?zt(e[t])?n:e[t]:s},ir=e=>typeof e=="boolean",dm=e=>/^\w*$/.test(e),Ab=e=>zc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pt=(e,t,n)=>{let s=-1;const o=dm(t)?[t]:Ab(t),a=o.length,u=a-1;for(;++sit.useContext(jb),uL=e=>{const{children:t,...n}=e;return it.createElement(jb.Provider,{value:n},t)};var Db=(e,t,n,s=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return t._proxyFormState[u]!==vr.all&&(t._proxyFormState[u]=!s||vr.all),n&&(n[u]=!0),e[u]}});return o},An=e=>Ut(e)&&!Object.keys(e).length,Lb=(e,t,n,s)=>{n(e);const{name:o,...a}=e;return An(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(u=>t[u]===(!s||vr.all))},za=e=>Array.isArray(e)?e:[e],Mb=(e,t,n)=>!e||!t||e===t||za(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function fm(e){const t=it.useRef(e);t.current=e,it.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function cL(e){const t=Bi(),{control:n=t.control,disabled:s,name:o,exact:a}=e,[u,c]=it.useState(n._formState),f=it.useRef(!0),h=it.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=it.useRef(o);return m.current=o,fm({disabled:s,next:g=>f.current&&Mb(m.current,g.name,a)&&Lb(g,h.current,n._updateFormState)&&c({...n._formState,...g}),subject:n._subjects.state}),it.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),it.useMemo(()=>Db(u,n,h.current,!1),[u,n])}var Fr=e=>typeof e=="string",Ob=(e,t,n,s,o)=>Fr(e)?(s&&t.watch.add(e),ce(n,e,o)):Array.isArray(e)?e.map(a=>(s&&t.watch.add(a),ce(n,a))):(s&&(t.watchAll=!0),n);function dL(e){const t=Bi(),{control:n=t.control,name:s,defaultValue:o,disabled:a,exact:u}=e,c=it.useRef(s);c.current=s,fm({disabled:a,subject:n._subjects.values,next:m=>{Mb(c.current,m.name,u)&&h(Nn(Ob(c.current,n._names,m.values||n._formValues,!1,o)))}});const[f,h]=it.useState(n._getWatch(s,o));return it.useEffect(()=>n._removeUnmounted()),f}function fL(e){const t=Bi(),{name:n,disabled:s,control:o=t.control,shouldUnregister:a}=e,u=Nb(o._names.array,n),c=dL({control:o,name:n,defaultValue:ce(o._formValues,n,ce(o._defaultValues,n,e.defaultValue)),exact:!0}),f=cL({control:o,name:n,exact:!0}),h=it.useRef(o.register(n,{...e.rules,value:c,...ir(e.disabled)?{disabled:e.disabled}:{}})),m=it.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ce(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!ce(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ce(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ce(f.validatingFields,n)},error:{enumerable:!0,get:()=>ce(f.errors,n)}}),[f,n]),g=it.useMemo(()=>({name:n,value:c,...ir(s)||f.disabled?{disabled:f.disabled||s}:{},onChange:v=>h.current.onChange({target:{value:Pb(v),name:n},type:yc.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:ce(o._formValues,n),name:n},type:yc.BLUR}),ref:v=>{const b=ce(o._fields,n);b&&v&&(b._f.ref={focus:()=>v.focus(),select:()=>v.select(),setCustomValidity:w=>v.setCustomValidity(w),reportValidity:()=>v.reportValidity()})}}),[n,o._formValues,s,f.disabled,c,o._fields]);return it.useEffect(()=>{const v=o._options.shouldUnregister||a,b=(w,S)=>{const C=ce(o._fields,w);C&&C._f&&(C._f.mount=S)};if(b(n,!0),v){const w=Nn(ce(o._options.defaultValues,n));pt(o._defaultValues,n,w),zt(ce(o._formValues,n))&&pt(o._formValues,n,w)}return!u&&o.register(n),()=>{(u?v&&!o._state.action:v)?o.unregister(n):b(n,!1)}},[n,o,u,a]),it.useEffect(()=>{o._updateDisabledField({disabled:s,fields:o._fields,name:n})},[s,n,o]),it.useMemo(()=>({field:g,formState:f,fieldState:m}),[g,f,m])}const hL=e=>e.render(fL(e));var Fb=(e,t,n,s,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:o||!0}}:{},u0=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched}),c0=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ua=(e,t,n,s)=>{for(const o of n||Object.keys(e)){const a=ce(e,o);if(a){const{_f:u,...c}=a;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!s)return!0;if(u.ref&&t(u.ref,u.name)&&!s)return!0;if(Ua(c,t))break}else if(Ut(c)&&Ua(c,t))break}}};var pL=(e,t,n)=>{const s=za(ce(e,n));return pt(s,"root",t[n]),pt(e,n,s),e},hm=e=>e.type==="file",Or=e=>typeof e=="function",vc=e=>{if(!cm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rc=e=>Fr(e),pm=e=>e.type==="radio",xc=e=>e instanceof RegExp;const d0={value:!1,isValid:!1},f0={value:!0,isValid:!0};var Ib=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zt(e[0].attributes.value)?zt(e[0].value)||e[0].value===""?f0:{value:e[0].value,isValid:!0}:f0:d0}return d0};const h0={isValid:!1,value:null};var Vb=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,h0):h0;function p0(e,t,n="validate"){if(rc(e)||Array.isArray(e)&&e.every(rc)||ir(e)&&!e)return{type:n,message:rc(e)?e:"",ref:t}}var yo=e=>Ut(e)&&!xc(e)?e:{value:e,message:""},m0=async(e,t,n,s,o,a)=>{const{ref:u,refs:c,required:f,maxLength:h,minLength:m,min:g,max:v,pattern:b,validate:w,name:S,valueAsNumber:C,mount:E}=e._f,R=ce(n,S);if(!E||t.has(S))return{};const N=c?c[0]:u,I=X=>{o&&N.reportValidity&&(N.setCustomValidity(ir(X)?"":X||""),N.reportValidity())},T={},F=pm(u),z=kl(u),O=F||z,q=(C||hm(u))&&zt(u.value)&&zt(R)||vc(u)&&u.value===""||R===""||Array.isArray(R)&&!R.length,te=Fb.bind(null,S,s,T),pe=(X,de,ke,we=os.maxLength,De=os.minLength)=>{const me=X?de:ke;T[S]={type:X?we:De,message:me,ref:u,...te(X?we:De,me)}};if(a?!Array.isArray(R)||!R.length:f&&(!O&&(q||xn(R))||ir(R)&&!R||z&&!Ib(c).isValid||F&&!Vb(c).isValid)){const{value:X,message:de}=rc(f)?{value:!!f,message:f}:yo(f);if(X&&(T[S]={type:os.required,message:de,ref:N,...te(os.required,de)},!s))return I(de),T}if(!q&&(!xn(g)||!xn(v))){let X,de;const ke=yo(v),we=yo(g);if(!xn(R)&&!isNaN(R)){const De=u.valueAsNumber||R&&+R;xn(ke.value)||(X=De>ke.value),xn(we.value)||(de=Denew Date(new Date().toDateString()+" "+ie),Y=u.type=="time",ue=u.type=="week";Fr(ke.value)&&R&&(X=Y?me(R)>me(ke.value):ue?R>ke.value:De>new Date(ke.value)),Fr(we.value)&&R&&(de=Y?me(R)+X.value,we=!xn(de.value)&&R.length<+de.value;if((ke||we)&&(pe(ke,X.message,de.message),!s))return I(T[S].message),T}if(b&&!q&&Fr(R)){const{value:X,message:de}=yo(b);if(xc(X)&&!R.match(X)&&(T[S]={type:os.pattern,message:de,ref:u,...te(os.pattern,de)},!s))return I(de),T}if(w){if(Or(w)){const X=await w(R,n),de=p0(X,N);if(de&&(T[S]={...de,...te(os.validate,de.message)},!s))return I(de.message),T}else if(Ut(w)){let X={};for(const de in w){if(!An(X)&&!s)break;const ke=p0(await w[de](R,n),N,de);ke&&(X={...ke,...te(de,ke.message)},I(ke.message),s&&(T[S]=X))}if(!An(X)&&(T[S]={ref:N,...X},!s))return T}}return I(!0),T};function mL(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},Kh=e=>xn(e)||!Rb(e);function Gs(e,t){if(Kh(e)||Kh(t))return e===t;if(Ei(e)&&Ei(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const o of n){const a=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const u=t[o];if(Ei(a)&&Ei(u)||Ut(a)&&Ut(u)||Array.isArray(a)&&Array.isArray(u)?!Gs(a,u):a!==u)return!1}}return!0}var Bb=e=>e.type==="select-multiple",yL=e=>pm(e)||kl(e),mh=e=>vc(e)&&e.isConnected,zb=e=>{for(const t in e)if(Or(e[t]))return!0;return!1};function wc(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const s in e)Array.isArray(e[s])||Ut(e[s])&&!zb(e[s])?(t[s]=Array.isArray(e[s])?[]:{},wc(e[s],t[s])):xn(e[s])||(t[s]=!0);return t}function Ub(e,t,n){const s=Array.isArray(e);if(Ut(e)||s)for(const o in e)Array.isArray(e[o])||Ut(e[o])&&!zb(e[o])?zt(t)||Kh(n[o])?n[o]=Array.isArray(e[o])?wc(e[o],[]):{...wc(e[o])}:Ub(e[o],xn(t)?{}:t[o],n[o]):n[o]=!Gs(e[o],t[o]);return n}var ka=(e,t)=>Ub(e,t,wc(t)),$b=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>zt(e)?e:t?e===""?NaN:e&&+e:n&&Fr(e)?new Date(e):s?s(e):e;function gh(e){const t=e.ref;return hm(t)?t.files:pm(t)?Vb(e.refs).value:Bb(t)?[...t.selectedOptions].map(({value:n})=>n):kl(t)?Ib(e.refs).value:$b(zt(t.value)?e.ref.value:t.value,e)}var vL=(e,t,n,s)=>{const o={};for(const a of e){const u=ce(t,a);u&&pt(o,a,u._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:s}},Ta=e=>zt(e)?e:xc(e)?e.source:Ut(e)?xc(e.value)?e.value.source:e.value:e;const g0="AsyncFunction";var xL=e=>!!e&&!!e.validate&&!!(Or(e.validate)&&e.validate.constructor.name===g0||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===g0)),wL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y0(e,t,n){const s=ce(e,n);if(s||dm(n))return{error:s,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),u=ce(t,a),c=ce(e,a);if(u&&!Array.isArray(u)&&n!==a)return{name:n};if(c&&c.type)return{name:a,error:c};o.pop()}return{name:n}}var SL=(e,t,n,s,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?s.isOnBlur:o.isOnBlur)?!e:(n?s.isOnChange:o.isOnChange)?e:!0,bL=(e,t)=>!zc(ce(e,t)).length&&qt(e,t);const _L={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0};function EL(e={}){let t={..._L,...e},n={submitCount:0,isDirty:!1,isLoading:Or(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},o=Ut(t.defaultValues)||Ut(t.values)?Nn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Nn(o),u={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:ph(),array:ph(),state:ph()},v=u0(t.mode),b=u0(t.reValidateMode),w=t.criteriaMode===vr.all,S=A=>U=>{clearTimeout(h),h=setTimeout(A,U)},C=async A=>{if(!t.disabled&&(m.isValid||A)){const U=t.resolver?An((await O()).errors):await te(s,!0);U!==n.isValid&&g.state.next({isValid:U})}},E=(A,U)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((A||Array.from(c.mount)).forEach(H=>{H&&(U?pt(n.validatingFields,H,U):qt(n.validatingFields,H))}),g.state.next({validatingFields:n.validatingFields,isValidating:!An(n.validatingFields)}))},R=(A,U=[],H,oe,ae=!0,se=!0)=>{if(oe&&H&&!t.disabled){if(u.action=!0,se&&Array.isArray(ce(s,A))){const Re=H(ce(s,A),oe.argA,oe.argB);ae&&pt(s,A,Re)}if(se&&Array.isArray(ce(n.errors,A))){const Re=H(ce(n.errors,A),oe.argA,oe.argB);ae&&pt(n.errors,A,Re),bL(n.errors,A)}if(m.touchedFields&&se&&Array.isArray(ce(n.touchedFields,A))){const Re=H(ce(n.touchedFields,A),oe.argA,oe.argB);ae&&pt(n.touchedFields,A,Re)}m.dirtyFields&&(n.dirtyFields=ka(o,a)),g.state.next({name:A,isDirty:X(A,U),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pt(a,A,U)},N=(A,U)=>{pt(n.errors,A,U),g.state.next({errors:n.errors})},I=A=>{n.errors=A,g.state.next({errors:n.errors,isValid:!1})},T=(A,U,H,oe)=>{const ae=ce(s,A);if(ae){const se=ce(a,A,zt(H)?ce(o,A):H);zt(se)||oe&&oe.defaultChecked||U?pt(a,A,U?se:gh(ae._f)):we(A,se),u.mount&&C()}},F=(A,U,H,oe,ae)=>{let se=!1,Re=!1;const Fe={name:A};if(!t.disabled){const ut=!!(ce(s,A)&&ce(s,A)._f&&ce(s,A)._f.disabled);if(!H||oe){m.isDirty&&(Re=n.isDirty,n.isDirty=Fe.isDirty=X(),se=Re!==Fe.isDirty);const yt=ut||Gs(ce(o,A),U);Re=!!(!ut&&ce(n.dirtyFields,A)),yt||ut?qt(n.dirtyFields,A):pt(n.dirtyFields,A,!0),Fe.dirtyFields=n.dirtyFields,se=se||m.dirtyFields&&Re!==!yt}if(H){const yt=ce(n.touchedFields,A);yt||(pt(n.touchedFields,A,H),Fe.touchedFields=n.touchedFields,se=se||m.touchedFields&&yt!==H)}se&&ae&&g.state.next(Fe)}return se?Fe:{}},z=(A,U,H,oe)=>{const ae=ce(n.errors,A),se=m.isValid&&ir(U)&&n.isValid!==U;if(t.delayError&&H?(f=S(()=>N(A,H)),f(t.delayError)):(clearTimeout(h),f=null,H?pt(n.errors,A,H):qt(n.errors,A)),(H?!Gs(ae,H):ae)||!An(oe)||se){const Re={...oe,...se&&ir(U)?{isValid:U}:{},errors:n.errors,name:A};n={...n,...Re},g.state.next(Re)}},O=async A=>{E(A,!0);const U=await t.resolver(a,t.context,vL(A||c.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return E(A),U},q=async A=>{const{errors:U}=await O(A);if(A)for(const H of A){const oe=ce(U,H);oe?pt(n.errors,H,oe):qt(n.errors,H)}else n.errors=U;return U},te=async(A,U,H={valid:!0})=>{for(const oe in A){const ae=A[oe];if(ae){const{_f:se,...Re}=ae;if(se){const Fe=c.array.has(se.name),ut=ae._f&&xL(ae._f);ut&&m.validatingFields&&E([oe],!0);const yt=await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation&&!U,Fe);if(ut&&m.validatingFields&&E([oe]),yt[se.name]&&(H.valid=!1,U))break;!U&&(ce(yt,se.name)?Fe?pL(n.errors,yt,se.name):pt(n.errors,se.name,yt[se.name]):qt(n.errors,se.name))}!An(Re)&&await te(Re,U,H)}}return H.valid},pe=()=>{for(const A of c.unMount){const U=ce(s,A);U&&(U._f.refs?U._f.refs.every(H=>!mh(H)):!mh(U._f.ref))&&We(A)}c.unMount=new Set},X=(A,U)=>!t.disabled&&(A&&U&&pt(a,A,U),!Gs(L(),o)),de=(A,U,H)=>Ob(A,c,{...u.mount?a:zt(U)?o:Fr(A)?{[A]:U}:U},H,U),ke=A=>zc(ce(u.mount?a:o,A,t.shouldUnregister?ce(o,A,[]):[])),we=(A,U,H={})=>{const oe=ce(s,A);let ae=U;if(oe){const se=oe._f;se&&(!se.disabled&&pt(a,A,$b(U,se)),ae=vc(se.ref)&&xn(U)?"":U,Bb(se.ref)?[...se.ref.options].forEach(Re=>Re.selected=ae.includes(Re.value)):se.refs?kl(se.ref)?se.refs.length>1?se.refs.forEach(Re=>(!Re.defaultChecked||!Re.disabled)&&(Re.checked=Array.isArray(ae)?!!ae.find(Fe=>Fe===Re.value):ae===Re.value)):se.refs[0]&&(se.refs[0].checked=!!ae):se.refs.forEach(Re=>Re.checked=Re.value===ae):hm(se.ref)?se.ref.value="":(se.ref.value=ae,se.ref.type||g.values.next({name:A,values:{...a}})))}(H.shouldDirty||H.shouldTouch)&&F(A,ae,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&ie(A)},De=(A,U,H)=>{for(const oe in U){const ae=U[oe],se=`${A}.${oe}`,Re=ce(s,se);(c.array.has(A)||Ut(ae)||Re&&!Re._f)&&!Ei(ae)?De(se,ae,H):we(se,ae,H)}},me=(A,U,H={})=>{const oe=ce(s,A),ae=c.array.has(A),se=Nn(U);pt(a,A,se),ae?(g.array.next({name:A,values:{...a}}),(m.isDirty||m.dirtyFields)&&H.shouldDirty&&g.state.next({name:A,dirtyFields:ka(o,a),isDirty:X(A,se)})):oe&&!oe._f&&!xn(se)?De(A,se,H):we(A,se,H),c0(A,c)&&g.state.next({...n}),g.values.next({name:u.mount?A:void 0,values:{...a}})},Y=async A=>{u.mount=!0;const U=A.target;let H=U.name,oe=!0;const ae=ce(s,H),se=()=>U.type?gh(ae._f):Pb(A),Re=Fe=>{oe=Number.isNaN(Fe)||Ei(Fe)&&isNaN(Fe.getTime())||Gs(Fe,ce(a,H,Fe))};if(ae){let Fe,ut;const yt=se(),Wt=A.type===yc.BLUR||A.type===yc.FOCUS_OUT,kr=!wL(ae._f)&&!t.resolver&&!ce(n.errors,H)&&!ae._f.deps||SL(Wt,ce(n.touchedFields,H),n.isSubmitted,b,v),bt=c0(H,c,Wt);pt(a,H,yt),Wt?(ae._f.onBlur&&ae._f.onBlur(A),f&&f(0)):ae._f.onChange&&ae._f.onChange(A);const ln=F(H,yt,Wt,!1),Tr=!An(ln)||bt;if(!Wt&&g.values.next({name:H,type:A.type,values:{...a}}),kr)return m.isValid&&(t.mode==="onBlur"&&Wt?C():Wt||C()),Tr&&g.state.next({name:H,...bt?{}:ln});if(!Wt&&bt&&g.state.next({...n}),t.resolver){const{errors:Fn}=await O([H]);if(Re(yt),oe){const ms=y0(n.errors,s,H),Gr=y0(Fn,s,ms.name||H);Fe=Gr.error,H=Gr.name,ut=An(Fn)}}else E([H],!0),Fe=(await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation))[H],E([H]),Re(yt),oe&&(Fe?ut=!1:m.isValid&&(ut=await te(s,!0)));oe&&(ae._f.deps&&ie(ae._f.deps),z(H,ut,Fe,ln))}},ue=(A,U)=>{if(ce(n.errors,U)&&A.focus)return A.focus(),1},ie=async(A,U={})=>{let H,oe;const ae=za(A);if(t.resolver){const se=await q(zt(A)?A:ae);H=An(se),oe=A?!ae.some(Re=>ce(se,Re)):H}else A?(oe=(await Promise.all(ae.map(async se=>{const Re=ce(s,se);return await te(Re&&Re._f?{[se]:Re}:Re)}))).every(Boolean),!(!oe&&!n.isValid)&&C()):oe=H=await te(s);return g.state.next({...!Fr(A)||m.isValid&&H!==n.isValid?{}:{name:A},...t.resolver||!A?{isValid:H}:{},errors:n.errors}),U.shouldFocus&&!oe&&Ua(s,ue,A?ae:c.mount),oe},L=A=>{const U={...u.mount?a:o};return zt(A)?U:Fr(A)?ce(U,A):A.map(H=>ce(U,H))},K=(A,U)=>({invalid:!!ce((U||n).errors,A),isDirty:!!ce((U||n).dirtyFields,A),error:ce((U||n).errors,A),isValidating:!!ce(n.validatingFields,A),isTouched:!!ce((U||n).touchedFields,A)}),Le=A=>{A&&za(A).forEach(U=>qt(n.errors,U)),g.state.next({errors:A?n.errors:{}})},Oe=(A,U,H)=>{const oe=(ce(s,A,{_f:{}})._f||{}).ref,ae=ce(n.errors,A)||{},{ref:se,message:Re,type:Fe,...ut}=ae;pt(n.errors,A,{...ut,...U,ref:oe}),g.state.next({name:A,errors:n.errors,isValid:!1}),H&&H.shouldFocus&&oe&&oe.focus&&oe.focus()},Be=(A,U)=>Or(A)?g.values.subscribe({next:H=>A(de(void 0,U),H)}):de(A,U,!0),We=(A,U={})=>{for(const H of A?za(A):c.mount)c.mount.delete(H),c.array.delete(H),U.keepValue||(qt(s,H),qt(a,H)),!U.keepError&&qt(n.errors,H),!U.keepDirty&&qt(n.dirtyFields,H),!U.keepTouched&&qt(n.touchedFields,H),!U.keepIsValidating&&qt(n.validatingFields,H),!t.shouldUnregister&&!U.keepDefaultValue&&qt(o,H);g.values.next({values:{...a}}),g.state.next({...n,...U.keepDirty?{isDirty:X()}:{}}),!U.keepIsValid&&C()},be=({disabled:A,name:U,field:H,fields:oe})=>{(ir(A)&&u.mount||A||c.disabled.has(U))&&(A?c.disabled.add(U):c.disabled.delete(U),F(U,gh(H?H._f:ce(oe,U)._f),!1,!1,!0))},Pe=(A,U={})=>{let H=ce(s,A);const oe=ir(U.disabled)||ir(t.disabled);return pt(s,A,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:A}},name:A,mount:!0,...U}}),c.mount.add(A),H?be({field:H,disabled:ir(U.disabled)?U.disabled:t.disabled,name:A}):T(A,!0,U.value),{...oe?{disabled:U.disabled||t.disabled}:{},...t.progressive?{required:!!U.required,min:Ta(U.min),max:Ta(U.max),minLength:Ta(U.minLength),maxLength:Ta(U.maxLength),pattern:Ta(U.pattern)}:{},name:A,onChange:Y,onBlur:Y,ref:ae=>{if(ae){Pe(A,U),H=ce(s,A);const se=zt(ae.value)&&ae.querySelectorAll&&ae.querySelectorAll("input,select,textarea")[0]||ae,Re=yL(se),Fe=H._f.refs||[];if(Re?Fe.find(ut=>ut===se):se===H._f.ref)return;pt(s,A,{_f:{...H._f,...Re?{refs:[...Fe.filter(mh),se,...Array.isArray(ce(o,A))?[{}]:[]],ref:{type:se.type,name:A}}:{ref:se}}}),T(A,!1,void 0,se)}else H=ce(s,A,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||U.shouldUnregister)&&!(Nb(c.array,A)&&u.action)&&c.unMount.add(A)}}},Me=()=>t.shouldFocusError&&Ua(s,ue,c.mount),rt=A=>{ir(A)&&(g.state.next({disabled:A}),Ua(s,(U,H)=>{const oe=ce(s,H);oe&&(U.disabled=oe._f.disabled||A,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(ae=>{ae.disabled=oe._f.disabled||A}))},0,!1))},at=(A,U)=>async H=>{let oe;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let ae=Nn(a);if(c.disabled.size)for(const se of c.disabled)pt(ae,se,void 0);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:se,values:Re}=await O();n.errors=se,ae=Re}else await te(s);if(qt(n.errors,"root"),An(n.errors)){g.state.next({errors:{}});try{await A(ae,H)}catch(se){oe=se}}else U&&await U({...n.errors},H),Me(),setTimeout(Me);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:An(n.errors)&&!oe,submitCount:n.submitCount+1,errors:n.errors}),oe)throw oe},Ee=(A,U={})=>{ce(s,A)&&(zt(U.defaultValue)?me(A,Nn(ce(o,A))):(me(A,U.defaultValue),pt(o,A,Nn(U.defaultValue))),U.keepTouched||qt(n.touchedFields,A),U.keepDirty||(qt(n.dirtyFields,A),n.isDirty=U.defaultValue?X(A,Nn(ce(o,A))):X()),U.keepError||(qt(n.errors,A),m.isValid&&C()),g.state.next({...n}))},Xe=(A,U={})=>{const H=A?Nn(A):o,oe=Nn(H),ae=An(A),se=ae?o:oe;if(U.keepDefaultValues||(o=H),!U.keepValues){if(U.keepDirtyValues){const Re=new Set([...c.mount,...Object.keys(ka(o,a))]);for(const Fe of Array.from(Re))ce(n.dirtyFields,Fe)?pt(se,Fe,ce(a,Fe)):me(Fe,ce(se,Fe))}else{if(cm&&zt(A))for(const Re of c.mount){const Fe=ce(s,Re);if(Fe&&Fe._f){const ut=Array.isArray(Fe._f.refs)?Fe._f.refs[0]:Fe._f.ref;if(vc(ut)){const yt=ut.closest("form");if(yt){yt.reset();break}}}}s={}}a=t.shouldUnregister?U.keepDefaultValues?Nn(o):{}:Nn(se),g.array.next({values:{...se}}),g.values.next({values:{...se}})}c={mount:U.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!m.isValid||!!U.keepIsValid||!!U.keepDirtyValues,u.watch=!!t.shouldUnregister,g.state.next({submitCount:U.keepSubmitCount?n.submitCount:0,isDirty:ae?!1:U.keepDirty?n.isDirty:!!(U.keepDefaultValues&&!Gs(A,o)),isSubmitted:U.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ae?{}:U.keepDirtyValues?U.keepDefaultValues&&a?ka(o,a):n.dirtyFields:U.keepDefaultValues&&A?ka(o,A):U.keepDirty?n.dirtyFields:{},touchedFields:U.keepTouched?n.touchedFields:{},errors:U.keepErrors?n.errors:{},isSubmitSuccessful:U.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},mt=(A,U)=>Xe(Or(A)?A(a):A,U);return{control:{register:Pe,unregister:We,getFieldState:K,handleSubmit:at,setError:Oe,_executeSchema:O,_getWatch:de,_getDirty:X,_updateValid:C,_removeUnmounted:pe,_updateFieldArray:R,_updateDisabledField:be,_getFieldArray:ke,_reset:Xe,_resetDefaultValues:()=>Or(t.defaultValues)&&t.defaultValues().then(A=>{mt(A,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:A=>{n={...n,...A}},_disableForm:rt,_subjects:g,_proxyFormState:m,_setErrors:I,get _fields(){return s},get _formValues(){return a},get _state(){return u},set _state(A){u=A},get _defaultValues(){return o},get _names(){return c},set _names(A){c=A},get _formState(){return n},set _formState(A){n=A},get _options(){return t},set _options(A){t={...t,...A}}},trigger:ie,register:Pe,handleSubmit:at,watch:Be,setValue:me,getValues:L,reset:mt,resetField:Ee,clearErrors:Le,unregister:We,setError:Oe,setFocus:(A,U={})=>{const H=ce(s,A),oe=H&&H._f;if(oe){const ae=oe.refs?oe.refs[0]:oe.ref;ae.focus&&(ae.focus(),U.shouldSelect&&Or(ae.select)&&ae.select())}},getFieldState:K}}function Uc(e={}){const t=it.useRef(void 0),n=it.useRef(void 0),[s,o]=it.useState({isDirty:!1,isValidating:!1,isLoading:Or(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Or(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...EL(e),formState:s});const a=t.current.control;return a._options=e,fm({subject:a._subjects.state,next:u=>{Lb(u,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),it.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),it.useEffect(()=>{if(a._proxyFormState.isDirty){const u=a._getDirty();u!==s.isDirty&&a._subjects.state.next({isDirty:u})}},[a,s.isDirty]),it.useEffect(()=>{e.values&&!Gs(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,o(u=>({...u}))):a._resetDefaultValues()},[e.values,a]),it.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),it.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),it.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Db(s,a),t.current}var CL="Label",Wb=_.forwardRef((e,t)=>x.jsx(_n.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wb.displayName=CL;var Hb=Wb;const kL=kp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Gb=_.forwardRef(({className:e,...t},n)=>x.jsx(Hb,{ref:n,className:Ye(kL(),e),...t}));Gb.displayName=Hb.displayName;const $c=uL,Zb=_.createContext({}),Qa=({...e})=>x.jsx(Zb.Provider,{value:{name:e.name},children:x.jsx(hL,{...e})}),Wc=()=>{const e=_.useContext(Zb),t=_.useContext(Kb),{getFieldState:n,formState:s}=Bi(),o=n(e.name,s);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Kb=_.createContext({}),jn=_.forwardRef(({className:e,...t},n)=>{const s=_.useId();return x.jsx(Kb.Provider,{value:{id:s},children:x.jsx("div",{ref:n,className:Ye("space-y-2",e),...t})})});jn.displayName="FormItem";const Dn=_.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:o}=Wc();return x.jsx(Gb,{ref:n,className:Ye(s&&"text-destructive",e),htmlFor:o,...t})});Dn.displayName="FormLabel";const Ln=_.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:o,formMessageId:a}=Wc();return x.jsx(Pi,{ref:t,id:s,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});Ln.displayName="FormControl";const TL=_.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Wc();return x.jsx("p",{ref:n,id:s,className:Ye("text-[0.8rem] text-muted-foreground",e),...t})});TL.displayName="FormDescription";const qb=_.forwardRef(({className:e,children:t,...n},s)=>{const{error:o,formMessageId:a}=Wc(),u=o?String(o==null?void 0:o.message):t;return u?x.jsx("p",{ref:s,id:a,className:Ye("text-[0.8rem] font-medium text-destructive",e),...n,children:u}):null});qb.displayName="FormMessage";const qh=_.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?x.jsx("input",{type:t,className:Ye("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):x.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[x.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:Ye("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),x.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[x.jsx(zR,{className:"cursor-pointer",size:16})," Upload file"]})]}));qh.displayName="Input";const Yb=_.forwardRef(({className:e,...t},n)=>x.jsx("textarea",{className:Ye("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Yb.displayName="Textarea";const qe=({control:e,name:t,label:n,placeholder:s,error:o,type:a="text",className:u,disabled:c,textArea:f=!1,textDark:h,supporText:m,handleChange:g,onPrimary:v=!1})=>x.jsx(Qa,{control:e,name:t,render:({field:b})=>x.jsxs(jn,{className:Ye(u,"flex flex-col w-full relative"),children:[x.jsx(Dn,{className:Ye("text-xl",v&&"!text-on_primary",h?"text-on_surface":"text-on_surface_v"),children:n}),x.jsx(Ln,{children:x.jsx(x.Fragment,{children:f?x.jsx(Yb,{rows:3,...b,placeholder:s,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):a!=="file"?x.jsx(qh,{...b,type:a,placeholder:s,disabled:c,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):x.jsxs("div",{className:"relative",children:[x.jsx(qh,{type:"file",placeholder:s,onChange:w=>{var C;const S=((C=w.target.files)==null?void 0:C[0])||null;console.log("Выбранный файл:",S),b.onChange(S),g&&g(w)},disabled:c}),b.value&&x.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",b.value.name]})]})})}),x.jsx(qb,{className:Ye("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",o&&v?"text-teritary_04":"text-[#BA1A1A]"),children:o?o.message:m})]})}),mm=({className:e,delay:t=.15})=>x.jsxs(fs.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:Ye("flex flex-col gap-8 my-16",e),children:[x.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),x.jsx(wn,{className:"w-fit mx-auto",to:"/",children:x.jsx(Jt,{variant:"outline",children:"Вернуться на главную"})})]}),Xb=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],RL=()=>x.jsx("section",{className:"",children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10 text-center",children:"Тематические направления выставки"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(e=>x.jsx(Jw,{...e,iconClassName:"bg-teritary_04"},e.title))})]})}),PL=({className:e})=>x.jsxs("section",{className:Ye("relative w-full bg-[#FDE8C4] -z-10 py-10",e),children:[x.jsx("img",{src:"/theme-cover.png",alt:"",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),x.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(t=>x.jsx(Jw,{className:"!bg-primary_container",...t},t.title))}),x.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[x.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),x.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})]}),Qb=[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}],NL=[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/mobile.svg"}],AL=({className:e})=>x.jsx("section",{className:Ye("bg-surface_high pt-10 pb-20",e),children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10",children:"Время выставки"}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{...t,key:t.name,className:"w-full"}))}),x.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:NL.map(t=>_.createElement(AP,{...t,key:t.title,className:"w-full"}))}),x.jsx(wn,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:x.jsx(Jt,{className:"w-full",children:"Забронируйте стенд "})})]})]})}),jL=({className:e})=>x.jsx("section",{className:Ye("bg-bg_surface_container py-10 md:py-[160px]",e),children:x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-6",children:"Время выставки"}),x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{bottomClassName:"!bg-white rounded-b-[2px]",...t,key:t.name,className:"w-full"}))})]})}),DL=({className:e})=>x.jsxs("section",{className:Ye(" gap-6 relative overflow-hidden",e),children:[x.jsxs(On,{className:"md:py-20 py-10 ",children:[x.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),x.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),x.jsx("div",{className:"size-full xl:hidden",children:x.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),x.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:x.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),LL=({className:e})=>x.jsxs("section",{className:Ye("md:py-20 py-10 relative overflow-hidden",e),children:[x.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),x.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),x.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[x.jsx(wn,{to:"/stend-form",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),x.jsx(wn,{to:"/B2B-B2G",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]});function ML(e){return Object.prototype.toString.call(e)==="[object Object]"}function v0(e){return ML(e)||Array.isArray(e)}function OL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gm(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(u=>{const c=e[u],f=t[u];return typeof c=="function"?`${c}`==`${f}`:!v0(c)||!v0(f)?c===f:gm(c,f)})}function x0(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function FL(e,t){if(e.length!==t.length)return!1;const n=x0(e),s=x0(t);return n.every((o,a)=>{const u=s[a];return gm(o,u)})}function ym(e){return typeof e=="number"}function Yh(e){return typeof e=="string"}function Hc(e){return typeof e=="boolean"}function w0(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dt(e){return Math.abs(e)}function vm(e){return Math.sign(e)}function $a(e,t){return Dt(e-t)}function IL(e,t){if(e===0||t===0||Dt(e)<=Dt(t))return 0;const n=$a(Dt(e),Dt(t));return Dt(n/e)}function VL(e){return Math.round(e*100)/100}function Ja(e){return el(e).map(Number)}function wr(e){return e[Tl(e)]}function Tl(e){return Math.max(0,e.length-1)}function xm(e,t){return t===Tl(e)}function S0(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function el(e){return Object.keys(e)}function Jb(e,t){return[e,t].reduce((n,s)=>(el(s).forEach(o=>{const a=n[o],u=s[o],c=w0(a)&&w0(u);n[o]=c?Jb(a,u):u}),n),{})}function Xh(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function BL(e,t){const n={start:s,center:o,end:a};function s(){return 0}function o(f){return a(f)/2}function a(f){return t-f}function u(f,h){return Yh(e)?n[e](f):e(t,f,h)}return{measure:u}}function tl(){let e=[];function t(o,a,u,c={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(a,u,c),f=()=>o.removeEventListener(a,u,c);else{const h=o;h.addListener(u),f=()=>h.removeListener(u)}return e.push(f),s}function n(){e=e.filter(o=>o())}const s={add:t,clear:n};return s}function zL(e,t,n,s){const o=tl(),a=1e3/60;let u=null,c=0,f=0;function h(){o.add(e,"visibilitychange",()=>{e.hidden&&w()})}function m(){b(),o.clear()}function g(C){if(!f)return;u||(u=C,n(),n());const E=C-u;for(u=C,c+=E;c>=a;)n(),c-=a;const R=c/a;s(R),f&&(f=t.requestAnimationFrame(g))}function v(){f||(f=t.requestAnimationFrame(g))}function b(){t.cancelAnimationFrame(f),u=null,c=0,f=0}function w(){u=null,c=0}return{init:h,destroy:m,start:v,stop:b,update:n,render:s}}function UL(e,t){const n=t==="rtl",s=e==="y",o=s?"y":"x",a=s?"x":"y",u=!s&&n?-1:1,c=m(),f=g();function h(w){const{height:S,width:C}=w;return s?S:C}function m(){return s?"top":n?"right":"left"}function g(){return s?"bottom":n?"left":"right"}function v(w){return w*u}return{scroll:o,cross:a,startEdge:c,endEdge:f,measureSize:h,direction:v}}function Ai(e=0,t=0){const n=Dt(e-t);function s(h){return ht}function a(h){return s(h)||o(h)}function u(h){return a(h)?s(h)?e:t:h}function c(h){return n?h-n*Math.ceil((h-t)/n):h}return{length:n,max:t,min:e,constrain:u,reachedAny:a,reachedMax:o,reachedMin:s,removeOffset:c}}function e_(e,t,n){const{constrain:s}=Ai(0,e),o=e+1;let a=u(t);function u(v){return n?Dt((o+v)%o):s(v)}function c(){return a}function f(v){return a=u(v),g}function h(v){return m().set(c()+v)}function m(){return e_(e,c(),n)}const g={get:c,set:f,add:h,clone:m};return g}function $L(e,t,n,s,o,a,u,c,f,h,m,g,v,b,w,S,C,E,R){const{cross:N,direction:I}=e,T=["INPUT","SELECT","TEXTAREA"],F={passive:!1},z=tl(),O=tl(),q=Ai(50,225).constrain(b.measure(20)),te={mouse:300,touch:400},pe={mouse:500,touch:600},X=w?43:25;let de=!1,ke=0,we=0,De=!1,me=!1,Y=!1,ue=!1;function ie(Ee){if(!R)return;function Xe(It){(Hc(R)||R(Ee,It))&&We(It)}const mt=t;z.add(mt,"dragstart",It=>It.preventDefault(),F).add(mt,"touchmove",()=>{},F).add(mt,"touchend",()=>{}).add(mt,"touchstart",Xe).add(mt,"mousedown",Xe).add(mt,"touchcancel",Pe).add(mt,"contextmenu",Pe).add(mt,"click",Me,!0)}function L(){z.clear(),O.clear()}function K(){const Ee=ue?n:t;O.add(Ee,"touchmove",be,F).add(Ee,"touchend",Pe).add(Ee,"mousemove",be,F).add(Ee,"mouseup",Pe)}function Le(Ee){const Xe=Ee.nodeName||"";return T.includes(Xe)}function Oe(){return(w?pe:te)[ue?"mouse":"touch"]}function Be(Ee,Xe){const mt=g.add(vm(Ee)*-1),It=m.byDistance(Ee,!w).distance;return w||Dt(Ee)=2,!(Xe&&Ee.button!==0)&&(Le(Ee.target)||(De=!0,a.pointerDown(Ee),h.useFriction(0).useDuration(0),o.set(u),K(),ke=a.readPoint(Ee),we=a.readPoint(Ee,N),v.emit("pointerDown")))}function be(Ee){if(!Xh(Ee,s)&&Ee.touches.length>=2)return Pe(Ee);const mt=a.readPoint(Ee),It=a.readPoint(Ee,N),en=$a(mt,ke),an=$a(It,we);if(!me&&!ue&&(!Ee.cancelable||(me=en>an,!me)))return Pe(Ee);const A=a.pointerMove(Ee);en>S&&(Y=!0),h.useFriction(.3).useDuration(.75),c.start(),o.add(I(A)),Ee.preventDefault()}function Pe(Ee){const mt=m.byDistance(0,!1).index!==g.get(),It=a.pointerUp(Ee)*Oe(),en=Be(I(It),mt),an=IL(It,en),A=X-10*an,U=E+an/50;me=!1,De=!1,O.clear(),h.useDuration(A).useFriction(U),f.distance(en,!w),ue=!1,v.emit("pointerUp")}function Me(Ee){Y&&(Ee.stopPropagation(),Ee.preventDefault(),Y=!1)}function rt(){return De}return{init:ie,destroy:L,pointerDown:rt}}function WL(e,t){let s,o;function a(g){return g.timeStamp}function u(g,v){const w=`client${(v||e.scroll)==="x"?"X":"Y"}`;return(Xh(g,t)?g:g.touches[0])[w]}function c(g){return s=g,o=g,u(g)}function f(g){const v=u(g)-u(o),b=a(g)-a(s)>170;return o=g,b&&(s=g),v}function h(g){if(!s||!o)return 0;const v=u(o)-u(s),b=a(g)-a(s),w=a(g)-a(o)>170,S=v/b;return b&&!w&&Dt(S)>.1?S:0}return{pointerDown:c,pointerMove:f,pointerUp:h,readPoint:u}}function HL(){function e(n){const{offsetTop:s,offsetLeft:o,offsetWidth:a,offsetHeight:u}=n;return{top:s,right:o+a,bottom:s+u,left:o,width:a,height:u}}return{measure:e}}function GL(e){function t(s){return e*(s/100)}return{measure:t}}function ZL(e,t,n,s,o,a,u){const c=[e].concat(s);let f,h,m=[],g=!1;function v(C){return o.measureSize(u.measure(C))}function b(C){if(!a)return;h=v(e),m=s.map(v);function E(R){for(const N of R){if(g)return;const I=N.target===e,T=s.indexOf(N.target),F=I?h:m[T],z=v(I?e:s[T]);if(Dt(z-F)>=.5){C.reInit(),t.emit("resize");break}}}f=new ResizeObserver(R=>{(Hc(a)||a(C,R))&&E(R)}),n.requestAnimationFrame(()=>{c.forEach(R=>f.observe(R))})}function w(){g=!0,f&&f.disconnect()}return{init:b,destroy:w}}function KL(e,t,n,s,o,a){let u=0,c=0,f=o,h=a,m=e.get(),g=0;function v(){const F=s.get()-e.get(),z=!f;let O=0;return z?(u=0,n.set(s),e.set(s),O=F):(n.set(e),u+=F/f,u*=h,m+=u,e.add(u),O=m-g),c=vm(O),g=m,T}function b(){const F=s.get()-t.get();return Dt(F)<.001}function w(){return f}function S(){return c}function C(){return u}function E(){return N(o)}function R(){return I(a)}function N(F){return f=F,T}function I(F){return h=F,T}const T={direction:S,duration:w,velocity:C,seek:v,settled:b,useBaseFriction:R,useBaseDuration:E,useFriction:I,useDuration:N};return T}function qL(e,t,n,s,o){const a=o.measure(10),u=o.measure(50),c=Ai(.1,.99);let f=!1;function h(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function m(b){if(!h())return;const w=e.reachedMin(t.get())?"min":"max",S=Dt(e[w]-t.get()),C=n.get()-t.get(),E=c.constrain(S/u);n.subtract(C*E),!b&&Dt(C){const{min:C,max:E}=a,R=a.constrain(w),N=!S,I=xm(n,S);return N?E:I||h(C,R)?C:h(E,R)?E:R}).map(w=>parseFloat(w.toFixed(3)))}function v(){if(t<=e+o)return[a.max];if(s==="keepSnaps")return u;const{min:w,max:S}=c;return u.slice(w,S)}return{snapsContained:f,scrollContainLimit:c}}function XL(e,t,n){const s=t[0],o=n?s-e:wr(t);return{limit:Ai(o,s)}}function QL(e,t,n,s){const a=t.min+.1,u=t.max+.1,{reachedMin:c,reachedMax:f}=Ai(a,u);function h(v){return v===1?f(n.get()):v===-1?c(n.get()):!1}function m(v){if(!h(v))return;const b=e*(v*-1);s.forEach(w=>w.add(b))}return{loop:m}}function JL(e){const{max:t,length:n}=e;function s(a){const u=a-t;return n?u/-n:0}return{get:s}}function eM(e,t,n,s,o){const{startEdge:a,endEdge:u}=e,{groupSlides:c}=o,f=g().map(t.measure),h=v(),m=b();function g(){return c(s).map(S=>wr(S)[u]-S[0][a]).map(Dt)}function v(){return s.map(S=>n[a]-S[a]).map(S=>-Dt(S))}function b(){return c(h).map(S=>S[0]).map((S,C)=>S+f[C])}return{snaps:h,snapsAligned:m}}function tM(e,t,n,s,o,a){const{groupSlides:u}=o,{min:c,max:f}=s,h=m();function m(){const v=u(a),b=!e||t==="keepSnaps";return n.length===1?[a]:b?v:v.slice(c,f).map((w,S,C)=>{const E=!S,R=xm(C,S);if(E){const N=wr(C[0])+1;return S0(N)}if(R){const N=Tl(a)-wr(C)[0]+1;return S0(N,wr(C)[0])}return w})}return{slideRegistry:h}}function nM(e,t,n,s,o){const{reachedAny:a,removeOffset:u,constrain:c}=s;function f(w){return w.concat().sort((S,C)=>Dt(S)-Dt(C))[0]}function h(w){const S=e?u(w):c(w),C=t.map((R,N)=>({diff:m(R-S,0),index:N})).sort((R,N)=>Dt(R.diff)-Dt(N.diff)),{index:E}=C[0];return{index:E,distance:S}}function m(w,S){const C=[w,w+n,w-n];if(!e)return w;if(!S)return f(C);const E=C.filter(R=>vm(R)===S);return E.length?f(E):wr(C)-n}function g(w,S){const C=t[w]-o.get(),E=m(C,S);return{index:w,distance:E}}function v(w,S){const C=o.get()+w,{index:E,distance:R}=h(C),N=!e&&a(C);if(!S||N)return{index:E,distance:w};const I=t[E]-R,T=w+m(I,0);return{index:E,distance:T}}return{byDistance:v,byIndex:g,shortcut:m}}function rM(e,t,n,s,o,a,u){function c(g){const v=g.distance,b=g.index!==t.get();a.add(v),v&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(g.index),u.emit("select"))}function f(g,v){const b=o.byDistance(g,v);c(b)}function h(g,v){const b=t.clone().set(g),w=o.byIndex(b.get(),v);c(w)}return{distance:f,index:h}}function sM(e,t,n,s,o,a,u,c){const f={passive:!0,capture:!0};let h=0;function m(b){if(!c)return;function w(S){if(new Date().getTime()-h>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;const R=n.findIndex(N=>N.includes(S));ym(R)&&(o.useDuration(0),s.index(R,0),u.emit("slideFocus"))}a.add(document,"keydown",g,!1),t.forEach((S,C)=>{a.add(S,"focus",E=>{(Hc(c)||c(b,E))&&w(C)},f)})}function g(b){b.code==="Tab"&&(h=new Date().getTime())}return{init:m}}function Da(e){let t=e;function n(){return t}function s(f){t=u(f)}function o(f){t+=u(f)}function a(f){t-=u(f)}function u(f){return ym(f)?f:f.get()}return{get:n,set:s,add:o,subtract:a}}function t_(e,t){const n=e.scroll==="x"?u:c,s=t.style;let o=null,a=!1;function u(v){return`translate3d(${v}px,0px,0px)`}function c(v){return`translate3d(0px,${v}px,0px)`}function f(v){if(a)return;const b=VL(e.direction(v));b!==o&&(s.transform=n(b),o=b)}function h(v){a=!v}function m(){a||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:m,to:f,toggleActive:h}}function iM(e,t,n,s,o,a,u,c,f){const m=Ja(o),g=Ja(o).reverse(),v=E().concat(R());function b(z,O){return z.reduce((q,te)=>q-o[te],O)}function w(z,O){return z.reduce((q,te)=>b(q,O)>0?q.concat([te]):q,[])}function S(z){return a.map((O,q)=>({start:O-s[q]+.5+z,end:O+t-.5+z}))}function C(z,O,q){const te=S(O);return z.map(pe=>{const X=q?0:-n,de=q?n:0,ke=q?"end":"start",we=te[pe][ke];return{index:pe,loopPoint:we,slideLocation:Da(-1),translate:t_(e,f[pe]),target:()=>c.get()>we?X:de}})}function E(){const z=u[0],O=w(g,z);return C(O,n,!1)}function R(){const z=t-u[0]-1,O=w(m,z);return C(O,-n,!0)}function N(){return v.every(({index:z})=>{const O=m.filter(q=>q!==z);return b(O,t)<=.1})}function I(){v.forEach(z=>{const{target:O,translate:q,slideLocation:te}=z,pe=O();pe!==te.get()&&(q.to(pe),te.set(pe))})}function T(){v.forEach(z=>z.translate.clear())}return{canLoop:N,clear:T,loop:I,loopPoints:v}}function oM(e,t,n){let s,o=!1;function a(f){if(!n)return;function h(m){for(const g of m)if(g.type==="childList"){f.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(m=>{o||(Hc(n)||n(f,m))&&h(m)}),s.observe(e,{childList:!0})}function u(){s&&s.disconnect(),o=!0}return{init:a,destroy:u}}function aM(e,t,n,s){const o={};let a=null,u=null,c,f=!1;function h(){c=new IntersectionObserver(w=>{f||(w.forEach(S=>{const C=t.indexOf(S.target);o[C]=S}),a=null,u=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(w=>c.observe(w))}function m(){c&&c.disconnect(),f=!0}function g(w){return el(o).reduce((S,C)=>{const E=parseInt(C),{isIntersecting:R}=o[E];return(w&&R||!w&&!R)&&S.push(E),S},[])}function v(w=!0){if(w&&a)return a;if(!w&&u)return u;const S=g(w);return w&&(a=S),w||(u=S),S}return{init:h,destroy:m,get:v}}function lM(e,t,n,s,o,a){const{measureSize:u,startEdge:c,endEdge:f}=e,h=n[0]&&o,m=w(),g=S(),v=n.map(u),b=C();function w(){if(!h)return 0;const R=n[0];return Dt(t[c]-R[c])}function S(){if(!h)return 0;const R=a.getComputedStyle(wr(s));return parseFloat(R.getPropertyValue(`margin-${f}`))}function C(){return n.map((R,N,I)=>{const T=!N,F=xm(I,N);return T?v[N]+m:F?v[N]+g:I[N+1][c]-R[c]}).map(Dt)}return{slideSizes:v,slideSizesWithGaps:b,startGap:m,endGap:g}}function uM(e,t,n,s,o,a,u,c,f){const{startEdge:h,endEdge:m,direction:g}=e,v=ym(n);function b(E,R){return Ja(E).filter(N=>N%R===0).map(N=>E.slice(N,N+R))}function w(E){return E.length?Ja(E).reduce((R,N,I)=>{const T=wr(R)||0,F=T===0,z=N===Tl(E),O=o[h]-a[T][h],q=o[h]-a[N][m],te=!s&&F?g(u):0,pe=!s&&z?g(c):0,X=Dt(q-pe-(O+te));return I&&X>t+f&&R.push(N),z&&R.push(E.length),R},[]).map((R,N,I)=>{const T=Math.max(I[N-1]||0);return E.slice(T,R)}):[]}function S(E){return v?b(E,n):w(E)}return{groupSlides:S}}function cM(e,t,n,s,o,a,u){const{align:c,axis:f,direction:h,startIndex:m,loop:g,duration:v,dragFree:b,dragThreshold:w,inViewThreshold:S,slidesToScroll:C,skipSnaps:E,containScroll:R,watchResize:N,watchSlides:I,watchDrag:T,watchFocus:F}=a,z=2,O=HL(),q=O.measure(t),te=n.map(O.measure),pe=UL(f,h),X=pe.measureSize(q),de=GL(X),ke=BL(c,X),we=!g&&!!R,De=g||!!R,{slideSizes:me,slideSizesWithGaps:Y,startGap:ue,endGap:ie}=lM(pe,q,te,n,De,o),L=uM(pe,X,C,g,q,te,ue,ie,z),{snaps:K,snapsAligned:Le}=eM(pe,ke,q,te,L),Oe=-wr(K)+wr(Y),{snapsContained:Be,scrollContainLimit:We}=YL(X,Oe,Le,R,z),be=we?Be:Le,{limit:Pe}=XL(Oe,be,g),Me=e_(Tl(be),m,g),rt=Me.clone(),at=Ja(n),Ee=({dragHandler:bt,scrollBody:ln,scrollBounds:Tr,options:{loop:Fn}})=>{Fn||Tr.constrain(bt.pointerDown()),ln.seek()},Xe=({scrollBody:bt,translate:ln,location:Tr,offsetLocation:Fn,previousLocation:ms,scrollLooper:Gr,slideLooper:Rr,dragHandler:gs,animation:Zr,eventHandler:ys,scrollBounds:vs,options:{loop:ar}},Kn)=>{const Pr=bt.settled(),Kr=!vs.shouldConstrain(),ri=ar?Pr:Pr&&Kr;ri&&!gs.pointerDown()&&(Zr.stop(),ys.emit("settle")),ri||ys.emit("scroll");const zi=Tr.get()*Kn+ms.get()*(1-Kn);Fn.set(zi),ar&&(Gr.loop(bt.direction()),Rr.loop()),ln.to(Fn.get())},mt=zL(s,o,()=>Ee(kr),bt=>Xe(kr,bt)),It=.68,en=be[Me.get()],an=Da(en),A=Da(en),U=Da(en),H=Da(en),oe=KL(an,U,A,H,v,It),ae=nM(g,be,Oe,Pe,H),se=rM(mt,Me,rt,oe,ae,H,u),Re=JL(Pe),Fe=tl(),ut=aM(t,n,u,S),{slideRegistry:yt}=tM(we,R,be,We,L,at),Wt=sM(e,n,yt,se,oe,Fe,u,F),kr={ownerDocument:s,ownerWindow:o,eventHandler:u,containerRect:q,slideRects:te,animation:mt,axis:pe,dragHandler:$L(pe,e,s,o,H,WL(pe,o),an,mt,se,oe,ae,Me,u,de,b,w,E,It,T),eventStore:Fe,percentOfView:de,index:Me,indexPrevious:rt,limit:Pe,location:an,offsetLocation:U,previousLocation:A,options:a,resizeHandler:ZL(t,u,o,n,pe,N,O),scrollBody:oe,scrollBounds:qL(Pe,U,H,oe,de),scrollLooper:QL(Oe,Pe,U,[an,U,A,H]),scrollProgress:Re,scrollSnapList:be.map(Re.get),scrollSnaps:be,scrollTarget:ae,scrollTo:se,slideLooper:iM(pe,X,Oe,me,Y,K,be,U,n),slideFocus:Wt,slidesHandler:oM(t,u,I),slidesInView:ut,slideIndexes:at,slideRegistry:yt,slidesToScroll:L,target:H,translate:t_(pe,t)};return kr}function dM(){let e={},t;function n(h){t=h}function s(h){return e[h]||[]}function o(h){return s(h).forEach(m=>m(t,h)),f}function a(h,m){return e[h]=s(h).concat([m]),f}function u(h,m){return e[h]=s(h).filter(g=>g!==m),f}function c(){e={}}const f={init:n,emit:o,off:u,on:a,clear:c};return f}const fM={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function hM(e){function t(a,u){return Jb(a,u||{})}function n(a){const u=a.breakpoints||{},c=el(u).filter(f=>e.matchMedia(f).matches).map(f=>u[f]).reduce((f,h)=>t(f,h),{});return t(a,c)}function s(a){return a.map(u=>el(u.breakpoints||{})).reduce((u,c)=>u.concat(c),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function pM(e){let t=[];function n(a,u){return t=u.filter(({options:c})=>e.optionsAtMedia(c).active!==!1),t.forEach(c=>c.init(a,e)),u.reduce((c,f)=>Object.assign(c,{[f.name]:f}),{})}function s(){t=t.filter(a=>a.destroy())}return{init:n,destroy:s}}function Sc(e,t,n){const s=e.ownerDocument,o=s.defaultView,a=hM(o),u=pM(a),c=tl(),f=dM(),{mergeOptions:h,optionsAtMedia:m,optionsMediaQueries:g}=a,{on:v,off:b,emit:w}=f,S=pe;let C=!1,E,R=h(fM,Sc.globalOptions),N=h(R),I=[],T,F,z;function O(){const{container:at,slides:Ee}=N;F=(Yh(at)?e.querySelector(at):at)||e.children[0];const mt=Yh(Ee)?F.querySelectorAll(Ee):Ee;z=[].slice.call(mt||F.children)}function q(at){const Ee=cM(e,F,z,s,o,at,f);if(at.loop&&!Ee.slideLooper.canLoop()){const Xe=Object.assign({},at,{loop:!1});return q(Xe)}return Ee}function te(at,Ee){C||(R=h(R,at),N=m(R),I=Ee||I,O(),E=q(N),g([R,...I.map(({options:Xe})=>Xe)]).forEach(Xe=>c.add(Xe,"change",pe)),N.active&&(E.translate.to(E.location.get()),E.animation.init(),E.slidesInView.init(),E.slideFocus.init(rt),E.eventHandler.init(rt),E.resizeHandler.init(rt),E.slidesHandler.init(rt),E.options.loop&&E.slideLooper.loop(),F.offsetParent&&z.length&&E.dragHandler.init(rt),T=u.init(rt,I)))}function pe(at,Ee){const Xe=L();X(),te(h({startIndex:Xe},at),Ee),f.emit("reInit")}function X(){E.dragHandler.destroy(),E.eventStore.clear(),E.translate.clear(),E.slideLooper.clear(),E.resizeHandler.destroy(),E.slidesHandler.destroy(),E.slidesInView.destroy(),E.animation.destroy(),u.destroy(),c.clear()}function de(){C||(C=!0,c.clear(),X(),f.emit("destroy"),f.clear())}function ke(at,Ee,Xe){!N.active||C||(E.scrollBody.useBaseFriction().useDuration(Ee===!0?0:N.duration),E.scrollTo.index(at,Xe||0))}function we(at){const Ee=E.index.add(1).get();ke(Ee,at,-1)}function De(at){const Ee=E.index.add(-1).get();ke(Ee,at,1)}function me(){return E.index.add(1).get()!==L()}function Y(){return E.index.add(-1).get()!==L()}function ue(){return E.scrollSnapList}function ie(){return E.scrollProgress.get(E.location.get())}function L(){return E.index.get()}function K(){return E.indexPrevious.get()}function Le(){return E.slidesInView.get()}function Oe(){return E.slidesInView.get(!1)}function Be(){return T}function We(){return E}function be(){return e}function Pe(){return F}function Me(){return z}const rt={canScrollNext:me,canScrollPrev:Y,containerNode:Pe,internalEngine:We,destroy:de,off:b,on:v,emit:w,plugins:Be,previousScrollSnap:K,reInit:S,rootNode:be,scrollNext:we,scrollPrev:De,scrollProgress:ie,scrollSnapList:ue,scrollTo:ke,selectedScrollSnap:L,slideNodes:Me,slidesInView:Le,slidesNotInView:Oe};return te(t,n),setTimeout(()=>f.emit("init"),0),rt}Sc.globalOptions=void 0;function Rl(e={},t=[]){const n=_.useRef(e),s=_.useRef(t),[o,a]=_.useState(),[u,c]=_.useState(),f=_.useCallback(()=>{o&&o.reInit(n.current,s.current)},[o]);return _.useEffect(()=>{gm(n.current,e)||(n.current=e,f())},[e,f]),_.useEffect(()=>{FL(s.current,t)||(s.current=t,f())},[t,f]),_.useEffect(()=>{if(OL()&&u){Sc.globalOptions=Rl.globalOptions;const h=Sc(u,n.current,s.current);return a(h),()=>h.destroy()}else a(void 0)},[u,a]),[c,o]}Rl.globalOptions=void 0;const mM=[{title:"План выставки",link:""},{title:"Забронировать стенд",link:"/stend-form"},{title:"Программа ",link:""},{title:"Стать спонсором",link:"/become-sponsor"}],gM=()=>{const[e]=Rl(),t=Zh("(min-width: 1024px)"),n=Zh("(min-width: 768px)");function s(){return t?"/banners/ru/l.jpg":n?"/banners/ru/m.jpg":"/banners/ru/s.jpg"}return x.jsxs("section",{className:"flex flex-col gap-5",children:[x.jsx("div",{ref:e,className:"embla",children:x.jsx("div",{className:"embla__container",children:x.jsx("div",{className:"embla__slide",children:x.jsx("img",{src:s(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),x.jsx(On,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:mM.map(({title:o,link:a})=>x.jsx(wn,{to:a,className:"w-full",children:x.jsx(Jt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},yM=[{nums:"4,200 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],vM=()=>{const[e]=Rl();return x.jsx("section",{children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"text-center",children:[x.jsxs("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:["Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"," "]}),x.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),x.jsx("div",{ref:e,className:"embla overflow-hidden",children:x.jsx("div",{className:"flex embla__container items-center gap-6",children:yM.map(t=>x.jsx(NP,{...t,className:"embla__slide flex-[0_0_288px]"},t.text))})}),x.jsx(wn,{to:"/about",className:"mx-auto",children:x.jsx(Jt,{variant:"outline",children:"Подробнее о выставке"})})]})})},xM=()=>{const[e]=Rl({align:"start"});return x.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:x.jsx(On,{children:x.jsx("div",{ref:e,className:"embla ",children:x.jsxs("div",{className:"mb-2 flex gap-6 embla__container",children:[x.jsx(Wv,{img:"/offer-1.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Гостиницы, трансфер, визы",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете обращаться к официальным туроператорам выставки"}),x.jsx(Wv,{img:"/offer-2.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Ознакомьтесь с планом выставки ITSE 2025",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов"})]})})})})},wM=[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"}],n_=[{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}],SM=()=>x.jsxs("header",{children:[x.jsx("div",{className:"h-12 hidden lg:flex bg-teritary text-on_primary items-center overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(FR,{}),x.jsx("h4",{className:"text-sm",children:"Ашхабад, Туркменистан"})]}),x.jsx("nav",{className:"flex items-center gap-6 text-white",children:wM.map(({title:e,link:t})=>x.jsx(wn,{className:"py-2",to:t,children:e},e))})]}),x.jsx("div",{className:"flex items-center gap-6",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(VR,{size:16,strokeWidth:"3px"}),x.jsx("h4",{className:"text-sm text-white",children:"+99371871812"})]})})]})}),x.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between ",children:[x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx(wn,{to:"/",children:x.jsx(Qw,{})}),x.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n_.map(({title:e,link:t})=>x.jsxs(wn,{to:t,className:"flex items-center gap-2",children:[e," ",x.jsx("img",{src:"/chevron.svg"})]},e))})]}),x.jsx("div",{className:"flex items-center",children:x.jsx(bM,{})}),x.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:"Официальная поддержка"}),x.jsx(wn,{to:"/B2B-B2G",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:"B2B | B2G встречи"})})]})]})})]}),bM=()=>{const[e,t]=_.useState(!1);return x.jsxs(bP,{onOpenChange:()=>t(!e),open:e,children:[x.jsx(_P,{children:x.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"})]})}),x.jsxs(Yw,{className:"overflow-y-auto",children:[x.jsx(EP,{}),x.jsxs(Xw,{className:"mt-16 flex flex-col gap-2",children:[x.jsx(wn,{to:"",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),x.jsx(wn,{to:"/B2B-B2G",onClick:()=>t(!1),children:x.jsx(Jt,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),x.jsx("hr",{className:"border-slate-500/20 my-8"}),x.jsx("div",{className:"flex flex-col gap-6",children:n_.map(n=>x.jsx(wn,{onClick:()=>t(!1),className:"h-10 text-on_surface ",to:n.link,children:n.title},n.title))})]})]})},_M=()=>x.jsx("footer",{className:"py-5 bg-primary",children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[x.jsx(Qw,{}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/inst.svg"}),x.jsx("img",{src:"/in.svg"}),x.jsx("img",{src:"/x.svg"})]})]}),x.jsx("hr",{className:"border-white/50"}),x.jsx("h5",{className:"text-base text-center normal text-white",children:"©2025 Все права защищены"})]})}),On=({className:e,children:t})=>x.jsx("div",{className:Ye("w-full mx-auto max-w-[1240px] px-4",e),children:t}),Gc=({title:e})=>x.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[x.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),x.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});function EM(){return x.jsxs("main",{className:"flex flex-col min-h-screen",children:[x.jsx(SM,{}),x.jsx("div",{className:"flex-auto",children:x.jsx(mk,{})}),x.jsx(_M,{})]})}const b0=(e,t,n)=>{if(e&&"reportValidity"in e){const s=ce(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},r_=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?b0(s.ref,n,e):s.refs&&s.refs.forEach(o=>b0(o,n,e))}},CM=(e,t)=>{t.shouldUseNativeValidation&&r_(e,t);const n={};for(const s in e){const o=ce(t.fields,s),a=Object.assign(e[s]||{},{ref:o&&o.ref});if(kM(t.names||Object.keys(e),s)){const u=Object.assign({},ce(n,s));pt(u,"root",a),pt(n,s,u)}else pt(n,s,a)}return n},kM=(e,t)=>e.some(n=>n.startsWith(t+"."));var TM=function(e,t){for(var n={};e.length;){var s=e[0],o=s.code,a=s.message,u=s.path.join(".");if(!n[u])if("unionErrors"in s){var c=s.unionErrors[0].errors[0];n[u]={message:c.message,type:c.code}}else n[u]={message:a,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(m){return m.errors.forEach(function(g){return e.push(g)})}),t){var f=n[u].types,h=f&&f[s.code];n[u]=Fb(u,t,n,o,h?[].concat(h,s.message):s.message)}e.shift()}return n},Zc=function(e,t,n){return n===void 0&&(n={}),function(s,o,a){try{return Promise.resolve(function(u,c){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(h){return a.shouldUseNativeValidation&&r_({},a),{errors:{},values:n.raw?s:h}})}catch(h){return c(h)}return f&&f.then?f.then(void 0,c):f}(0,function(u){if(function(c){return Array.isArray(c==null?void 0:c.errors)}(u))return{values:{},errors:CM(TM(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};function s_(e,t){return function(){return e.apply(t,arguments)}}const{toString:RM}=Object.prototype,{getPrototypeOf:wm}=Object,Kc=(e=>t=>{const n=RM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cr=e=>(e=e.toLowerCase(),t=>Kc(t)===e),qc=e=>t=>typeof t===e,{isArray:Fo}=Array,nl=qc("undefined");function PM(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const i_=Cr("ArrayBuffer");function NM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i_(e.buffer),t}const AM=qc("string"),Gn=qc("function"),o_=qc("number"),Yc=e=>e!==null&&typeof e=="object",jM=e=>e===!0||e===!1,sc=e=>{if(Kc(e)!=="object")return!1;const t=wm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DM=Cr("Date"),LM=Cr("File"),MM=Cr("Blob"),OM=Cr("FileList"),FM=e=>Yc(e)&&Gn(e.pipe),IM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Kc(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},VM=Cr("URLSearchParams"),[BM,zM,UM,$M]=["ReadableStream","Request","Response","Headers"].map(Cr),WM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Fo(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l_=e=>!nl(e)&&e!==Ci;function Qh(){const{caseless:e}=l_(this)&&this||{},t={},n=(s,o)=>{const a=e&&a_(t,o)||o;sc(t[a])&&sc(s)?t[a]=Qh(t[a],s):sc(s)?t[a]=Qh({},s):Fo(s)?t[a]=s.slice():t[a]=s};for(let s=0,o=arguments.length;s(Pl(t,(o,a)=>{n&&Gn(o)?e[a]=s_(o,n):e[a]=o},{allOwnKeys:s}),e),GM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZM=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},KM=(e,t,n,s)=>{let o,a,u;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!s||s(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&wm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},YM=e=>{if(!e)return null;if(Fo(e))return e;let t=e.length;if(!o_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wm(Uint8Array)),QM=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},JM=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},eO=Cr("HTMLFormElement"),tO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),_0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nO=Cr("RegExp"),u_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pl(n,(o,a)=>{let u;(u=t(o,a,e))!==!1&&(s[a]=u||o)}),Object.defineProperties(e,s)},rO=e=>{u_(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Gn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sO=(e,t)=>{const n={},s=o=>{o.forEach(a=>{n[a]=!0})};return Fo(e)?s(e):s(String(e).split(t)),n},iO=()=>{},oO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yh="abcdefghijklmnopqrstuvwxyz",E0="0123456789",c_={DIGIT:E0,ALPHA:yh,ALPHA_DIGIT:yh+yh.toUpperCase()+E0},aO=(e=16,t=c_.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function lO(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uO=e=>{const t=new Array(10),n=(s,o)=>{if(Yc(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const a=Fo(s)?[]:{};return Pl(s,(u,c)=>{const f=n(u,o+1);!nl(f)&&(a[c]=f)}),t[o]=void 0,a}}return s};return n(e,0)},cO=Cr("AsyncFunction"),dO=e=>e&&(Yc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),d_=((e,t)=>e?setImmediate:t?((n,s)=>(Ci.addEventListener("message",({source:o,data:a})=>{o===Ci&&a===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Ci.postMessage)),fO=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||d_,Z={isArray:Fo,isArrayBuffer:i_,isBuffer:PM,isFormData:IM,isArrayBufferView:NM,isString:AM,isNumber:o_,isBoolean:jM,isObject:Yc,isPlainObject:sc,isReadableStream:BM,isRequest:zM,isResponse:UM,isHeaders:$M,isUndefined:nl,isDate:DM,isFile:LM,isBlob:MM,isRegExp:nO,isFunction:Gn,isStream:FM,isURLSearchParams:VM,isTypedArray:XM,isFileList:OM,forEach:Pl,merge:Qh,extend:HM,trim:WM,stripBOM:GM,inherits:ZM,toFlatObject:KM,kindOf:Kc,kindOfTest:Cr,endsWith:qM,toArray:YM,forEachEntry:QM,matchAll:JM,isHTMLForm:eO,hasOwnProperty:_0,hasOwnProp:_0,reduceDescriptors:u_,freezeMethods:rO,toObjectSet:sO,toCamelCase:tO,noop:iO,toFiniteNumber:oO,findKey:a_,global:Ci,isContextDefined:l_,ALPHABET:c_,generateString:aO,isSpecCompliantForm:lO,toJSONObject:uO,isAsyncFn:cO,isThenable:dO,setImmediate:d_,asap:fO};function Qe(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const f_=Qe.prototype,h_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{h_[e]={value:e}});Object.defineProperties(Qe,h_);Object.defineProperty(f_,"isAxiosError",{value:!0});Qe.from=(e,t,n,s,o,a)=>{const u=Object.create(f_);return Z.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Qe.call(u,e.message,t,n,s,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const hO=null;function Jh(e){return Z.isPlainObject(e)||Z.isArray(e)}function p_(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function C0(e,t,n){return e?e.concat(t).map(function(o,a){return o=p_(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function pO(e){return Z.isArray(e)&&!e.some(Jh)}const mO=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Xc(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!Z.isUndefined(C[S])});const s=n.metaTokens,o=n.visitor||m,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(Z.isDate(w))return w.toISOString();if(!f&&Z.isBlob(w))throw new Qe("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(w)||Z.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,S,C){let E=w;if(w&&!C&&typeof w=="object"){if(Z.endsWith(S,"{}"))S=s?S:S.slice(0,-2),w=JSON.stringify(w);else if(Z.isArray(w)&&pO(w)||(Z.isFileList(w)||Z.endsWith(S,"[]"))&&(E=Z.toArray(w)))return S=p_(S),E.forEach(function(N,I){!(Z.isUndefined(N)||N===null)&&t.append(u===!0?C0([S],I,a):u===null?S:S+"[]",h(N))}),!1}return Jh(w)?!0:(t.append(C0(C,S,a),h(w)),!1)}const g=[],v=Object.assign(mO,{defaultVisitor:m,convertValue:h,isVisitable:Jh});function b(w,S){if(!Z.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(w),Z.forEach(w,function(E,R){(!(Z.isUndefined(E)||E===null)&&o.call(t,E,Z.isString(R)?R.trim():R,S,v))===!0&&b(E,S?S.concat(R):[R])}),g.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function k0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Sm(e,t){this._pairs=[],e&&Xc(e,this,t)}const m_=Sm.prototype;m_.append=function(t,n){this._pairs.push([t,n])};m_.toString=function(t){const n=t?function(s){return t.call(this,s,k0)}:k0;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g_(e,t,n){if(!t)return e;const s=n&&n.encode||gO;Z.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Sm(t,n).toString(s),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class T0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(s){s!==null&&t(s)})}}const y_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yO=typeof URLSearchParams<"u"?URLSearchParams:Sm,vO=typeof FormData<"u"?FormData:null,xO=typeof Blob<"u"?Blob:null,wO={isBrowser:!0,classes:{URLSearchParams:yO,FormData:vO,Blob:xO},protocols:["http","https","file","blob","url","data"]},bm=typeof window<"u"&&typeof document<"u",ep=typeof navigator=="object"&&navigator||void 0,SO=bm&&(!ep||["ReactNative","NativeScript","NS"].indexOf(ep.product)<0),bO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_O=bm&&window.location.href||"http://localhost",EO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bm,hasStandardBrowserEnv:SO,hasStandardBrowserWebWorkerEnv:bO,navigator:ep,origin:_O},Symbol.toStringTag,{value:"Module"})),pn={...EO,...wO};function CO(e,t){return Xc(e,new pn.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,a){return pn.isNode&&Z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kO(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TO(e){const t={},n=Object.keys(e);let s;const o=n.length;let a;for(s=0;s=n.length;return u=!u&&Z.isArray(o)?o.length:u,f?(Z.hasOwnProp(o,u)?o[u]=[o[u],s]:o[u]=s,!c):((!o[u]||!Z.isObject(o[u]))&&(o[u]=[]),t(n,s,o[u],a)&&Z.isArray(o[u])&&(o[u]=TO(o[u])),!c)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(s,o)=>{t(kO(s),o,n,0)}),n}return null}function RO(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Nl={transitional:y_,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(v_(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return CO(t,this.formSerializer).toString();if((c=Z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xc(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),RO(t)):t}],transformResponse:[function(t){const n=this.transitional||Nl.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(s&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?Qe.from(c,Qe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pn.classes.FormData,Blob:pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Nl.headers[e]={}});const PO=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NO=e=>{const t={};let n,s,o;return e&&e.split(` + `),()=>{document.head.removeChild(b)}},[t]),x.jsx(jP,{isPresent:t,childRef:o,sizeRef:a,children:_.cloneElement(e,{ref:o})})}const LP=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:u,anchorX:c})=>{const f=Np(MP),h=_.useId(),m=_.useCallback(v=>{f.set(v,!0);for(const b of f.values())if(!b)return;s&&s()},[f,s]),g=_.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:m,register:v=>(f.set(v,!1),()=>f.delete(v))}),a?[Math.random(),m]:[n,m]);return _.useMemo(()=>{f.forEach((v,b)=>f.set(b,!1))},[n]),_.useEffect(()=>{!n&&!f.size&&s&&s()},[n]),u==="popLayout"&&(e=x.jsx(DP,{isPresent:n,anchorX:c,children:e})),x.jsx(Mc.Provider,{value:g,children:e})};function MP(){return new Map}function tS(e=!0){const t=_.useContext(Mc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=t,a=_.useId();_.useEffect(()=>{e&&o(a)},[e]);const u=_.useCallback(()=>e&&s&&s(a),[a,s,e]);return!n&&s?[!1,u]:[!0]}const Wu=e=>e.key||"";function Hv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const jp=typeof window<"u",nS=jp?_.useLayoutEffect:_.useEffect,Oa=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:u=!1,anchorX:c="left"})=>{const[f,h]=tS(u),m=_.useMemo(()=>Hv(e),[e]),g=u&&!f?[]:m.map(Wu),v=_.useRef(!0),b=_.useRef(m),w=Np(()=>new Map),[S,C]=_.useState(m),[E,R]=_.useState(m);nS(()=>{v.current=!1,b.current=m;for(let T=0;T{const F=Wu(T),z=u&&!f?!1:m===E||g.includes(F),O=()=>{if(w.has(F))w.set(F,!0);else return;let q=!0;w.forEach(te=>{te||(q=!1)}),q&&(I==null||I(),R(b.current),u&&(h==null||h()),s&&s())};return x.jsx(LP,{isPresent:z,initial:!v.current||n?void 0:!1,custom:z?void 0:t,presenceAffectsLayout:o,mode:a,onExitComplete:z?void 0:O,anchorX:c,children:T},F)})})},Hn=e=>e;let Nh=Hn;const OP={skipAnimations:!1,useManualTiming:!1};function FP(e){let t=new Set,n=new Set,s=!1,o=!1;const a=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(f.schedule(h),e()),h(u)}const f={schedule:(h,m=!1,g=!1)=>{const b=g&&s?t:n;return m&&a.add(h),b.has(h)||b.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(u=h,s){o=!0;return}s=!0,[t,n]=[n,t],t.forEach(c),t.clear(),s=!1,o&&(o=!1,f.process(h))}};return f}const Hu=["read","resolveKeyframes","update","preRender","render","postRender"],IP=40;function rS(e,t){let n=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,u=Hu.reduce((E,R)=>(E[R]=FP(a),E),{}),{read:c,resolveKeyframes:f,update:h,preRender:m,render:g,postRender:v}=u,b=()=>{const E=performance.now();n=!1,o.delta=s?1e3/60:Math.max(Math.min(E-o.timestamp,IP),1),o.timestamp=E,o.isProcessing=!0,c.process(o),f.process(o),h.process(o),m.process(o),g.process(o),v.process(o),o.isProcessing=!1,n&&t&&(s=!1,e(b))},w=()=>{n=!0,s=!0,o.isProcessing||e(b)};return{schedule:Hu.reduce((E,R)=>{const N=u[R];return E[R]=(I,T=!1,F=!1)=>(n||w(),N.schedule(I,T,F)),E},{}),cancel:E=>{for(let R=0;RGv[e].some(n=>!!t[n])};function VP(e){for(const t in e)Ro[t]={...Ro[t],...e[t]}}const BP=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 dc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BP.has(e)}let iS=e=>!dc(e);function zP(e){e&&(iS=t=>t.startsWith("on")?!dc(t):e(t))}try{zP(require("@emotion/is-prop-valid").default)}catch{}function UP(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(iS(o)||n===!0&&dc(o)||!t&&!dc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function $P(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Oc=_.createContext({});function Ga(e){return typeof e=="string"||Array.isArray(e)}function Fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Dp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Lp=["initial",...Dp];function Ic(e){return Fc(e.animate)||Lp.some(t=>Ga(e[t]))}function oS(e){return!!(Ic(e)||e.variants)}function WP(e,t){if(Ic(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Ga(n)?n:void 0,animate:Ga(s)?s:void 0}}return e.inherit!==!1?t:{}}function HP(e){const{initial:t,animate:n}=WP(e,_.useContext(Oc));return _.useMemo(()=>({initial:t,animate:n}),[Zv(t),Zv(n)])}function Zv(e){return Array.isArray(e)?e.join(" "):e}const GP=Symbol.for("motionComponentSymbol");function xo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZP(e,t,n){return _.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):xo(n)&&(n.current=s))},[t])}const Mp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),KP="framerAppearId",aS="data-"+Mp(KP),{schedule:Op,cancel:lI}=rS(queueMicrotask,!1),lS=_.createContext({});function qP(e,t,n,s,o){var a,u;const{visualElement:c}=_.useContext(Oc),f=_.useContext(sS),h=_.useContext(Mc),m=_.useContext(Ap).reducedMotion,g=_.useRef(null);s=s||f.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,b=_.useContext(lS);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&YP(g.current,n,o,b);const w=_.useRef(!1);_.useInsertionEffect(()=>{v&&w.current&&v.update(n,h)});const S=n[aS],C=_.useRef(!!S&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,S))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,S)));return nS(()=>{v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Op.render(v.render),C.current&&v.animationState&&v.animationState.animateChanges())}),_.useEffect(()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)===null||E===void 0||E.call(window,S)}),C.current=!1))}),v}function YP(e,t,n,s){const{layoutId:o,layout:a,drag:u,dragConstraints:c,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:uS(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!u||c&&xo(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:s,layoutScroll:f,layoutRoot:h})}function uS(e){if(e)return e.options.allowProjection!==!1?e.projection:uS(e.parent)}function XP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:o}){var a,u;e&&VP(e);function c(h,m){let g;const v={..._.useContext(Ap),...h,layoutId:QP(h)},{isStatic:b}=v,w=HP(h),S=s(h,b);if(!b&&jp){JP();const C=eN(v);g=C.MeasureLayout,w.visualElement=qP(o,S,v,t,C.ProjectionNode)}return x.jsxs(Oc.Provider,{value:w,children:[g&&w.visualElement?x.jsx(g,{visualElement:w.visualElement,...v}):null,n(o,h,ZP(S,w.visualElement,m),S,b,w.visualElement)]})}c.displayName=`motion.${typeof o=="string"?o:`create(${(u=(a=o.displayName)!==null&&a!==void 0?a:o.name)!==null&&u!==void 0?u:""})`}`;const f=_.forwardRef(c);return f[GP]=o,f}function QP({layoutId:e}){const t=_.useContext(Pp).id;return t&&e!==void 0?t+"-"+e:e}function JP(e,t){_.useContext(sS).strict}function eN(e){const{drag:t,layout:n}=Ro;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const tN=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(tN.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kv(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ip(e,t,n,s){if(typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,a]=Kv(s);t=t(n!==void 0?n:e.custom,o,a)}return t}const Ah=e=>Array.isArray(e),nN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rN=e=>Ah(e)?e[e.length-1]||0:e,mn=e=>!!(e&&e.getVelocity);function ec(e){const t=mn(e)?e.get():e;return nN(t)?t.toValue():t}function sN({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,o,a){const u={latestValues:iN(s,o,a,e),renderState:t()};return n&&(u.onMount=c=>n({props:s,current:c,...u}),u.onUpdate=c=>n(c)),u}const cS=e=>(t,n)=>{const s=_.useContext(Oc),o=_.useContext(Mc),a=()=>sN(e,t,s,o);return n?a():Np(a)};function iN(e,t,n,s){const o={},a=s(e,{});for(const v in a)o[v]=ec(a[v]);let{initial:u,animate:c}=e;const f=Ic(e),h=oS(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const g=m?c:u;if(g&&typeof g!="boolean"&&!Fc(g)){const v=Array.isArray(g)?g:[g];for(let b=0;bt=>typeof t=="string"&&t.startsWith(e),Vp=dS("--"),oN=dS("var(--"),Bp=e=>oN(e)?aN.test(e.split("/*")[0].trim()):!1,aN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hs=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Za={...Oo,transform:e=>hs(0,1,e)},Gu={...Oo,default:1},bl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ws=bl("deg"),Vr=bl("%"),ze=bl("px"),lN=bl("vh"),uN=bl("vw"),qv={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},cN={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze},dN={rotate:Ws,rotateX:Ws,rotateY:Ws,rotateZ:Ws,scale:Gu,scaleX:Gu,scaleY:Gu,scaleZ:Gu,skew:Ws,skewX:Ws,skewY:Ws,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:Za,originX:qv,originY:qv,originZ:ze},Yv={...Oo,transform:Math.round},zp={...cN,...dN,zIndex:Yv,size:ze,fillOpacity:Za,strokeOpacity:Za,numOctaves:Yv},fN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hN=Mo.length;function pN(e,t,n){let s="",o=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}}),hS=()=>({...Wp(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pS(e,{style:t,vars:n},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const a in n)e.style.setProperty(a,n[a])}const mS=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 gS(e,t,n,s){pS(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(mS.has(o)?o:Mp(o),t.attrs[o])}const Ka={};function xN(e){for(const t in e)Ka[t]=e[t],Vp(t)&&(Ka[t].isCSSVariable=!0)}function yS(e,{layout:t,layoutId:n}){return Vi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ka[e]||e==="opacity")}function Gp(e,t,n){var s;const{style:o}=e,a={};for(const u in o)(mn(o[u])||t.style&&mn(t.style[u])||yS(u,e)||((s=n==null?void 0:n.getValue(u))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(a[u]=o[u]);return a}function vS(e,t,n){const s=Gp(e,t,n);for(const o in e)if(mn(e[o])||mn(t[o])){const a=Mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[a]=e[o]}return s}function wN(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Qv=["x","y","width","height","cx","cy","r"],SN={useVisualState:cS({scrapeMotionValuesFromProps:vS,createRenderState:hS,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:o})=>{if(!n)return;let a=!!e.drag;if(!a){for(const c in o)if(Vi.has(c)){a=!0;break}}if(!a)return;let u=!t;if(t)for(let c=0;c{wN(n,s),kt.render(()=>{$p(s,o,Hp(n.tagName),e.transformTemplate),gS(n,s)})})}})},bN={useVisualState:cS({scrapeMotionValuesFromProps:Gp,createRenderState:Wp})};function xS(e,t,n){for(const s in t)!mn(t[s])&&!yS(s,n)&&(e[s]=t[s])}function _N({transformTemplate:e},t){return _.useMemo(()=>{const n=Wp();return Up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function EN(e,t){const n=e.style||{},s={};return xS(s,n,e),Object.assign(s,_N(e,t)),s}function CN(e,t){const n={},s=EN(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function kN(e,t,n,s){const o=_.useMemo(()=>{const a=hS();return $p(a,t,Hp(s),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};xS(a,e.style,e),o.style={...a,...o.style}}return o}function TN(e=!1){return(n,s,o,{latestValues:a},u)=>{const f=(Fp(n)?kN:CN)(s,a,u,n),h=UP(s,typeof n=="string",e),m=n!==_.Fragment?{...h,...f,ref:o}:{},{children:g}=s,v=_.useMemo(()=>mn(g)?g.get():g,[g]);return _.createElement(n,{...m,children:v})}}function RN(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const u={...Fp(s)?SN:bN,preloadedFeatures:e,useRender:TN(o),createVisualElement:t,Component:s};return XP(u)}}function wS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(tc===void 0&&Br.set(rn.isProcessing||OP.useManualTiming?rn.timestamp:performance.now()),tc),set:e=>{tc=e,queueMicrotask(PN)}};function Kp(e,t){e.indexOf(t)===-1&&e.push(t)}function qp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yp{constructor(){this.subscriptions=[]}add(t){return Kp(this.subscriptions,t),()=>qp(this.subscriptions,t)}notify(t,n,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,s);else for(let a=0;a!isNaN(parseFloat(e));class AN{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{const a=Br.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Br.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yp);const s=this.events[t].add(n);return t==="change"?()=>{s(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Jv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jv);return bS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 qa(e,t){return new AN(e,t)}function jN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qa(n))}function DN(e,t){const n=Vc(e,t);let{transitionEnd:s={},transition:o={},...a}=n||{};a={...a,...s};for(const u in a){const c=rN(a[u]);jN(e,u,c)}}function LN(e){return!!(mn(e)&&e.add)}function jh(e,t){const n=e.getValue("willChange");if(LN(n))return n.add(t)}function _S(e){return e.props[aS]}function Xp(e){let t;return()=>(t===void 0&&(t=e()),t)}const MN=Xp(()=>window.ScrollTimeline!==void 0);class ON{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,n){for(let s=0;s{if(MN()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{s.forEach((o,a)=>{o&&o(),this.animations[a].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 n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class FN extends ON{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const cs=e=>e*1e3,ds=e=>e/1e3;function Qp(e){return typeof e=="function"}function ex(e,t){e.timeline=t,e.onfinish=null}const Jp=e=>Array.isArray(e)&&typeof e[0]=="number",IN={linearEasing:void 0};function VN(e,t){const n=Xp(e);return()=>{var s;return(s=IN[t])!==null&&s!==void 0?s:n()}}const fc=VN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Po=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},ES=(e,t,n=10)=>{let s="";const o=Math.max(Math.round(t/n),2);for(let a=0;a`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Dh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function kS(e,t){if(e)return typeof e=="function"&&fc()?ES(e,t):Jp(e)?Na(e):Array.isArray(e)?e.map(n=>kS(n,t)||Dh.easeOut):Dh[e]}const TS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BN=1e-7,zN=12;function UN(e,t,n,s,o){let a,u,c=0;do u=t+(n-t)/2,a=TS(u,s,o)-e,a>0?n=u:t=u;while(Math.abs(a)>BN&&++cUN(a,0,1,e,n);return a=>a===0||a===1?a:TS(o(a),t,s)}const RS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PS=e=>t=>1-e(1-t),NS=_l(.33,1.53,.69,.99),em=PS(NS),AS=RS(em),jS=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),tm=e=>1-Math.sin(Math.acos(e)),DS=PS(tm),LS=RS(tm),MS=e=>/^0[^.\s]+$/u.test(e);function $N(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||MS(e):!0}const Fa=e=>Math.round(e*1e5)/1e5,nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WN(e){return e==null}const HN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rm=(e,t)=>n=>!!(typeof n=="string"&&HN.test(n)&&n.startsWith(e)||t&&!WN(n)&&Object.prototype.hasOwnProperty.call(n,t)),OS=(e,t,n)=>s=>{if(typeof s!="string")return s;const[o,a,u,c]=s.match(nm);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(u),alpha:c!==void 0?parseFloat(c):1}},GN=e=>hs(0,255,e),nh={...Oo,transform:e=>Math.round(GN(e))},_i={test:rm("rgb","red"),parse:OS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+nh.transform(e)+", "+nh.transform(t)+", "+nh.transform(n)+", "+Fa(Za.transform(s))+")"};function ZN(e){let t="",n="",s="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Lh={test:rm("#"),parse:ZN,transform:_i.transform},wo={test:rm("hsl","hue"),parse:OS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Fa(t))+", "+Vr.transform(Fa(n))+", "+Fa(Za.transform(s))+")"},hn={test:e=>_i.test(e)||Lh.test(e)||wo.test(e),parse:e=>_i.test(e)?_i.parse(e):wo.test(e)?wo.parse(e):Lh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_i.transform(e):wo.transform(e)},KN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qN(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KN))===null||n===void 0?void 0:n.length)||0)>0}const FS="number",IS="color",YN="var",XN="var(",tx="${}",QN=/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 Ya(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},o=[];let a=0;const c=t.replace(QN,f=>(hn.test(f)?(s.color.push(a),o.push(IS),n.push(hn.parse(f))):f.startsWith(XN)?(s.var.push(a),o.push(YN),n.push(f)):(s.number.push(a),o.push(FS),n.push(parseFloat(f))),++a,tx)).split(tx);return{values:n,split:c,indexes:s,types:o}}function VS(e){return Ya(e).values}function BS(e){const{split:t,types:n}=Ya(e),s=t.length;return o=>{let a="";for(let u=0;utypeof e=="number"?0:e;function eA(e){const t=VS(e);return BS(e)(t.map(JN))}const Ys={test:qN,parse:VS,createTransformer:BS,getAnimatableNone:eA},tA=new Set(["brightness","contrast","saturate","opacity"]);function nA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(nm)||[];if(!s)return e;const o=n.replace(s,"");let a=tA.has(t)?1:0;return s!==n&&(a*=100),t+"("+a+o+")"}const rA=/\b([a-z-]*)\(.*?\)/gu,Mh={...Ys,getAnimatableNone:e=>{const t=e.match(rA);return t?t.map(nA).join(" "):e}},sA={...zp,color:hn,backgroundColor:hn,outlineColor:hn,fill:hn,stroke:hn,borderColor:hn,borderTopColor:hn,borderRightColor:hn,borderBottomColor:hn,borderLeftColor:hn,filter:Mh,WebkitFilter:Mh},sm=e=>sA[e];function zS(e,t){let n=sm(e);return n!==Mh&&(n=Ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iA=new Set(["auto","none","0"]);function oA(e,t,n){let s=0,o;for(;se===Oo||e===ze,rx=(e,t)=>parseFloat(e.split(", ")[t]),sx=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return rx(o[1],t);{const a=s.match(/^matrix\((.+)\)$/u);return a?rx(a[1],e):0}},aA=new Set(["x","y","z"]),lA=Mo.filter(e=>!aA.has(e));function uA(e){const t=[];return lA.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const No={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sx(4,13),y:sx(5,14)};No.translateX=No.x;No.translateY=No.y;const ki=new Set;let Oh=!1,Fh=!1;function US(){if(Fh){const e=Array.from(ki).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const o=uA(s);o.length&&(n.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=n.get(s);o&&o.forEach(([a,u])=>{var c;(c=s.getValue(a))===null||c===void 0||c.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fh=!1,Oh=!1,ki.forEach(e=>e.complete()),ki.clear()}function $S(){ki.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fh=!0)})}function cA(){$S(),US()}class im{constructor(t,n,s,o,a,u=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=o,this.element=a,this.isAsync=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ki.add(this),Oh||(Oh=!0,kt.read($S),kt.resolveKeyframes(US))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:o}=this;for(let a=0;a/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fA(e){const t=dA.exec(e);if(!t)return[,];const[,n,s,o]=t;return[`--${n??s}`,o]}function HS(e,t,n=1){const[s,o]=fA(e);if(!s)return;const a=window.getComputedStyle(t).getPropertyValue(s);if(a){const u=a.trim();return WS(u)?parseFloat(u):u}return Bp(o)?HS(o,t,n+1):o}const GS=e=>t=>t.test(e),hA={test:e=>e==="auto",parse:e=>e},ZS=[Oo,ze,Vr,Ws,uN,lN,hA],ix=e=>ZS.find(GS(e));class KS extends im{constructor(t,n,s,o,a){super(t,n,s,o,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const ox=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ys.test(e)||e==="0")&&!e.startsWith("url("));function pA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Bc(e,{repeat:t,repeatType:n="loop"},s){const o=e.filter(gA),a=t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const yA=40;class qS{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Br.now(),this.options={autoplay:t,delay:n,type:s,repeat:o,repeatDelay:a,repeatType:u,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Br.now(),this.hasAttemptedResolve=!0;const{name:s,type:o,velocity:a,delay:u,onComplete:c,onUpdate:f,isGenerator:h}=this.options;if(!h&&!mA(t,s,o,a))if(u)this.options.duration=0;else{f&&f(Bc(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ih=2e4;function YS(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=Ih?1/0:t}const jt=(e,t,n)=>e+(t-e)*n;function rh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vA({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let o=0,a=0,u=0;if(!t)o=a=u=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;o=rh(f,c,e+1/3),a=rh(f,c,e),u=rh(f,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(u*255),alpha:s}}function hc(e,t){return n=>n>0?t:e}const sh=(e,t,n)=>{const s=e*e,o=n*(t*t-s)+s;return o<0?0:Math.sqrt(o)},xA=[Lh,_i,wo],wA=e=>xA.find(t=>t.test(e));function ax(e){const t=wA(e);if(!t)return!1;let n=t.parse(e);return t===wo&&(n=vA(n)),n}const lx=(e,t)=>{const n=ax(e),s=ax(t);if(!n||!s)return hc(e,t);const o={...n};return a=>(o.red=sh(n.red,s.red,a),o.green=sh(n.green,s.green,a),o.blue=sh(n.blue,s.blue,a),o.alpha=jt(n.alpha,s.alpha,a),_i.transform(o))},SA=(e,t)=>n=>t(e(n)),El=(...e)=>e.reduce(SA),Vh=new Set(["none","hidden"]);function bA(e,t){return Vh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _A(e,t){return n=>jt(e,t,n)}function om(e){return typeof e=="number"?_A:typeof e=="string"?Bp(e)?hc:hn.test(e)?lx:kA:Array.isArray(e)?XS:typeof e=="object"?hn.test(e)?lx:EA:hc}function XS(e,t){const n=[...e],s=n.length,o=e.map((a,u)=>om(a)(a,t[u]));return a=>{for(let u=0;u{for(const a in s)n[a]=s[a](o);return n}}function CA(e,t){var n;const s=[],o={color:0,var:0,number:0};for(let a=0;a{const n=Ys.createTransformer(t),s=Ya(e),o=Ya(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Vh.has(e)&&!o.values.length||Vh.has(t)&&!s.values.length?bA(e,t):El(XS(CA(s,o),o.values),n):hc(e,t)};function QS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?jt(e,t,n):om(e)(e,t)}const TA=5;function JS(e,t,n){const s=Math.max(t-TA,0);return bS(n-e(s),t-s)}const Ft={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ux=.001;function RA({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:s=Ft.mass}){let o,a,u=1-t;u=hs(Ft.minDamping,Ft.maxDamping,u),e=hs(Ft.minDuration,Ft.maxDuration,ds(e)),u<1?(o=h=>{const m=h*u,g=m*e,v=m-n,b=Bh(h,u),w=Math.exp(-g);return ux-v/b*w},a=h=>{const g=h*u*e,v=g*n+n,b=Math.pow(u,2)*Math.pow(h,2)*e,w=Math.exp(-g),S=Bh(Math.pow(h,2),u);return(-o(h)+ux>0?-1:1)*((v-b)*w)/S}):(o=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-.001+m*g},a=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,f=NA(o,a,c);if(e=cs(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:u*2*Math.sqrt(s*h),duration:e}}}const PA=12;function NA(e,t,n){let s=n;for(let o=1;oe[n]!==void 0)}function DA(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!cx(e,jA)&&cx(e,AA))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),o=s*s,a=2*hs(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ft.mass,stiffness:o,damping:a}}else{const n=RA(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function eb(e=Ft.visualDuration,t=Ft.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=n;const a=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:f,damping:h,mass:m,duration:g,velocity:v,isResolvedFromDuration:b}=DA({...n,velocity:-ds(n.velocity||0)}),w=v||0,S=h/(2*Math.sqrt(f*m)),C=u-a,E=ds(Math.sqrt(f/m)),R=Math.abs(C)<5;s||(s=R?Ft.restSpeed.granular:Ft.restSpeed.default),o||(o=R?Ft.restDelta.granular:Ft.restDelta.default);let N;if(S<1){const T=Bh(E,S);N=F=>{const z=Math.exp(-S*E*F);return u-z*((w+S*E*C)/T*Math.sin(T*F)+C*Math.cos(T*F))}}else if(S===1)N=T=>u-Math.exp(-E*T)*(C+(w+E*C)*T);else{const T=E*Math.sqrt(S*S-1);N=F=>{const z=Math.exp(-S*E*F),O=Math.min(T*F,300);return u-z*((w+S*E*C)*Math.sinh(O)+T*C*Math.cosh(O))/T}}const I={calculatedDuration:b&&g||null,next:T=>{const F=N(T);if(b)c.done=T>=g;else{let z=0;S<1&&(z=T===0?cs(w):JS(N,T,F));const O=Math.abs(z)<=s,q=Math.abs(u-F)<=o;c.done=O&&q}return c.value=c.done?u:F,c},toString:()=>{const T=Math.min(YS(I),Ih),F=ES(z=>I.next(T*z).value,T,30);return T+"ms "+F}};return I}function dx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:u,min:c,max:f,restDelta:h=.5,restSpeed:m}){const g=e[0],v={done:!1,value:g},b=O=>c!==void 0&&Of,w=O=>c===void 0?f:f===void 0||Math.abs(c-O)-S*Math.exp(-O/s),N=O=>E+R(O),I=O=>{const q=R(O),te=N(O);v.done=Math.abs(q)<=h,v.value=v.done?E:te};let T,F;const z=O=>{b(v.value)&&(T=O,F=eb({keyframes:[v.value,w(v.value)],velocity:JS(N,O,v.value),damping:o,stiffness:a,restDelta:h,restSpeed:m}))};return z(0),{calculatedDuration:null,next:O=>{let q=!1;return!F&&T===void 0&&(q=!0,I(O),z(O)),T!==void 0&&O>=T?F.next(O-T):(!q&&I(O),v)}}}const LA=_l(.42,0,1,1),MA=_l(0,0,.58,1),tb=_l(.42,0,.58,1),OA=e=>Array.isArray(e)&&typeof e[0]!="number",fx={linear:Hn,easeIn:LA,easeInOut:tb,easeOut:MA,circIn:tm,circInOut:LS,circOut:DS,backIn:em,backInOut:AS,backOut:NS,anticipate:jS},hx=e=>{if(Jp(e)){Nh(e.length===4);const[t,n,s,o]=e;return _l(t,n,s,o)}else if(typeof e=="string")return Nh(fx[e]!==void 0),fx[e];return e};function FA(e,t,n){const s=[],o=n||QS,a=e.length-1;for(let u=0;ut[0];if(a===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=FA(t,s,o),f=c.length,h=m=>{if(u&&m1)for(;gh(hs(e[0],e[a-1],m)):h}function VA(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const o=Po(0,t,s);e.push(jt(n,1,o))}}function BA(e){const t=[0];return VA(t,e.length-1),t}function zA(e,t){return e.map(n=>n*t)}function UA(e,t){return e.map(()=>t||tb).splice(0,e.length-1)}function pc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const o=OA(s)?s.map(hx):hx(s),a={done:!1,value:t[0]},u=zA(n&&n.length===t.length?n:BA(t),e),c=IA(u,t,{ease:Array.isArray(o)?o:UA(t,o)});return{calculatedDuration:e,next:f=>(a.value=c(f),a.done=f>=e,a)}}const $A=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kt.update(t,!0),stop:()=>qs(t),now:()=>rn.isProcessing?rn.timestamp:Br.now()}},WA={decay:dx,inertia:dx,tween:pc,keyframes:pc,spring:eb},HA=e=>e/100;class am extends qS{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,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:s,element:o,keyframes:a}=this.options,u=(o==null?void 0:o.KeyframeResolver)||im,c=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new u(a,c,n,s,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:u=0}=this.options,c=Qp(n)?n:WA[n]||pc;let f,h;c!==pc&&typeof t[0]!="number"&&(f=El(HA,QS(t[0],t[1])),t=[0,100]);const m=c({...this.options,keyframes:t});a==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=YS(m));const{calculatedDuration:g}=m,v=g+o,b=v*(s+1)-o;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:v,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}const{finalKeyframe:o,generator:a,mirroredGenerator:u,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:g}=s;if(this.startTime===null)return a.next(0);const{delay:v,repeat:b,repeatType:w,repeatDelay:S,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const E=this.currentTime-v*(this.speed>=0?1:-1),R=this.speed>=0?E<0:E>m;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let N=this.currentTime,I=a;if(b){const O=Math.min(this.currentTime,m)/g;let q=Math.floor(O),te=O%1;!te&&O>=1&&(te=1),te===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(w==="reverse"?(te=1-te,S&&(te-=S/g)):w==="mirror"&&(I=u)),N=hs(0,1,te)*g}const T=R?{done:!1,value:f[0]}:I.next(N);c&&(T.value=c(T.value));let{done:F}=T;!R&&h!==null&&(F=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&o!==void 0&&(T.value=Bc(f,this.options,o)),C&&C(T.value),z&&this.finish(),T}get duration(){const{resolved:t}=this;return t?ds(t.calculatedDuration):0}get time(){return ds(this.currentTime)}set time(t){t=cs(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=$A,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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)}}const GA=new Set(["opacity","clipPath","filter","transform"]);function ZA(e,t,n,{delay:s=0,duration:o=300,repeat:a=0,repeatType:u="loop",ease:c="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=kS(c,o);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:s,duration:o,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:u==="reverse"?"alternate":"normal"})}const KA=Xp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mc=10,qA=2e4;function YA(e){return Qp(e.type)||e.type==="spring"||!CS(e.ease)}function XA(e,t){const n=new am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const o=[];let a=0;for(;!s.done&&athis.onKeyframesResolved(u,c),n,s,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:o,ease:a,type:u,motionValue:c,name:f,startTime:h}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof a=="string"&&fc()&&QA(a)&&(a=nb[a]),YA(this.options)){const{onComplete:g,onUpdate:v,motionValue:b,element:w,...S}=this.options,C=XA(t,S);t=C.keyframes,t.length===1&&(t[1]=t[0]),s=C.duration,o=C.times,a=C.ease,u="keyframes"}const m=ZA(c.owner.current,f,t,{...this.options,duration:s,times:o,ease:a});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(ex(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:g}=this.options;c.set(Bc(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ds(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ds(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=cs(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Hn;const{animation:s}=n;ex(s,t)}return Hn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:o,type:a,ease:u,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:g,element:v,...b}=this.options,w=new am({...b,keyframes:s,duration:o,type:a,ease:u,times:c,isGenerator:!0}),S=cs(this.time);h.setWithVelocity(w.sample(S-mc).value,w.sample(S).value,mc)}const{onStop:f}=this.options;f&&f(),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:n,name:s,repeatDelay:o,repeatType:a,damping:u,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return KA()&&s&&GA.has(s)&&!f&&!h&&!o&&a!=="mirror"&&u!==0&&c!=="inertia"}}const JA={type:"spring",stiffness:500,damping:25,restSpeed:10},ej=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tj={type:"keyframes",duration:.8},nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rj=(e,{keyframes:t})=>t.length>2?tj:Vi.has(e)?e.startsWith("scale")?ej(t[1]):JA:nj;function sj({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:o,repeat:a,repeatType:u,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const lm=(e,t,n,s={},o,a)=>u=>{const c=Zp(s,e)||{},f=c.delay||s.delay||0;let{elapsed:h=0}=s;h=h-cs(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:o};sj(c)||(m={...m,...rj(e,m)}),m.duration&&(m.duration=cs(m.duration)),m.repeatDelay&&(m.repeatDelay=cs(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),g&&!a&&t.get()!==void 0){const v=Bc(m.keyframes,c);if(v!==void 0)return kt.update(()=>{m.onUpdate(v),m.onComplete()}),new FN([])}return!a&&px.supports(m)?new px(m):new am(m)};function ij({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function rb(e,t,{delay:n=0,transitionOverride:s,type:o}={}){var a;let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=t;s&&(u=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const v=e.getValue(g,(a=e.latestValues[g])!==null&&a!==void 0?a:null),b=f[g];if(b===void 0||m&&ij(m,g))continue;const w={delay:n,...Zp(u||{},g)};let S=!1;if(window.MotionHandoffAnimation){const E=_S(e);if(E){const R=window.MotionHandoffAnimation(E,g,kt);R!==null&&(w.startTime=R,S=!0)}}jh(e,g),v.start(lm(g,v,b,e.shouldReduceMotion&&SS.has(g)?{type:!1}:w,e,S));const C=v.animation;C&&h.push(C)}return c&&Promise.all(h).then(()=>{kt.update(()=>{c&&DN(e,c)})}),h}function zh(e,t,n={}){var s;const o=Vc(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const u=o?()=>Promise.all(rb(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=a;return oj(e,t,m+h,g,v,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[u,c]:[c,u];return h().then(()=>m())}else return Promise.all([u(),c(n.delay)])}function oj(e,t,n=0,s=0,o=1,a){const u=[],c=(e.variantChildren.size-1)*s,f=o===1?(h=0)=>h*s:(h=0)=>c-h*s;return Array.from(e.variantChildren).sort(aj).forEach((h,m)=>{h.notify("AnimationStart",t),u.push(zh(h,t,{...a,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(u)}function aj(e,t){return e.sortNodePosition(t)}function lj(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(a=>zh(e,a,n));s=Promise.all(o)}else if(typeof t=="string")s=zh(e,t,n);else{const o=typeof t=="function"?Vc(e,t,n.custom):t;s=Promise.all(rb(e,o,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const uj=Lp.length;function sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>lj(e,n,s)))}function hj(e){let t=fj(e),n=mx(),s=!0;const o=f=>(h,m)=>{var g;const v=Vc(e,m,f==="exit"?(g=e.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(v){const{transition:b,transitionEnd:w,...S}=v;h={...h,...S,...w}}return h};function a(f){t=f(e)}function u(f){const{props:h}=e,m=sb(e.parent)||{},g=[],v=new Set;let b={},w=1/0;for(let C=0;Cw&&I,q=!1;const te=Array.isArray(N)?N:[N];let pe=te.reduce(o(E),{});T===!1&&(pe={});const{prevResolvedValues:X={}}=R,de={...X,...pe},ke=me=>{O=!0,v.has(me)&&(q=!0,v.delete(me)),R.needsAnimating[me]=!0;const Y=e.getValue(me);Y&&(Y.liveStyle=!1)};for(const me in de){const Y=pe[me],ue=X[me];if(b.hasOwnProperty(me))continue;let ie=!1;Ah(Y)&&Ah(ue)?ie=!wS(Y,ue):ie=Y!==ue,ie?Y!=null?ke(me):v.add(me):Y!==void 0&&v.has(me)?ke(me):R.protectedKeys[me]=!0}R.prevProp=N,R.prevResolvedValues=pe,R.isActive&&(b={...b,...pe}),s&&e.blockInitialAnimation&&(O=!1),O&&(!(F&&z)||q)&&g.push(...te.map(me=>({animation:me,options:{type:E}})))}if(v.size){const C={};v.forEach(E=>{const R=e.getBaseTarget(E),N=e.getValue(E);N&&(N.liveStyle=!0),C[E]=R??null}),g.push({animation:C})}let S=!!g.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?t(g):Promise.resolve()}function c(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(v=>{var b;return(b=v.animationState)===null||b===void 0?void 0:b.setActive(f,h)}),n[f].isActive=h;const g=u(f);for(const v in n)n[v].protectedKeys={};return g}return{animateChanges:u,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=mx(),s=!0}}}function pj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wS(t,e):!1}function vi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mx(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}class ni{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mj extends ni{constructor(t){super(t),t.animationState||(t.animationState=hj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gj=0;class yj extends ni{constructor(){super(...arguments),this.id=gj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const vj={animation:{Feature:mj},exit:{Feature:yj}},gr={x:!1,y:!1};function ib(){return gr.x||gr.y}function xj(e){return e==="x"||e==="y"?gr[e]?null:(gr[e]=!0,()=>{gr[e]=!1}):gr.x||gr.y?null:(gr.x=gr.y=!0,()=>{gr.x=gr.y=!1})}const um=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Xa(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function Cl(e){return{point:{x:e.pageX,y:e.pageY}}}const wj=e=>t=>um(t)&&e(t,Cl(t));function Ia(e,t,n,s){return Xa(e,t,wj(n),s)}const gx=(e,t)=>Math.abs(e-t);function Sj(e,t){const n=gx(e.x,t.x),s=gx(e.y,t.y);return Math.sqrt(n**2+s**2)}class ob{constructor(t,n,{transformPagePoint:s,contextWindow:o,dragSnapToOrigin:a=!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 g=oh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,b=Sj(g.offset,{x:0,y:0})>=3;if(!v&&!b)return;const{point:w}=g,{timestamp:S}=rn;this.history.push({...w,timestamp:S});const{onStart:C,onMove:E}=this.handlers;v||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,v)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=ih(v,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(g,v)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=oh(g.type==="pointercancel"?this.lastMoveEventInfo:ih(v,this.transformPagePoint),this.history);this.startEvent&&b&&b(g,C),w&&w(g,C)},!um(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=s,this.contextWindow=o||window;const u=Cl(t),c=ih(u,this.transformPagePoint),{point:f}=c,{timestamp:h}=rn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,oh(c,this.history)),this.removeListeners=El(Ia(this.contextWindow,"pointermove",this.handlePointerMove),Ia(this.contextWindow,"pointerup",this.handlePointerUp),Ia(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qs(this.updatePoint)}}function ih(e,t){return t?{point:t(e.point)}:e}function yx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oh({point:e},t){return{point:e,delta:yx(e,ab(t)),offset:yx(e,bj(t)),velocity:_j(t,.1)}}function bj(e){return e[0]}function ab(e){return e[e.length-1]}function _j(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=ab(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>cs(t)));)n--;if(!s)return{x:0,y:0};const a=ds(o.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const u={x:(o.x-s.x)/a,y:(o.y-s.y)/a};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}const lb=1e-4,Ej=1-lb,Cj=1+lb,ub=.01,kj=0-ub,Tj=0+ub;function Sn(e){return e.max-e.min}function Rj(e,t,n){return Math.abs(e-t)<=n}function vx(e,t,n,s=.5){e.origin=s,e.originPoint=jt(t.min,t.max,e.origin),e.scale=Sn(n)/Sn(t),e.translate=jt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ej&&e.scale<=Cj||isNaN(e.scale))&&(e.scale=1),(e.translate>=kj&&e.translate<=Tj||isNaN(e.translate))&&(e.translate=0)}function Va(e,t,n,s){vx(e.x,t.x,n.x,s?s.originX:void 0),vx(e.y,t.y,n.y,s?s.originY:void 0)}function xx(e,t,n){e.min=n.min+t.min,e.max=e.min+Sn(t)}function Pj(e,t,n){xx(e.x,t.x,n.x),xx(e.y,t.y,n.y)}function wx(e,t,n){e.min=t.min-n.min,e.max=e.min+Sn(t)}function Ba(e,t,n){wx(e.x,t.x,n.x),wx(e.y,t.y,n.y)}function Nj(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?jt(n,e,s.max):Math.min(e,n)),e}function Sx(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aj(e,{top:t,left:n,bottom:s,right:o}){return{x:Sx(e.x,n,o),y:Sx(e.y,t,s)}}function bx(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=Po(t.min,t.max-s,e.min):s>o&&(n=Po(e.min,e.max-o,t.min)),hs(0,1,n)}function Lj(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Uh=.35;function Mj(e=Uh){return e===!1?e=0:e===!0&&(e=Uh),{x:_x(e,"left","right"),y:_x(e,"top","bottom")}}function _x(e,t,n){return{min:Ex(e,t),max:Ex(e,n)}}function Ex(e,t){return typeof e=="number"?e:e[t]||0}const Cx=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:Cx(),y:Cx()}),kx=()=>({min:0,max:0}),Bt=()=>({x:kx(),y:kx()});function rr(e){return[e("x"),e("y")]}function cb({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Oj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ah(e){return e===void 0||e===1}function $h({scale:e,scaleX:t,scaleY:n}){return!ah(e)||!ah(t)||!ah(n)}function xi(e){return $h(e)||db(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function db(e){return Tx(e.x)||Tx(e.y)}function Tx(e){return e&&e!=="0%"}function gc(e,t,n){const s=e-n,o=t*s;return n+o}function Rx(e,t,n,s,o){return o!==void 0&&(e=gc(e,o,s)),gc(e,n,s)+t}function Wh(e,t=0,n=1,s,o){e.min=Rx(e.min,t,n,s,o),e.max=Rx(e.max,t,n,s,o)}function fb(e,{x:t,y:n}){Wh(e.x,t.translate,t.scale,t.originPoint),Wh(e.y,n.translate,n.scale,n.originPoint)}const Px=.999999999999,Nx=1.0000000000001;function Ij(e,t,n,s=!1){const o=n.length;if(!o)return;t.x=t.y=1;let a,u;for(let c=0;cPx&&(t.x=1),t.yPx&&(t.y=1)}function bo(e,t){e.min=e.min+t,e.max=e.max+t}function Ax(e,t,n,s,o=.5){const a=jt(e.min,e.max,o);Wh(e,t,n,a,s)}function _o(e,t){Ax(e.x,t.x,t.scaleX,t.scale,t.originX),Ax(e.y,t.y,t.scaleY,t.scale,t.originY)}function hb(e,t){return cb(Fj(e.getBoundingClientRect(),t))}function Vj(e,t,n){const s=hb(e,n),{scroll:o}=t;return o&&(bo(s.x,o.offset.x),bo(s.y,o.offset.y)),s}const pb=({current:e})=>e?e.ownerDocument.defaultView:null,Bj=new WeakMap;class zj{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=Bt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cl(m).point)},a=(m,g)=>{const{drag:v,dragPropagation:b,onDragStart:w}=this.getProps();if(v&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xj(v),!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),rr(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Vr.test(E)){const{projection:R}=this.visualElement;if(R&&R.layout){const N=R.layout.layoutBox[C];N&&(E=Sn(N)*(parseFloat(E)/100))}}this.originPoint[C]=E}),w&&kt.postRender(()=>w(m,g)),jh(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(m,g)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:w,onDrag:S}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:C}=g;if(b&&this.currentDirection===null){this.currentDirection=Uj(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),S&&S(m,g)},c=(m,g)=>this.stop(m,g),f=()=>rr(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new ob(t,{onSessionStart:o,onStart:a,onMove:u,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:pb(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&kt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!Zu(t,o,this.currentDirection))return;const a=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=Nj(u,this.constraints[t],this.elastic[t])),a.set(u)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&xo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Aj(o.layoutBox,n):this.constraints=!1,this.elastic=Mj(s),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&rr(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Lj(o.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xo(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const a=Vj(s,o.root,this.visualElement.getTransformPagePoint());let u=jj(o.layout.layoutBox,a);if(n){const c=n(Oj(u));this.hasMutatedConstraints=!!c,c&&(u=cb(c))}return u}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:a,dragSnapToOrigin:u,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=rr(m=>{if(!Zu(m,n,this.currentDirection))return;let g=f[m]||{};u&&(g={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,w={type:"inertia",velocity:s?t[m]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(m,w)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return jh(this.visualElement,t),s.start(lm(t,s,0,n,this.visualElement,!1))}stopAnimation(){rr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){rr(n=>{const{drag:s}=this.getProps();if(!Zu(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,a=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:c}=o.layout.layoutBox[n];a.set(t[n]-jt(u,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xo(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};rr(u=>{const c=this.getAxisMotionValue(u);if(c&&this.constraints!==!1){const f=c.get();o[u]=Dj({min:f,max:f},this.constraints[u])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),rr(u=>{if(!Zu(u,t,null))return;const c=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];c.set(jt(f,h,o[u]))})}addListeners(){if(!this.visualElement.current)return;Bj.set(this.visualElement,this);const t=this.visualElement.current,n=Ia(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();xo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),kt.read(s);const u=Xa(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(rr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=f[m].translate,g.set(g.get()+f[m].translate))}),this.visualElement.render())});return()=>{u(),n(),a(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:u=Uh,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:a,dragElastic:u,dragMomentum:c}}}function Zu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uj(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $j extends ni{constructor(t){super(t),this.removeGroupControls=Hn,this.removeListeners=Hn,this.controls=new zj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hn}unmount(){this.removeGroupControls(),this.removeListeners()}}const jx=e=>(t,n)=>{e&&kt.postRender(()=>e(t,n))};class Wj extends ni{constructor(){super(...arguments),this.removePointerDownListener=Hn}onPointerDown(t){this.session=new ob(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:jx(t),onStart:jx(n),onMove:s,onEnd:(a,u)=>{delete this.session,o&&kt.postRender(()=>o(a,u))}}}mount(){this.removePointerDownListener=Ia(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Dx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ca={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;const n=Dx(e,t.target.x),s=Dx(e,t.target.y);return`${n}% ${s}%`}},Hj={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,o=Ys.parse(e);if(o.length>5)return s;const a=Ys.createTransformer(e),u=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;o[0+u]/=c,o[1+u]/=f;const h=jt(c,f,.5);return typeof o[2+u]=="number"&&(o[2+u]/=h),typeof o[3+u]=="number"&&(o[3+u]/=h),a(o)}};class Gj extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:a}=t;xN(Zj),a&&(n.group&&n.group.add(a),s&&s.register&&o&&s.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:a}=this.props,u=s.projection;return u&&(u.isPresent=a,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||kt.postRender(()=>{const c=u.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Op.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mb(e){const[t,n]=tS(),s=_.useContext(Pp);return x.jsx(Gj,{...e,layoutGroup:s,switchLayoutGroup:_.useContext(lS),isPresent:t,safeToRemove:n})}const Zj={borderRadius:{...Ca,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ca,borderTopRightRadius:Ca,borderBottomLeftRadius:Ca,borderBottomRightRadius:Ca,boxShadow:Hj};function Kj(e,t,n){const s=mn(e)?e:qa(e);return s.start(lm("",s,t,n)),s.animation}function qj(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Yj=(e,t)=>e.depth-t.depth;class Xj{constructor(){this.children=[],this.isDirty=!1}add(t){Kp(this.children,t),this.isDirty=!0}remove(t){qp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yj),this.isDirty=!1,this.children.forEach(t)}}function Qj(e,t){const n=Br.now(),s=({timestamp:o})=>{const a=o-n;a>=t&&(qs(s),e(a-t))};return kt.read(s,!0),()=>qs(s)}const gb=["TopLeft","TopRight","BottomLeft","BottomRight"],Jj=gb.length,Lx=e=>typeof e=="string"?parseFloat(e):e,Mx=e=>typeof e=="number"||ze.test(e);function eD(e,t,n,s,o,a){o?(e.opacity=jt(0,n.opacity!==void 0?n.opacity:1,tD(s)),e.opacityExit=jt(t.opacity!==void 0?t.opacity:1,0,nD(s))):a&&(e.opacity=jt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let u=0;ust?1:n(Po(e,t,s))}function Fx(e,t){e.min=t.min,e.max=t.max}function nr(e,t){Fx(e.x,t.x),Fx(e.y,t.y)}function Ix(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vx(e,t,n,s,o){return e-=t,e=gc(e,1/n,s),o!==void 0&&(e=gc(e,1/o,s)),e}function rD(e,t=0,n=1,s=.5,o,a=e,u=e){if(Vr.test(t)&&(t=parseFloat(t),t=jt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let c=jt(a.min,a.max,s);e===a&&(c-=t),e.min=Vx(e.min,t,n,c,o),e.max=Vx(e.max,t,n,c,o)}function Bx(e,t,[n,s,o],a,u){rD(e,t[n],t[s],t[o],t.scale,a,u)}const sD=["x","scaleX","originX"],iD=["y","scaleY","originY"];function zx(e,t,n,s){Bx(e.x,t,sD,n?n.x:void 0,s?s.x:void 0),Bx(e.y,t,iD,n?n.y:void 0,s?s.y:void 0)}function Ux(e){return e.translate===0&&e.scale===1}function vb(e){return Ux(e.x)&&Ux(e.y)}function $x(e,t){return e.min===t.min&&e.max===t.max}function oD(e,t){return $x(e.x,t.x)&&$x(e.y,t.y)}function Wx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xb(e,t){return Wx(e.x,t.x)&&Wx(e.y,t.y)}function Hx(e){return Sn(e.x)/Sn(e.y)}function Gx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aD{constructor(){this.members=[]}add(t){Kp(this.members,t),t.scheduleRender()}remove(t){if(qp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let s;for(let o=n;o>=0;o--){const a=this.members[o];if(a.isPresent!==!1){s=a;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lD(e,t,n){let s="";const o=e.x.translate/t.x,a=e.y.translate/t.y,u=(n==null?void 0:n.z)||0;if((o||a||u)&&(s=`translate3d(${o}px, ${a}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:v,skewX:b,skewY:w}=n;h&&(s=`perspective(${h}px) ${s}`),m&&(s+=`rotate(${m}deg) `),g&&(s+=`rotateX(${g}deg) `),v&&(s+=`rotateY(${v}deg) `),b&&(s+=`skewX(${b}deg) `),w&&(s+=`skewY(${w}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(s+=`scale(${c}, ${f})`),s||"none"}const wi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Aa=typeof window<"u"&&window.MotionDebug!==void 0,lh=["","X","Y","Z"],uD={visibility:"hidden"},Zx=1e3;let cD=0;function uh(e,t,n,s){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_S(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",kt,!(o||a))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&wb(s)}function Sb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},c=t==null?void 0:t()){this.id=cD++,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,Aa&&(wi.totalNodes=wi.resolvedTargetDeltas=wi.recalculatedProjection=0),this.nodes.forEach(hD),this.nodes.forEach(vD),this.nodes.forEach(xD),this.nodes.forEach(pD),Aa&&window.MotionDebug.record(wi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;fthis.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Qj(v,250),nc.hasAnimatedSinceResize&&(nc.hasAnimatedSinceResize=!1,this.nodes.forEach(qx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||m.getDefaultTransition()||ED,{onLayoutAnimationStart:C,onLayoutAnimationComplete:E}=m.getProps(),R=!this.targetLayout||!xb(this.targetLayout,w),N=!v&&b;if(this.options.layoutRoot||this.resumeFrom||N||v&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,N);const I={...Zp(S,"layout"),onPlay:C,onComplete:E};(m.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else v||qx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(wD),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Sn(this.snapshot.measuredBox.x)&&!Sn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{const T=I/1e3;Yx(g.x,u.x,T),Yx(g.y,u.y,T),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ba(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bD(this.relativeTarget,this.relativeTargetOrigin,v,T),N&&oD(this.relativeTarget,N)&&(this.isProjectionDirty=!1),N||(N=Bt()),nr(N,this.relativeTarget)),S&&(this.animationValues=m,eD(m,h,this.latestValues,T,R,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{nc.hasAnimatedSinceResize=!0,this.currentAnimation=Kj(0,Zx,{...u,onUpdate:c=>{this.mixTargetDelta(c),u.onUpdate&&u.onUpdate(c)},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=u;if(!(!c||!f||!h)){if(this!==u&&this.layout&&h&&bb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Bt();const g=Sn(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const v=Sn(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+v}nr(c,f),_o(c,m),Va(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(u,c){this.sharedNodes.has(u)||this.sharedNodes.set(u,new aD),this.sharedNodes.get(u).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:c}=this.options;return c?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:c}=this.options;return c?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let c=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&uh("z",u,h,this.animationValues);for(let m=0;m{var c;return(c=u.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Kx),this.root.sharedNodes.clear()}}}function dD(e){e.updateLayout()}function fD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:a}=e.options,u=n.source!==e.layout.source;a==="size"?rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(v);v.min=s[g].min,v.max=v.min+b}):bb(a,n.layoutBox,s)&&rr(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=Sn(s[g]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=So();Va(c,s,n.layoutBox);const f=So();u?Va(f,e.applyTransform(o,!0),n.measuredBox):Va(f,s,n.layoutBox);const h=!vb(c);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const w=Bt();Ba(w,n.layoutBox,v.layoutBox);const S=Bt();Ba(S,s,b.layoutBox),xb(w,S)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function hD(e){Aa&&wi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mD(e){e.clearSnapshot()}function Kx(e){e.clearMeasurements()}function gD(e){e.isLayoutDirty=!1}function yD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vD(e){e.resolveTargetDelta()}function xD(e){e.calcProjection()}function wD(e){e.resetSkewAndRotation()}function SD(e){e.removeLeadSnapshot()}function Yx(e,t,n){e.translate=jt(t.translate,0,n),e.scale=jt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xx(e,t,n,s){e.min=jt(t.min,n.min,s),e.max=jt(t.max,n.max,s)}function bD(e,t,n,s){Xx(e.x,t.x,n.x,s),Xx(e.y,t.y,n.y,s)}function _D(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ED={duration:.45,ease:[.4,0,.1,1]},Qx=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jx=Qx("applewebkit/")&&!Qx("chrome/")?Math.round:Hn;function e0(e){e.min=Jx(e.min),e.max=Jx(e.max)}function CD(e){e0(e.x),e0(e.y)}function bb(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rj(Hx(t),Hx(n),.2)}function kD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TD=Sb({attachResizeListener:(e,t)=>Xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ch={current:void 0},_b=Sb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ch.current){const e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),ch.current=e}return ch.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),RD={pan:{Feature:Wj},drag:{Feature:$j,ProjectionNode:_b,MeasureLayout:mb}};function PD(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const a=(s=void 0)!==null&&s!==void 0?s:o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function Eb(e,t){const n=PD(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[n,o,()=>s.abort()]}function t0(e){return!(e.pointerType==="touch"||ib())}function ND(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{if(!t0(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const m=g=>{t0(g)&&(h(g),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,o)};return s.forEach(c=>{c.addEventListener("pointerenter",u,o)}),a}function n0(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class AD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=ND(t,(n,s)=>(n0(this.node,s,"Start"),o=>n0(this.node,o,"End"))))}unmount(){}}class jD extends ni{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=El(Xa(this.node.current,"focus",()=>this.onFocus()),Xa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Cb=(e,t)=>t?e===t?!0:Cb(e,t.parentElement):!1,DD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LD(e){return DD.has(e.tagName)||e.tabIndex!==-1}const ja=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function dh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MD=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=r0(()=>{if(ja.has(n))return;dh(n,"down");const o=r0(()=>{dh(n,"up")}),a=()=>dh(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function s0(e){return um(e)&&!ib()}function OD(e,t,n={}){const[s,o,a]=Eb(e,n),u=c=>{const f=c.currentTarget;if(!s0(c)||ja.has(f))return;ja.add(f);const h=t(f,c),m=(b,w)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),!(!s0(b)||!ja.has(f))&&(ja.delete(f),typeof h=="function"&&h(b,{success:w}))},g=b=>{m(b,n.useGlobalTarget||Cb(f,b.target))},v=b=>{m(b,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return s.forEach(c=>{!LD(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",u,o),c.addEventListener("focus",h=>MD(h,o),o)}),a}function i0(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),a=s[o];a&&kt.postRender(()=>a(t,Cl(t)))}class FD extends ni{mount(){const{current:t}=this.node;t&&(this.unmount=OD(t,(n,s)=>(i0(this.node,s,"Start"),(o,{success:a})=>i0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hh=new WeakMap,fh=new WeakMap,ID=e=>{const t=Hh.get(e.target);t&&t(e)},VD=e=>{e.forEach(ID)};function BD({root:e,...t}){const n=e||document;fh.has(n)||fh.set(n,{});const s=fh.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(VD,{root:e,...t})),s[o]}function zD(e,t,n){const s=BD(t);return Hh.set(e,n),s.observe(e),()=>{Hh.delete(e),s.unobserve(e)}}const UD={some:0,all:1};class $D extends ni{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:a}=t,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:UD[o]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),v=h?m:g;v&&v(f)};return zD(this.node.current,u,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(WD(t,n))&&this.startObserver()}unmount(){}}function WD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HD={inView:{Feature:$D},tap:{Feature:FD},focus:{Feature:jD},hover:{Feature:AD}},GD={layout:{ProjectionNode:_b,MeasureLayout:mb}},Gh={current:null},kb={current:!1};function ZD(){if(kb.current=!0,!!jp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gh.current=e.matches;e.addListener(t),t()}else Gh.current=!1}const KD=[...ZS,hn,Ys],qD=e=>KD.find(GS(e)),o0=new WeakMap;function YD(e,t,n){for(const s in t){const o=t[s],a=n[s];if(mn(o))e.addValue(s,o);else if(mn(a))e.addValue(s,qa(o,{owner:e}));else if(a!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,qa(u!==void 0?u:o,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const a0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class XD{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:a,visualState:u},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=im,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 b=Br.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),kb.current||ZD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){o0.delete(this.current),this.projection&&this.projection.unmount(),qs(this.notifyUpdate),qs(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 n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Vi.has(t),o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&kt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),a(),u&&u(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ro){const n=Ro[t];if(!n)continue;const{isEnabled:s,Feature:o}=n;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=qa(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(WS(o)||MS(o))?o=parseFloat(o):!qD(o)&&Ys.test(n)&&(o=zS(t,n)),this.setBaseTarget(t,mn(o)?o.get():o)),mn(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const u=Ip(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(o=u[t])}if(s&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!mn(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Tb extends XD{constructor(){super(...arguments),this.KeyframeResolver=KS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QD(e){return window.getComputedStyle(e)}class JD extends Tb{constructor(){super(...arguments),this.type="html",this.renderInstance=pS}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}else{const s=QD(t),o=(Vp(n)?s.getPropertyValue(n):s[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hb(t,n)}build(t,n,s){Up(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Gp(t,n,s)}}class eL extends Tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vi.has(n)){const s=sm(n);return s&&s.default||0}return n=mS.has(n)?n:Mp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return vS(t,n,s)}build(t,n,s){$p(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,o){gS(t,n,s,o)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const tL=(e,t)=>Fp(e)?new eL(t):new JD(t,{allowProjection:e!==_.Fragment}),nL=RN({...vj,...HD,...RD,...GD},tL),fs=$P(nL);var hh,l0;function rL(){if(l0)return hh;l0=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,f=typeof Mu=="object"&&Mu&&Mu.Object===Object&&Mu,h=typeof self=="object"&&self&&self.Object===Object&&self,m=f||h||Function("return this")(),g=Object.prototype,v=g.toString,b=Math.max,w=Math.min,S=function(){return m.Date.now()};function C(T,F,z){var O,q,te,pe,X,de,ke=0,we=!1,De=!1,me=!0;if(typeof T!="function")throw new TypeError(e);F=I(F)||0,E(z)&&(we=!!z.leading,De="maxWait"in z,te=De?b(I(z.maxWait)||0,F):te,me="trailing"in z?!!z.trailing:me);function Y(be){var Pe=O,Me=q;return O=q=void 0,ke=be,pe=T.apply(Me,Pe),pe}function ue(be){return ke=be,X=setTimeout(K,F),we?Y(be):pe}function ie(be){var Pe=be-de,Me=be-ke,rt=F-Pe;return De?w(rt,te-Me):rt}function L(be){var Pe=be-de,Me=be-ke;return de===void 0||Pe>=F||Pe<0||De&&Me>=te}function K(){var be=S();if(L(be))return Le(be);X=setTimeout(K,ie(be))}function Le(be){return X=void 0,me&&O?Y(be):(O=q=void 0,pe)}function Oe(){X!==void 0&&clearTimeout(X),ke=0,O=de=q=X=void 0}function Be(){return X===void 0?pe:Le(S())}function We(){var be=S(),Pe=L(be);if(O=arguments,q=this,de=be,Pe){if(X===void 0)return ue(de);if(De)return X=setTimeout(K,F),Y(de)}return X===void 0&&(X=setTimeout(K,F)),pe}return We.cancel=Oe,We.flush=Be,We}function E(T){var F=typeof T;return!!T&&(F=="object"||F=="function")}function R(T){return!!T&&typeof T=="object"}function N(T){return typeof T=="symbol"||R(T)&&v.call(T)==n}function I(T){if(typeof T=="number")return T;if(N(T))return t;if(E(T)){var F=typeof T.valueOf=="function"?T.valueOf():T;T=E(F)?F+"":F}if(typeof T!="string")return T===0?T:+T;T=T.replace(s,"");var z=a.test(T);return z||u.test(T)?c(T.slice(2),z?2:8):o.test(T)?t:+T}return hh=C,hh}rL();var sL=typeof window<"u"?_.useLayoutEffect:_.useEffect,iL=typeof window>"u";function Zh(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=c=>iL?t:window.matchMedia(c).matches,[o,a]=_.useState(()=>n?s(e):t);function u(){a(s(e))}return sL(()=>{const c=window.matchMedia(e);return u(),c.addListener?c.addListener(u):c.addEventListener("change",u),()=>{c.removeListener?c.removeListener(u):c.removeEventListener("change",u)}},[e]),o}const oL=({className:e,stage:t})=>{const n=Zh("(min-width: 768px");return x.jsx("div",{className:e,children:x.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:x.jsxs("div",{className:"relative h-14 w-full",children:[x.jsx("div",{className:Ye("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),x.jsx(fs.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:Ye("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-[20%]":t===2,"w-[75%]":t===3})}),x.jsx(fs.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:Ye("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),x.jsx(fs.div,{className:Ye("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),x.jsx("div",{className:Ye("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var kl=e=>e.type==="checkbox",Ei=e=>e instanceof Date,xn=e=>e==null;const Rb=e=>typeof e=="object";var Ut=e=>!xn(e)&&!Array.isArray(e)&&Rb(e)&&!Ei(e),Pb=e=>Ut(e)&&e.target?kl(e.target)?e.target.checked:e.target.value:e,aL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Nb=(e,t)=>e.has(aL(t)),lL=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},cm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nn(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(cm&&(e instanceof Blob||s))&&(n||Ut(e)))if(t=n?[]:{},!n&&!lL(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Nn(e[o]));else return e;return t}var zc=e=>Array.isArray(e)?e.filter(Boolean):[],zt=e=>e===void 0,ce=(e,t,n)=>{if(!t||!Ut(e))return n;const s=zc(t.split(/[,[\].]+?/)).reduce((o,a)=>xn(o)?o:o[a],e);return zt(s)||s===e?zt(e[t])?n:e[t]:s},ir=e=>typeof e=="boolean",dm=e=>/^\w*$/.test(e),Ab=e=>zc(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pt=(e,t,n)=>{let s=-1;const o=dm(t)?[t]:Ab(t),a=o.length,u=a-1;for(;++sit.useContext(jb),uL=e=>{const{children:t,...n}=e;return it.createElement(jb.Provider,{value:n},t)};var Db=(e,t,n,s=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return t._proxyFormState[u]!==vr.all&&(t._proxyFormState[u]=!s||vr.all),n&&(n[u]=!0),e[u]}});return o},An=e=>Ut(e)&&!Object.keys(e).length,Lb=(e,t,n,s)=>{n(e);const{name:o,...a}=e;return An(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(u=>t[u]===(!s||vr.all))},za=e=>Array.isArray(e)?e:[e],Mb=(e,t,n)=>!e||!t||e===t||za(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function fm(e){const t=it.useRef(e);t.current=e,it.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function cL(e){const t=Bi(),{control:n=t.control,disabled:s,name:o,exact:a}=e,[u,c]=it.useState(n._formState),f=it.useRef(!0),h=it.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=it.useRef(o);return m.current=o,fm({disabled:s,next:g=>f.current&&Mb(m.current,g.name,a)&&Lb(g,h.current,n._updateFormState)&&c({...n._formState,...g}),subject:n._subjects.state}),it.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),it.useMemo(()=>Db(u,n,h.current,!1),[u,n])}var Fr=e=>typeof e=="string",Ob=(e,t,n,s,o)=>Fr(e)?(s&&t.watch.add(e),ce(n,e,o)):Array.isArray(e)?e.map(a=>(s&&t.watch.add(a),ce(n,a))):(s&&(t.watchAll=!0),n);function dL(e){const t=Bi(),{control:n=t.control,name:s,defaultValue:o,disabled:a,exact:u}=e,c=it.useRef(s);c.current=s,fm({disabled:a,subject:n._subjects.values,next:m=>{Mb(c.current,m.name,u)&&h(Nn(Ob(c.current,n._names,m.values||n._formValues,!1,o)))}});const[f,h]=it.useState(n._getWatch(s,o));return it.useEffect(()=>n._removeUnmounted()),f}function fL(e){const t=Bi(),{name:n,disabled:s,control:o=t.control,shouldUnregister:a}=e,u=Nb(o._names.array,n),c=dL({control:o,name:n,defaultValue:ce(o._formValues,n,ce(o._defaultValues,n,e.defaultValue)),exact:!0}),f=cL({control:o,name:n,exact:!0}),h=it.useRef(o.register(n,{...e.rules,value:c,...ir(e.disabled)?{disabled:e.disabled}:{}})),m=it.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ce(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!ce(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ce(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ce(f.validatingFields,n)},error:{enumerable:!0,get:()=>ce(f.errors,n)}}),[f,n]),g=it.useMemo(()=>({name:n,value:c,...ir(s)||f.disabled?{disabled:f.disabled||s}:{},onChange:v=>h.current.onChange({target:{value:Pb(v),name:n},type:yc.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:ce(o._formValues,n),name:n},type:yc.BLUR}),ref:v=>{const b=ce(o._fields,n);b&&v&&(b._f.ref={focus:()=>v.focus(),select:()=>v.select(),setCustomValidity:w=>v.setCustomValidity(w),reportValidity:()=>v.reportValidity()})}}),[n,o._formValues,s,f.disabled,c,o._fields]);return it.useEffect(()=>{const v=o._options.shouldUnregister||a,b=(w,S)=>{const C=ce(o._fields,w);C&&C._f&&(C._f.mount=S)};if(b(n,!0),v){const w=Nn(ce(o._options.defaultValues,n));pt(o._defaultValues,n,w),zt(ce(o._formValues,n))&&pt(o._formValues,n,w)}return!u&&o.register(n),()=>{(u?v&&!o._state.action:v)?o.unregister(n):b(n,!1)}},[n,o,u,a]),it.useEffect(()=>{o._updateDisabledField({disabled:s,fields:o._fields,name:n})},[s,n,o]),it.useMemo(()=>({field:g,formState:f,fieldState:m}),[g,f,m])}const hL=e=>e.render(fL(e));var Fb=(e,t,n,s,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:o||!0}}:{},u0=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched}),c0=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ua=(e,t,n,s)=>{for(const o of n||Object.keys(e)){const a=ce(e,o);if(a){const{_f:u,...c}=a;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!s)return!0;if(u.ref&&t(u.ref,u.name)&&!s)return!0;if(Ua(c,t))break}else if(Ut(c)&&Ua(c,t))break}}};var pL=(e,t,n)=>{const s=za(ce(e,n));return pt(s,"root",t[n]),pt(e,n,s),e},hm=e=>e.type==="file",Or=e=>typeof e=="function",vc=e=>{if(!cm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rc=e=>Fr(e),pm=e=>e.type==="radio",xc=e=>e instanceof RegExp;const d0={value:!1,isValid:!1},f0={value:!0,isValid:!0};var Ib=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!zt(e[0].attributes.value)?zt(e[0].value)||e[0].value===""?f0:{value:e[0].value,isValid:!0}:f0:d0}return d0};const h0={isValid:!1,value:null};var Vb=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,h0):h0;function p0(e,t,n="validate"){if(rc(e)||Array.isArray(e)&&e.every(rc)||ir(e)&&!e)return{type:n,message:rc(e)?e:"",ref:t}}var yo=e=>Ut(e)&&!xc(e)?e:{value:e,message:""},m0=async(e,t,n,s,o,a)=>{const{ref:u,refs:c,required:f,maxLength:h,minLength:m,min:g,max:v,pattern:b,validate:w,name:S,valueAsNumber:C,mount:E}=e._f,R=ce(n,S);if(!E||t.has(S))return{};const N=c?c[0]:u,I=X=>{o&&N.reportValidity&&(N.setCustomValidity(ir(X)?"":X||""),N.reportValidity())},T={},F=pm(u),z=kl(u),O=F||z,q=(C||hm(u))&&zt(u.value)&&zt(R)||vc(u)&&u.value===""||R===""||Array.isArray(R)&&!R.length,te=Fb.bind(null,S,s,T),pe=(X,de,ke,we=os.maxLength,De=os.minLength)=>{const me=X?de:ke;T[S]={type:X?we:De,message:me,ref:u,...te(X?we:De,me)}};if(a?!Array.isArray(R)||!R.length:f&&(!O&&(q||xn(R))||ir(R)&&!R||z&&!Ib(c).isValid||F&&!Vb(c).isValid)){const{value:X,message:de}=rc(f)?{value:!!f,message:f}:yo(f);if(X&&(T[S]={type:os.required,message:de,ref:N,...te(os.required,de)},!s))return I(de),T}if(!q&&(!xn(g)||!xn(v))){let X,de;const ke=yo(v),we=yo(g);if(!xn(R)&&!isNaN(R)){const De=u.valueAsNumber||R&&+R;xn(ke.value)||(X=De>ke.value),xn(we.value)||(de=Denew Date(new Date().toDateString()+" "+ie),Y=u.type=="time",ue=u.type=="week";Fr(ke.value)&&R&&(X=Y?me(R)>me(ke.value):ue?R>ke.value:De>new Date(ke.value)),Fr(we.value)&&R&&(de=Y?me(R)+X.value,we=!xn(de.value)&&R.length<+de.value;if((ke||we)&&(pe(ke,X.message,de.message),!s))return I(T[S].message),T}if(b&&!q&&Fr(R)){const{value:X,message:de}=yo(b);if(xc(X)&&!R.match(X)&&(T[S]={type:os.pattern,message:de,ref:u,...te(os.pattern,de)},!s))return I(de),T}if(w){if(Or(w)){const X=await w(R,n),de=p0(X,N);if(de&&(T[S]={...de,...te(os.validate,de.message)},!s))return I(de.message),T}else if(Ut(w)){let X={};for(const de in w){if(!An(X)&&!s)break;const ke=p0(await w[de](R,n),N,de);ke&&(X={...ke,...te(de,ke.message)},I(ke.message),s&&(T[S]=X))}if(!An(X)&&(T[S]={ref:N,...X},!s))return T}}return I(!0),T};function mL(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},Kh=e=>xn(e)||!Rb(e);function Gs(e,t){if(Kh(e)||Kh(t))return e===t;if(Ei(e)&&Ei(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const o of n){const a=e[o];if(!s.includes(o))return!1;if(o!=="ref"){const u=t[o];if(Ei(a)&&Ei(u)||Ut(a)&&Ut(u)||Array.isArray(a)&&Array.isArray(u)?!Gs(a,u):a!==u)return!1}}return!0}var Bb=e=>e.type==="select-multiple",yL=e=>pm(e)||kl(e),mh=e=>vc(e)&&e.isConnected,zb=e=>{for(const t in e)if(Or(e[t]))return!0;return!1};function wc(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const s in e)Array.isArray(e[s])||Ut(e[s])&&!zb(e[s])?(t[s]=Array.isArray(e[s])?[]:{},wc(e[s],t[s])):xn(e[s])||(t[s]=!0);return t}function Ub(e,t,n){const s=Array.isArray(e);if(Ut(e)||s)for(const o in e)Array.isArray(e[o])||Ut(e[o])&&!zb(e[o])?zt(t)||Kh(n[o])?n[o]=Array.isArray(e[o])?wc(e[o],[]):{...wc(e[o])}:Ub(e[o],xn(t)?{}:t[o],n[o]):n[o]=!Gs(e[o],t[o]);return n}var ka=(e,t)=>Ub(e,t,wc(t)),$b=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>zt(e)?e:t?e===""?NaN:e&&+e:n&&Fr(e)?new Date(e):s?s(e):e;function gh(e){const t=e.ref;return hm(t)?t.files:pm(t)?Vb(e.refs).value:Bb(t)?[...t.selectedOptions].map(({value:n})=>n):kl(t)?Ib(e.refs).value:$b(zt(t.value)?e.ref.value:t.value,e)}var vL=(e,t,n,s)=>{const o={};for(const a of e){const u=ce(t,a);u&&pt(o,a,u._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:s}},Ta=e=>zt(e)?e:xc(e)?e.source:Ut(e)?xc(e.value)?e.value.source:e.value:e;const g0="AsyncFunction";var xL=e=>!!e&&!!e.validate&&!!(Or(e.validate)&&e.validate.constructor.name===g0||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===g0)),wL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function y0(e,t,n){const s=ce(e,n);if(s||dm(n))return{error:s,name:n};const o=n.split(".");for(;o.length;){const a=o.join("."),u=ce(t,a),c=ce(e,a);if(u&&!Array.isArray(u)&&n!==a)return{name:n};if(c&&c.type)return{name:a,error:c};o.pop()}return{name:n}}var SL=(e,t,n,s,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?s.isOnBlur:o.isOnBlur)?!e:(n?s.isOnChange:o.isOnChange)?e:!0,bL=(e,t)=>!zc(ce(e,t)).length&&qt(e,t);const _L={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0};function EL(e={}){let t={..._L,...e},n={submitCount:0,isDirty:!1,isLoading:Or(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},o=Ut(t.defaultValues)||Ut(t.values)?Nn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Nn(o),u={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:ph(),array:ph(),state:ph()},v=u0(t.mode),b=u0(t.reValidateMode),w=t.criteriaMode===vr.all,S=A=>U=>{clearTimeout(h),h=setTimeout(A,U)},C=async A=>{if(!t.disabled&&(m.isValid||A)){const U=t.resolver?An((await O()).errors):await te(s,!0);U!==n.isValid&&g.state.next({isValid:U})}},E=(A,U)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((A||Array.from(c.mount)).forEach(H=>{H&&(U?pt(n.validatingFields,H,U):qt(n.validatingFields,H))}),g.state.next({validatingFields:n.validatingFields,isValidating:!An(n.validatingFields)}))},R=(A,U=[],H,oe,ae=!0,se=!0)=>{if(oe&&H&&!t.disabled){if(u.action=!0,se&&Array.isArray(ce(s,A))){const Re=H(ce(s,A),oe.argA,oe.argB);ae&&pt(s,A,Re)}if(se&&Array.isArray(ce(n.errors,A))){const Re=H(ce(n.errors,A),oe.argA,oe.argB);ae&&pt(n.errors,A,Re),bL(n.errors,A)}if(m.touchedFields&&se&&Array.isArray(ce(n.touchedFields,A))){const Re=H(ce(n.touchedFields,A),oe.argA,oe.argB);ae&&pt(n.touchedFields,A,Re)}m.dirtyFields&&(n.dirtyFields=ka(o,a)),g.state.next({name:A,isDirty:X(A,U),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else pt(a,A,U)},N=(A,U)=>{pt(n.errors,A,U),g.state.next({errors:n.errors})},I=A=>{n.errors=A,g.state.next({errors:n.errors,isValid:!1})},T=(A,U,H,oe)=>{const ae=ce(s,A);if(ae){const se=ce(a,A,zt(H)?ce(o,A):H);zt(se)||oe&&oe.defaultChecked||U?pt(a,A,U?se:gh(ae._f)):we(A,se),u.mount&&C()}},F=(A,U,H,oe,ae)=>{let se=!1,Re=!1;const Fe={name:A};if(!t.disabled){const ut=!!(ce(s,A)&&ce(s,A)._f&&ce(s,A)._f.disabled);if(!H||oe){m.isDirty&&(Re=n.isDirty,n.isDirty=Fe.isDirty=X(),se=Re!==Fe.isDirty);const yt=ut||Gs(ce(o,A),U);Re=!!(!ut&&ce(n.dirtyFields,A)),yt||ut?qt(n.dirtyFields,A):pt(n.dirtyFields,A,!0),Fe.dirtyFields=n.dirtyFields,se=se||m.dirtyFields&&Re!==!yt}if(H){const yt=ce(n.touchedFields,A);yt||(pt(n.touchedFields,A,H),Fe.touchedFields=n.touchedFields,se=se||m.touchedFields&&yt!==H)}se&&ae&&g.state.next(Fe)}return se?Fe:{}},z=(A,U,H,oe)=>{const ae=ce(n.errors,A),se=m.isValid&&ir(U)&&n.isValid!==U;if(t.delayError&&H?(f=S(()=>N(A,H)),f(t.delayError)):(clearTimeout(h),f=null,H?pt(n.errors,A,H):qt(n.errors,A)),(H?!Gs(ae,H):ae)||!An(oe)||se){const Re={...oe,...se&&ir(U)?{isValid:U}:{},errors:n.errors,name:A};n={...n,...Re},g.state.next(Re)}},O=async A=>{E(A,!0);const U=await t.resolver(a,t.context,vL(A||c.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return E(A),U},q=async A=>{const{errors:U}=await O(A);if(A)for(const H of A){const oe=ce(U,H);oe?pt(n.errors,H,oe):qt(n.errors,H)}else n.errors=U;return U},te=async(A,U,H={valid:!0})=>{for(const oe in A){const ae=A[oe];if(ae){const{_f:se,...Re}=ae;if(se){const Fe=c.array.has(se.name),ut=ae._f&&xL(ae._f);ut&&m.validatingFields&&E([oe],!0);const yt=await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation&&!U,Fe);if(ut&&m.validatingFields&&E([oe]),yt[se.name]&&(H.valid=!1,U))break;!U&&(ce(yt,se.name)?Fe?pL(n.errors,yt,se.name):pt(n.errors,se.name,yt[se.name]):qt(n.errors,se.name))}!An(Re)&&await te(Re,U,H)}}return H.valid},pe=()=>{for(const A of c.unMount){const U=ce(s,A);U&&(U._f.refs?U._f.refs.every(H=>!mh(H)):!mh(U._f.ref))&&We(A)}c.unMount=new Set},X=(A,U)=>!t.disabled&&(A&&U&&pt(a,A,U),!Gs(L(),o)),de=(A,U,H)=>Ob(A,c,{...u.mount?a:zt(U)?o:Fr(A)?{[A]:U}:U},H,U),ke=A=>zc(ce(u.mount?a:o,A,t.shouldUnregister?ce(o,A,[]):[])),we=(A,U,H={})=>{const oe=ce(s,A);let ae=U;if(oe){const se=oe._f;se&&(!se.disabled&&pt(a,A,$b(U,se)),ae=vc(se.ref)&&xn(U)?"":U,Bb(se.ref)?[...se.ref.options].forEach(Re=>Re.selected=ae.includes(Re.value)):se.refs?kl(se.ref)?se.refs.length>1?se.refs.forEach(Re=>(!Re.defaultChecked||!Re.disabled)&&(Re.checked=Array.isArray(ae)?!!ae.find(Fe=>Fe===Re.value):ae===Re.value)):se.refs[0]&&(se.refs[0].checked=!!ae):se.refs.forEach(Re=>Re.checked=Re.value===ae):hm(se.ref)?se.ref.value="":(se.ref.value=ae,se.ref.type||g.values.next({name:A,values:{...a}})))}(H.shouldDirty||H.shouldTouch)&&F(A,ae,H.shouldTouch,H.shouldDirty,!0),H.shouldValidate&&ie(A)},De=(A,U,H)=>{for(const oe in U){const ae=U[oe],se=`${A}.${oe}`,Re=ce(s,se);(c.array.has(A)||Ut(ae)||Re&&!Re._f)&&!Ei(ae)?De(se,ae,H):we(se,ae,H)}},me=(A,U,H={})=>{const oe=ce(s,A),ae=c.array.has(A),se=Nn(U);pt(a,A,se),ae?(g.array.next({name:A,values:{...a}}),(m.isDirty||m.dirtyFields)&&H.shouldDirty&&g.state.next({name:A,dirtyFields:ka(o,a),isDirty:X(A,se)})):oe&&!oe._f&&!xn(se)?De(A,se,H):we(A,se,H),c0(A,c)&&g.state.next({...n}),g.values.next({name:u.mount?A:void 0,values:{...a}})},Y=async A=>{u.mount=!0;const U=A.target;let H=U.name,oe=!0;const ae=ce(s,H),se=()=>U.type?gh(ae._f):Pb(A),Re=Fe=>{oe=Number.isNaN(Fe)||Ei(Fe)&&isNaN(Fe.getTime())||Gs(Fe,ce(a,H,Fe))};if(ae){let Fe,ut;const yt=se(),Wt=A.type===yc.BLUR||A.type===yc.FOCUS_OUT,kr=!wL(ae._f)&&!t.resolver&&!ce(n.errors,H)&&!ae._f.deps||SL(Wt,ce(n.touchedFields,H),n.isSubmitted,b,v),bt=c0(H,c,Wt);pt(a,H,yt),Wt?(ae._f.onBlur&&ae._f.onBlur(A),f&&f(0)):ae._f.onChange&&ae._f.onChange(A);const ln=F(H,yt,Wt,!1),Tr=!An(ln)||bt;if(!Wt&&g.values.next({name:H,type:A.type,values:{...a}}),kr)return m.isValid&&(t.mode==="onBlur"&&Wt?C():Wt||C()),Tr&&g.state.next({name:H,...bt?{}:ln});if(!Wt&&bt&&g.state.next({...n}),t.resolver){const{errors:Fn}=await O([H]);if(Re(yt),oe){const ms=y0(n.errors,s,H),Gr=y0(Fn,s,ms.name||H);Fe=Gr.error,H=Gr.name,ut=An(Fn)}}else E([H],!0),Fe=(await m0(ae,c.disabled,a,w,t.shouldUseNativeValidation))[H],E([H]),Re(yt),oe&&(Fe?ut=!1:m.isValid&&(ut=await te(s,!0)));oe&&(ae._f.deps&&ie(ae._f.deps),z(H,ut,Fe,ln))}},ue=(A,U)=>{if(ce(n.errors,U)&&A.focus)return A.focus(),1},ie=async(A,U={})=>{let H,oe;const ae=za(A);if(t.resolver){const se=await q(zt(A)?A:ae);H=An(se),oe=A?!ae.some(Re=>ce(se,Re)):H}else A?(oe=(await Promise.all(ae.map(async se=>{const Re=ce(s,se);return await te(Re&&Re._f?{[se]:Re}:Re)}))).every(Boolean),!(!oe&&!n.isValid)&&C()):oe=H=await te(s);return g.state.next({...!Fr(A)||m.isValid&&H!==n.isValid?{}:{name:A},...t.resolver||!A?{isValid:H}:{},errors:n.errors}),U.shouldFocus&&!oe&&Ua(s,ue,A?ae:c.mount),oe},L=A=>{const U={...u.mount?a:o};return zt(A)?U:Fr(A)?ce(U,A):A.map(H=>ce(U,H))},K=(A,U)=>({invalid:!!ce((U||n).errors,A),isDirty:!!ce((U||n).dirtyFields,A),error:ce((U||n).errors,A),isValidating:!!ce(n.validatingFields,A),isTouched:!!ce((U||n).touchedFields,A)}),Le=A=>{A&&za(A).forEach(U=>qt(n.errors,U)),g.state.next({errors:A?n.errors:{}})},Oe=(A,U,H)=>{const oe=(ce(s,A,{_f:{}})._f||{}).ref,ae=ce(n.errors,A)||{},{ref:se,message:Re,type:Fe,...ut}=ae;pt(n.errors,A,{...ut,...U,ref:oe}),g.state.next({name:A,errors:n.errors,isValid:!1}),H&&H.shouldFocus&&oe&&oe.focus&&oe.focus()},Be=(A,U)=>Or(A)?g.values.subscribe({next:H=>A(de(void 0,U),H)}):de(A,U,!0),We=(A,U={})=>{for(const H of A?za(A):c.mount)c.mount.delete(H),c.array.delete(H),U.keepValue||(qt(s,H),qt(a,H)),!U.keepError&&qt(n.errors,H),!U.keepDirty&&qt(n.dirtyFields,H),!U.keepTouched&&qt(n.touchedFields,H),!U.keepIsValidating&&qt(n.validatingFields,H),!t.shouldUnregister&&!U.keepDefaultValue&&qt(o,H);g.values.next({values:{...a}}),g.state.next({...n,...U.keepDirty?{isDirty:X()}:{}}),!U.keepIsValid&&C()},be=({disabled:A,name:U,field:H,fields:oe})=>{(ir(A)&&u.mount||A||c.disabled.has(U))&&(A?c.disabled.add(U):c.disabled.delete(U),F(U,gh(H?H._f:ce(oe,U)._f),!1,!1,!0))},Pe=(A,U={})=>{let H=ce(s,A);const oe=ir(U.disabled)||ir(t.disabled);return pt(s,A,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:A}},name:A,mount:!0,...U}}),c.mount.add(A),H?be({field:H,disabled:ir(U.disabled)?U.disabled:t.disabled,name:A}):T(A,!0,U.value),{...oe?{disabled:U.disabled||t.disabled}:{},...t.progressive?{required:!!U.required,min:Ta(U.min),max:Ta(U.max),minLength:Ta(U.minLength),maxLength:Ta(U.maxLength),pattern:Ta(U.pattern)}:{},name:A,onChange:Y,onBlur:Y,ref:ae=>{if(ae){Pe(A,U),H=ce(s,A);const se=zt(ae.value)&&ae.querySelectorAll&&ae.querySelectorAll("input,select,textarea")[0]||ae,Re=yL(se),Fe=H._f.refs||[];if(Re?Fe.find(ut=>ut===se):se===H._f.ref)return;pt(s,A,{_f:{...H._f,...Re?{refs:[...Fe.filter(mh),se,...Array.isArray(ce(o,A))?[{}]:[]],ref:{type:se.type,name:A}}:{ref:se}}}),T(A,!1,void 0,se)}else H=ce(s,A,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||U.shouldUnregister)&&!(Nb(c.array,A)&&u.action)&&c.unMount.add(A)}}},Me=()=>t.shouldFocusError&&Ua(s,ue,c.mount),rt=A=>{ir(A)&&(g.state.next({disabled:A}),Ua(s,(U,H)=>{const oe=ce(s,H);oe&&(U.disabled=oe._f.disabled||A,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(ae=>{ae.disabled=oe._f.disabled||A}))},0,!1))},at=(A,U)=>async H=>{let oe;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let ae=Nn(a);if(c.disabled.size)for(const se of c.disabled)pt(ae,se,void 0);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:se,values:Re}=await O();n.errors=se,ae=Re}else await te(s);if(qt(n.errors,"root"),An(n.errors)){g.state.next({errors:{}});try{await A(ae,H)}catch(se){oe=se}}else U&&await U({...n.errors},H),Me(),setTimeout(Me);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:An(n.errors)&&!oe,submitCount:n.submitCount+1,errors:n.errors}),oe)throw oe},Ee=(A,U={})=>{ce(s,A)&&(zt(U.defaultValue)?me(A,Nn(ce(o,A))):(me(A,U.defaultValue),pt(o,A,Nn(U.defaultValue))),U.keepTouched||qt(n.touchedFields,A),U.keepDirty||(qt(n.dirtyFields,A),n.isDirty=U.defaultValue?X(A,Nn(ce(o,A))):X()),U.keepError||(qt(n.errors,A),m.isValid&&C()),g.state.next({...n}))},Xe=(A,U={})=>{const H=A?Nn(A):o,oe=Nn(H),ae=An(A),se=ae?o:oe;if(U.keepDefaultValues||(o=H),!U.keepValues){if(U.keepDirtyValues){const Re=new Set([...c.mount,...Object.keys(ka(o,a))]);for(const Fe of Array.from(Re))ce(n.dirtyFields,Fe)?pt(se,Fe,ce(a,Fe)):me(Fe,ce(se,Fe))}else{if(cm&&zt(A))for(const Re of c.mount){const Fe=ce(s,Re);if(Fe&&Fe._f){const ut=Array.isArray(Fe._f.refs)?Fe._f.refs[0]:Fe._f.ref;if(vc(ut)){const yt=ut.closest("form");if(yt){yt.reset();break}}}}s={}}a=t.shouldUnregister?U.keepDefaultValues?Nn(o):{}:Nn(se),g.array.next({values:{...se}}),g.values.next({values:{...se}})}c={mount:U.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!m.isValid||!!U.keepIsValid||!!U.keepDirtyValues,u.watch=!!t.shouldUnregister,g.state.next({submitCount:U.keepSubmitCount?n.submitCount:0,isDirty:ae?!1:U.keepDirty?n.isDirty:!!(U.keepDefaultValues&&!Gs(A,o)),isSubmitted:U.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ae?{}:U.keepDirtyValues?U.keepDefaultValues&&a?ka(o,a):n.dirtyFields:U.keepDefaultValues&&A?ka(o,A):U.keepDirty?n.dirtyFields:{},touchedFields:U.keepTouched?n.touchedFields:{},errors:U.keepErrors?n.errors:{},isSubmitSuccessful:U.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},mt=(A,U)=>Xe(Or(A)?A(a):A,U);return{control:{register:Pe,unregister:We,getFieldState:K,handleSubmit:at,setError:Oe,_executeSchema:O,_getWatch:de,_getDirty:X,_updateValid:C,_removeUnmounted:pe,_updateFieldArray:R,_updateDisabledField:be,_getFieldArray:ke,_reset:Xe,_resetDefaultValues:()=>Or(t.defaultValues)&&t.defaultValues().then(A=>{mt(A,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:A=>{n={...n,...A}},_disableForm:rt,_subjects:g,_proxyFormState:m,_setErrors:I,get _fields(){return s},get _formValues(){return a},get _state(){return u},set _state(A){u=A},get _defaultValues(){return o},get _names(){return c},set _names(A){c=A},get _formState(){return n},set _formState(A){n=A},get _options(){return t},set _options(A){t={...t,...A}}},trigger:ie,register:Pe,handleSubmit:at,watch:Be,setValue:me,getValues:L,reset:mt,resetField:Ee,clearErrors:Le,unregister:We,setError:Oe,setFocus:(A,U={})=>{const H=ce(s,A),oe=H&&H._f;if(oe){const ae=oe.refs?oe.refs[0]:oe.ref;ae.focus&&(ae.focus(),U.shouldSelect&&Or(ae.select)&&ae.select())}},getFieldState:K}}function Uc(e={}){const t=it.useRef(void 0),n=it.useRef(void 0),[s,o]=it.useState({isDirty:!1,isValidating:!1,isLoading:Or(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Or(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...EL(e),formState:s});const a=t.current.control;return a._options=e,fm({subject:a._subjects.state,next:u=>{Lb(u,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),it.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),it.useEffect(()=>{if(a._proxyFormState.isDirty){const u=a._getDirty();u!==s.isDirty&&a._subjects.state.next({isDirty:u})}},[a,s.isDirty]),it.useEffect(()=>{e.values&&!Gs(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,o(u=>({...u}))):a._resetDefaultValues()},[e.values,a]),it.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),it.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),it.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Db(s,a),t.current}var CL="Label",Wb=_.forwardRef((e,t)=>x.jsx(_n.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wb.displayName=CL;var Hb=Wb;const kL=kp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Gb=_.forwardRef(({className:e,...t},n)=>x.jsx(Hb,{ref:n,className:Ye(kL(),e),...t}));Gb.displayName=Hb.displayName;const $c=uL,Zb=_.createContext({}),Qa=({...e})=>x.jsx(Zb.Provider,{value:{name:e.name},children:x.jsx(hL,{...e})}),Wc=()=>{const e=_.useContext(Zb),t=_.useContext(Kb),{getFieldState:n,formState:s}=Bi(),o=n(e.name,s);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Kb=_.createContext({}),jn=_.forwardRef(({className:e,...t},n)=>{const s=_.useId();return x.jsx(Kb.Provider,{value:{id:s},children:x.jsx("div",{ref:n,className:Ye("space-y-2",e),...t})})});jn.displayName="FormItem";const Dn=_.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:o}=Wc();return x.jsx(Gb,{ref:n,className:Ye(s&&"text-destructive",e),htmlFor:o,...t})});Dn.displayName="FormLabel";const Ln=_.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:o,formMessageId:a}=Wc();return x.jsx(Pi,{ref:t,id:s,"aria-describedby":n?`${o} ${a}`:`${o}`,"aria-invalid":!!n,...e})});Ln.displayName="FormControl";const TL=_.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Wc();return x.jsx("p",{ref:n,id:s,className:Ye("text-[0.8rem] text-muted-foreground",e),...t})});TL.displayName="FormDescription";const qb=_.forwardRef(({className:e,children:t,...n},s)=>{const{error:o,formMessageId:a}=Wc(),u=o?String(o==null?void 0:o.message):t;return u?x.jsx("p",{ref:s,id:a,className:Ye("text-[0.8rem] font-medium text-destructive",e),...n,children:u}):null});qb.displayName="FormMessage";const qh=_.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?x.jsx("input",{type:t,className:Ye("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):x.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[x.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:Ye("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),x.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[x.jsx(zR,{className:"cursor-pointer",size:16})," Upload file"]})]}));qh.displayName="Input";const Yb=_.forwardRef(({className:e,...t},n)=>x.jsx("textarea",{className:Ye("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Yb.displayName="Textarea";const qe=({control:e,name:t,label:n,placeholder:s,error:o,type:a="text",className:u,disabled:c,textArea:f=!1,textDark:h,supporText:m,handleChange:g,onPrimary:v=!1})=>x.jsx(Qa,{control:e,name:t,render:({field:b})=>x.jsxs(jn,{className:Ye(u,"flex flex-col w-full relative"),children:[x.jsx(Dn,{className:Ye("text-xl",v&&"!text-on_primary",h?"text-on_surface":"text-on_surface_v"),children:n}),x.jsx(Ln,{children:x.jsx(x.Fragment,{children:f?x.jsx(Yb,{rows:3,...b,placeholder:s,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):a!=="file"?x.jsx(qh,{...b,type:a,placeholder:s,disabled:c,className:Ye(o&&"border-[#BA1A1A]",v&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):x.jsxs("div",{className:"relative",children:[x.jsx(qh,{type:"file",placeholder:s,onChange:w=>{var C;const S=((C=w.target.files)==null?void 0:C[0])||null;console.log("Выбранный файл:",S),b.onChange(S),g&&g(w)},disabled:c}),b.value&&x.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",b.value.name]})]})})}),x.jsx(qb,{className:Ye("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",o&&v?"text-teritary_04":"text-[#BA1A1A]"),children:o?o.message:m})]})}),mm=({className:e,delay:t=.15})=>x.jsxs(fs.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:Ye("flex flex-col gap-8 my-16",e),children:[x.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),x.jsx(wn,{className:"w-fit mx-auto",to:"/",children:x.jsx(Jt,{variant:"outline",children:"Вернуться на главную"})})]}),Xb=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],RL=()=>x.jsx("section",{className:"",children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10 text-center",children:"Тематические направления выставки"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(e=>x.jsx(Jw,{...e,iconClassName:"bg-teritary_04"},e.title))})]})}),PL=({className:e})=>x.jsxs("section",{className:Ye("relative w-full bg-[#FDE8C4] -z-10 py-10",e),children:[x.jsx("img",{src:"/theme-cover.png",alt:"",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),x.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),x.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Xb.map(t=>x.jsx(Jw,{className:"!bg-primary_container",...t},t.title))}),x.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[x.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),x.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})]}),Qb=[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}],NL=[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}],AL=({className:e})=>x.jsx("section",{className:Ye("bg-surface_high pt-10 pb-20",e),children:x.jsxs(On,{children:[x.jsx("h2",{className:"h2 mb-10",children:"Время выставки"}),x.jsxs("div",{className:"flex flex-col gap-6",children:[x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{...t,key:t.name,className:"w-full"}))}),x.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:NL.map(t=>_.createElement(AP,{...t,key:t.title,className:"w-full"}))}),x.jsx(wn,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:x.jsx(Jt,{className:"w-full",children:"Забронируйте стенд "})})]})]})}),jL=({className:e})=>x.jsx("section",{className:Ye("bg-bg_surface_container py-10 md:py-[160px]",e),children:x.jsxs(On,{children:[x.jsx("h3",{className:"h2 mb-6",children:"Время выставки"}),x.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Qb.map(t=>_.createElement(eS,{bottomClassName:"!bg-white rounded-b-[2px]",...t,key:t.name,className:"w-full"}))})]})}),DL=({className:e})=>x.jsxs("section",{className:Ye(" gap-6 relative overflow-hidden",e),children:[x.jsxs(On,{className:"md:py-20 py-10 ",children:[x.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),x.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),x.jsx("div",{className:"size-full xl:hidden",children:x.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),x.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:x.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),LL=({className:e})=>x.jsxs("section",{className:Ye("md:py-20 py-10 relative overflow-hidden",e),children:[x.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),x.jsxs(On,{children:[x.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),x.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),x.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[x.jsx(wn,{to:"/stend-form",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),x.jsx(wn,{to:"/B2B-B2G",className:"w-full",children:x.jsx(Jt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]});function ML(e){return Object.prototype.toString.call(e)==="[object Object]"}function v0(e){return ML(e)||Array.isArray(e)}function OL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function gm(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:n.every(u=>{const c=e[u],f=t[u];return typeof c=="function"?`${c}`==`${f}`:!v0(c)||!v0(f)?c===f:gm(c,f)})}function x0(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function FL(e,t){if(e.length!==t.length)return!1;const n=x0(e),s=x0(t);return n.every((o,a)=>{const u=s[a];return gm(o,u)})}function ym(e){return typeof e=="number"}function Yh(e){return typeof e=="string"}function Hc(e){return typeof e=="boolean"}function w0(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dt(e){return Math.abs(e)}function vm(e){return Math.sign(e)}function $a(e,t){return Dt(e-t)}function IL(e,t){if(e===0||t===0||Dt(e)<=Dt(t))return 0;const n=$a(Dt(e),Dt(t));return Dt(n/e)}function VL(e){return Math.round(e*100)/100}function Ja(e){return el(e).map(Number)}function wr(e){return e[Tl(e)]}function Tl(e){return Math.max(0,e.length-1)}function xm(e,t){return t===Tl(e)}function S0(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function el(e){return Object.keys(e)}function Jb(e,t){return[e,t].reduce((n,s)=>(el(s).forEach(o=>{const a=n[o],u=s[o],c=w0(a)&&w0(u);n[o]=c?Jb(a,u):u}),n),{})}function Xh(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function BL(e,t){const n={start:s,center:o,end:a};function s(){return 0}function o(f){return a(f)/2}function a(f){return t-f}function u(f,h){return Yh(e)?n[e](f):e(t,f,h)}return{measure:u}}function tl(){let e=[];function t(o,a,u,c={passive:!0}){let f;if("addEventListener"in o)o.addEventListener(a,u,c),f=()=>o.removeEventListener(a,u,c);else{const h=o;h.addListener(u),f=()=>h.removeListener(u)}return e.push(f),s}function n(){e=e.filter(o=>o())}const s={add:t,clear:n};return s}function zL(e,t,n,s){const o=tl(),a=1e3/60;let u=null,c=0,f=0;function h(){o.add(e,"visibilitychange",()=>{e.hidden&&w()})}function m(){b(),o.clear()}function g(C){if(!f)return;u||(u=C,n(),n());const E=C-u;for(u=C,c+=E;c>=a;)n(),c-=a;const R=c/a;s(R),f&&(f=t.requestAnimationFrame(g))}function v(){f||(f=t.requestAnimationFrame(g))}function b(){t.cancelAnimationFrame(f),u=null,c=0,f=0}function w(){u=null,c=0}return{init:h,destroy:m,start:v,stop:b,update:n,render:s}}function UL(e,t){const n=t==="rtl",s=e==="y",o=s?"y":"x",a=s?"x":"y",u=!s&&n?-1:1,c=m(),f=g();function h(w){const{height:S,width:C}=w;return s?S:C}function m(){return s?"top":n?"right":"left"}function g(){return s?"bottom":n?"left":"right"}function v(w){return w*u}return{scroll:o,cross:a,startEdge:c,endEdge:f,measureSize:h,direction:v}}function Ai(e=0,t=0){const n=Dt(e-t);function s(h){return ht}function a(h){return s(h)||o(h)}function u(h){return a(h)?s(h)?e:t:h}function c(h){return n?h-n*Math.ceil((h-t)/n):h}return{length:n,max:t,min:e,constrain:u,reachedAny:a,reachedMax:o,reachedMin:s,removeOffset:c}}function e_(e,t,n){const{constrain:s}=Ai(0,e),o=e+1;let a=u(t);function u(v){return n?Dt((o+v)%o):s(v)}function c(){return a}function f(v){return a=u(v),g}function h(v){return m().set(c()+v)}function m(){return e_(e,c(),n)}const g={get:c,set:f,add:h,clone:m};return g}function $L(e,t,n,s,o,a,u,c,f,h,m,g,v,b,w,S,C,E,R){const{cross:N,direction:I}=e,T=["INPUT","SELECT","TEXTAREA"],F={passive:!1},z=tl(),O=tl(),q=Ai(50,225).constrain(b.measure(20)),te={mouse:300,touch:400},pe={mouse:500,touch:600},X=w?43:25;let de=!1,ke=0,we=0,De=!1,me=!1,Y=!1,ue=!1;function ie(Ee){if(!R)return;function Xe(It){(Hc(R)||R(Ee,It))&&We(It)}const mt=t;z.add(mt,"dragstart",It=>It.preventDefault(),F).add(mt,"touchmove",()=>{},F).add(mt,"touchend",()=>{}).add(mt,"touchstart",Xe).add(mt,"mousedown",Xe).add(mt,"touchcancel",Pe).add(mt,"contextmenu",Pe).add(mt,"click",Me,!0)}function L(){z.clear(),O.clear()}function K(){const Ee=ue?n:t;O.add(Ee,"touchmove",be,F).add(Ee,"touchend",Pe).add(Ee,"mousemove",be,F).add(Ee,"mouseup",Pe)}function Le(Ee){const Xe=Ee.nodeName||"";return T.includes(Xe)}function Oe(){return(w?pe:te)[ue?"mouse":"touch"]}function Be(Ee,Xe){const mt=g.add(vm(Ee)*-1),It=m.byDistance(Ee,!w).distance;return w||Dt(Ee)=2,!(Xe&&Ee.button!==0)&&(Le(Ee.target)||(De=!0,a.pointerDown(Ee),h.useFriction(0).useDuration(0),o.set(u),K(),ke=a.readPoint(Ee),we=a.readPoint(Ee,N),v.emit("pointerDown")))}function be(Ee){if(!Xh(Ee,s)&&Ee.touches.length>=2)return Pe(Ee);const mt=a.readPoint(Ee),It=a.readPoint(Ee,N),en=$a(mt,ke),an=$a(It,we);if(!me&&!ue&&(!Ee.cancelable||(me=en>an,!me)))return Pe(Ee);const A=a.pointerMove(Ee);en>S&&(Y=!0),h.useFriction(.3).useDuration(.75),c.start(),o.add(I(A)),Ee.preventDefault()}function Pe(Ee){const mt=m.byDistance(0,!1).index!==g.get(),It=a.pointerUp(Ee)*Oe(),en=Be(I(It),mt),an=IL(It,en),A=X-10*an,U=E+an/50;me=!1,De=!1,O.clear(),h.useDuration(A).useFriction(U),f.distance(en,!w),ue=!1,v.emit("pointerUp")}function Me(Ee){Y&&(Ee.stopPropagation(),Ee.preventDefault(),Y=!1)}function rt(){return De}return{init:ie,destroy:L,pointerDown:rt}}function WL(e,t){let s,o;function a(g){return g.timeStamp}function u(g,v){const w=`client${(v||e.scroll)==="x"?"X":"Y"}`;return(Xh(g,t)?g:g.touches[0])[w]}function c(g){return s=g,o=g,u(g)}function f(g){const v=u(g)-u(o),b=a(g)-a(s)>170;return o=g,b&&(s=g),v}function h(g){if(!s||!o)return 0;const v=u(o)-u(s),b=a(g)-a(s),w=a(g)-a(o)>170,S=v/b;return b&&!w&&Dt(S)>.1?S:0}return{pointerDown:c,pointerMove:f,pointerUp:h,readPoint:u}}function HL(){function e(n){const{offsetTop:s,offsetLeft:o,offsetWidth:a,offsetHeight:u}=n;return{top:s,right:o+a,bottom:s+u,left:o,width:a,height:u}}return{measure:e}}function GL(e){function t(s){return e*(s/100)}return{measure:t}}function ZL(e,t,n,s,o,a,u){const c=[e].concat(s);let f,h,m=[],g=!1;function v(C){return o.measureSize(u.measure(C))}function b(C){if(!a)return;h=v(e),m=s.map(v);function E(R){for(const N of R){if(g)return;const I=N.target===e,T=s.indexOf(N.target),F=I?h:m[T],z=v(I?e:s[T]);if(Dt(z-F)>=.5){C.reInit(),t.emit("resize");break}}}f=new ResizeObserver(R=>{(Hc(a)||a(C,R))&&E(R)}),n.requestAnimationFrame(()=>{c.forEach(R=>f.observe(R))})}function w(){g=!0,f&&f.disconnect()}return{init:b,destroy:w}}function KL(e,t,n,s,o,a){let u=0,c=0,f=o,h=a,m=e.get(),g=0;function v(){const F=s.get()-e.get(),z=!f;let O=0;return z?(u=0,n.set(s),e.set(s),O=F):(n.set(e),u+=F/f,u*=h,m+=u,e.add(u),O=m-g),c=vm(O),g=m,T}function b(){const F=s.get()-t.get();return Dt(F)<.001}function w(){return f}function S(){return c}function C(){return u}function E(){return N(o)}function R(){return I(a)}function N(F){return f=F,T}function I(F){return h=F,T}const T={direction:S,duration:w,velocity:C,seek:v,settled:b,useBaseFriction:R,useBaseDuration:E,useFriction:I,useDuration:N};return T}function qL(e,t,n,s,o){const a=o.measure(10),u=o.measure(50),c=Ai(.1,.99);let f=!1;function h(){return!(f||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function m(b){if(!h())return;const w=e.reachedMin(t.get())?"min":"max",S=Dt(e[w]-t.get()),C=n.get()-t.get(),E=c.constrain(S/u);n.subtract(C*E),!b&&Dt(C){const{min:C,max:E}=a,R=a.constrain(w),N=!S,I=xm(n,S);return N?E:I||h(C,R)?C:h(E,R)?E:R}).map(w=>parseFloat(w.toFixed(3)))}function v(){if(t<=e+o)return[a.max];if(s==="keepSnaps")return u;const{min:w,max:S}=c;return u.slice(w,S)}return{snapsContained:f,scrollContainLimit:c}}function XL(e,t,n){const s=t[0],o=n?s-e:wr(t);return{limit:Ai(o,s)}}function QL(e,t,n,s){const a=t.min+.1,u=t.max+.1,{reachedMin:c,reachedMax:f}=Ai(a,u);function h(v){return v===1?f(n.get()):v===-1?c(n.get()):!1}function m(v){if(!h(v))return;const b=e*(v*-1);s.forEach(w=>w.add(b))}return{loop:m}}function JL(e){const{max:t,length:n}=e;function s(a){const u=a-t;return n?u/-n:0}return{get:s}}function eM(e,t,n,s,o){const{startEdge:a,endEdge:u}=e,{groupSlides:c}=o,f=g().map(t.measure),h=v(),m=b();function g(){return c(s).map(S=>wr(S)[u]-S[0][a]).map(Dt)}function v(){return s.map(S=>n[a]-S[a]).map(S=>-Dt(S))}function b(){return c(h).map(S=>S[0]).map((S,C)=>S+f[C])}return{snaps:h,snapsAligned:m}}function tM(e,t,n,s,o,a){const{groupSlides:u}=o,{min:c,max:f}=s,h=m();function m(){const v=u(a),b=!e||t==="keepSnaps";return n.length===1?[a]:b?v:v.slice(c,f).map((w,S,C)=>{const E=!S,R=xm(C,S);if(E){const N=wr(C[0])+1;return S0(N)}if(R){const N=Tl(a)-wr(C)[0]+1;return S0(N,wr(C)[0])}return w})}return{slideRegistry:h}}function nM(e,t,n,s,o){const{reachedAny:a,removeOffset:u,constrain:c}=s;function f(w){return w.concat().sort((S,C)=>Dt(S)-Dt(C))[0]}function h(w){const S=e?u(w):c(w),C=t.map((R,N)=>({diff:m(R-S,0),index:N})).sort((R,N)=>Dt(R.diff)-Dt(N.diff)),{index:E}=C[0];return{index:E,distance:S}}function m(w,S){const C=[w,w+n,w-n];if(!e)return w;if(!S)return f(C);const E=C.filter(R=>vm(R)===S);return E.length?f(E):wr(C)-n}function g(w,S){const C=t[w]-o.get(),E=m(C,S);return{index:w,distance:E}}function v(w,S){const C=o.get()+w,{index:E,distance:R}=h(C),N=!e&&a(C);if(!S||N)return{index:E,distance:w};const I=t[E]-R,T=w+m(I,0);return{index:E,distance:T}}return{byDistance:v,byIndex:g,shortcut:m}}function rM(e,t,n,s,o,a,u){function c(g){const v=g.distance,b=g.index!==t.get();a.add(v),v&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(g.index),u.emit("select"))}function f(g,v){const b=o.byDistance(g,v);c(b)}function h(g,v){const b=t.clone().set(g),w=o.byIndex(b.get(),v);c(w)}return{distance:f,index:h}}function sM(e,t,n,s,o,a,u,c){const f={passive:!0,capture:!0};let h=0;function m(b){if(!c)return;function w(S){if(new Date().getTime()-h>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;const R=n.findIndex(N=>N.includes(S));ym(R)&&(o.useDuration(0),s.index(R,0),u.emit("slideFocus"))}a.add(document,"keydown",g,!1),t.forEach((S,C)=>{a.add(S,"focus",E=>{(Hc(c)||c(b,E))&&w(C)},f)})}function g(b){b.code==="Tab"&&(h=new Date().getTime())}return{init:m}}function Da(e){let t=e;function n(){return t}function s(f){t=u(f)}function o(f){t+=u(f)}function a(f){t-=u(f)}function u(f){return ym(f)?f:f.get()}return{get:n,set:s,add:o,subtract:a}}function t_(e,t){const n=e.scroll==="x"?u:c,s=t.style;let o=null,a=!1;function u(v){return`translate3d(${v}px,0px,0px)`}function c(v){return`translate3d(0px,${v}px,0px)`}function f(v){if(a)return;const b=VL(e.direction(v));b!==o&&(s.transform=n(b),o=b)}function h(v){a=!v}function m(){a||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:m,to:f,toggleActive:h}}function iM(e,t,n,s,o,a,u,c,f){const m=Ja(o),g=Ja(o).reverse(),v=E().concat(R());function b(z,O){return z.reduce((q,te)=>q-o[te],O)}function w(z,O){return z.reduce((q,te)=>b(q,O)>0?q.concat([te]):q,[])}function S(z){return a.map((O,q)=>({start:O-s[q]+.5+z,end:O+t-.5+z}))}function C(z,O,q){const te=S(O);return z.map(pe=>{const X=q?0:-n,de=q?n:0,ke=q?"end":"start",we=te[pe][ke];return{index:pe,loopPoint:we,slideLocation:Da(-1),translate:t_(e,f[pe]),target:()=>c.get()>we?X:de}})}function E(){const z=u[0],O=w(g,z);return C(O,n,!1)}function R(){const z=t-u[0]-1,O=w(m,z);return C(O,-n,!0)}function N(){return v.every(({index:z})=>{const O=m.filter(q=>q!==z);return b(O,t)<=.1})}function I(){v.forEach(z=>{const{target:O,translate:q,slideLocation:te}=z,pe=O();pe!==te.get()&&(q.to(pe),te.set(pe))})}function T(){v.forEach(z=>z.translate.clear())}return{canLoop:N,clear:T,loop:I,loopPoints:v}}function oM(e,t,n){let s,o=!1;function a(f){if(!n)return;function h(m){for(const g of m)if(g.type==="childList"){f.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(m=>{o||(Hc(n)||n(f,m))&&h(m)}),s.observe(e,{childList:!0})}function u(){s&&s.disconnect(),o=!0}return{init:a,destroy:u}}function aM(e,t,n,s){const o={};let a=null,u=null,c,f=!1;function h(){c=new IntersectionObserver(w=>{f||(w.forEach(S=>{const C=t.indexOf(S.target);o[C]=S}),a=null,u=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(w=>c.observe(w))}function m(){c&&c.disconnect(),f=!0}function g(w){return el(o).reduce((S,C)=>{const E=parseInt(C),{isIntersecting:R}=o[E];return(w&&R||!w&&!R)&&S.push(E),S},[])}function v(w=!0){if(w&&a)return a;if(!w&&u)return u;const S=g(w);return w&&(a=S),w||(u=S),S}return{init:h,destroy:m,get:v}}function lM(e,t,n,s,o,a){const{measureSize:u,startEdge:c,endEdge:f}=e,h=n[0]&&o,m=w(),g=S(),v=n.map(u),b=C();function w(){if(!h)return 0;const R=n[0];return Dt(t[c]-R[c])}function S(){if(!h)return 0;const R=a.getComputedStyle(wr(s));return parseFloat(R.getPropertyValue(`margin-${f}`))}function C(){return n.map((R,N,I)=>{const T=!N,F=xm(I,N);return T?v[N]+m:F?v[N]+g:I[N+1][c]-R[c]}).map(Dt)}return{slideSizes:v,slideSizesWithGaps:b,startGap:m,endGap:g}}function uM(e,t,n,s,o,a,u,c,f){const{startEdge:h,endEdge:m,direction:g}=e,v=ym(n);function b(E,R){return Ja(E).filter(N=>N%R===0).map(N=>E.slice(N,N+R))}function w(E){return E.length?Ja(E).reduce((R,N,I)=>{const T=wr(R)||0,F=T===0,z=N===Tl(E),O=o[h]-a[T][h],q=o[h]-a[N][m],te=!s&&F?g(u):0,pe=!s&&z?g(c):0,X=Dt(q-pe-(O+te));return I&&X>t+f&&R.push(N),z&&R.push(E.length),R},[]).map((R,N,I)=>{const T=Math.max(I[N-1]||0);return E.slice(T,R)}):[]}function S(E){return v?b(E,n):w(E)}return{groupSlides:S}}function cM(e,t,n,s,o,a,u){const{align:c,axis:f,direction:h,startIndex:m,loop:g,duration:v,dragFree:b,dragThreshold:w,inViewThreshold:S,slidesToScroll:C,skipSnaps:E,containScroll:R,watchResize:N,watchSlides:I,watchDrag:T,watchFocus:F}=a,z=2,O=HL(),q=O.measure(t),te=n.map(O.measure),pe=UL(f,h),X=pe.measureSize(q),de=GL(X),ke=BL(c,X),we=!g&&!!R,De=g||!!R,{slideSizes:me,slideSizesWithGaps:Y,startGap:ue,endGap:ie}=lM(pe,q,te,n,De,o),L=uM(pe,X,C,g,q,te,ue,ie,z),{snaps:K,snapsAligned:Le}=eM(pe,ke,q,te,L),Oe=-wr(K)+wr(Y),{snapsContained:Be,scrollContainLimit:We}=YL(X,Oe,Le,R,z),be=we?Be:Le,{limit:Pe}=XL(Oe,be,g),Me=e_(Tl(be),m,g),rt=Me.clone(),at=Ja(n),Ee=({dragHandler:bt,scrollBody:ln,scrollBounds:Tr,options:{loop:Fn}})=>{Fn||Tr.constrain(bt.pointerDown()),ln.seek()},Xe=({scrollBody:bt,translate:ln,location:Tr,offsetLocation:Fn,previousLocation:ms,scrollLooper:Gr,slideLooper:Rr,dragHandler:gs,animation:Zr,eventHandler:ys,scrollBounds:vs,options:{loop:ar}},Kn)=>{const Pr=bt.settled(),Kr=!vs.shouldConstrain(),ri=ar?Pr:Pr&&Kr;ri&&!gs.pointerDown()&&(Zr.stop(),ys.emit("settle")),ri||ys.emit("scroll");const zi=Tr.get()*Kn+ms.get()*(1-Kn);Fn.set(zi),ar&&(Gr.loop(bt.direction()),Rr.loop()),ln.to(Fn.get())},mt=zL(s,o,()=>Ee(kr),bt=>Xe(kr,bt)),It=.68,en=be[Me.get()],an=Da(en),A=Da(en),U=Da(en),H=Da(en),oe=KL(an,U,A,H,v,It),ae=nM(g,be,Oe,Pe,H),se=rM(mt,Me,rt,oe,ae,H,u),Re=JL(Pe),Fe=tl(),ut=aM(t,n,u,S),{slideRegistry:yt}=tM(we,R,be,We,L,at),Wt=sM(e,n,yt,se,oe,Fe,u,F),kr={ownerDocument:s,ownerWindow:o,eventHandler:u,containerRect:q,slideRects:te,animation:mt,axis:pe,dragHandler:$L(pe,e,s,o,H,WL(pe,o),an,mt,se,oe,ae,Me,u,de,b,w,E,It,T),eventStore:Fe,percentOfView:de,index:Me,indexPrevious:rt,limit:Pe,location:an,offsetLocation:U,previousLocation:A,options:a,resizeHandler:ZL(t,u,o,n,pe,N,O),scrollBody:oe,scrollBounds:qL(Pe,U,H,oe,de),scrollLooper:QL(Oe,Pe,U,[an,U,A,H]),scrollProgress:Re,scrollSnapList:be.map(Re.get),scrollSnaps:be,scrollTarget:ae,scrollTo:se,slideLooper:iM(pe,X,Oe,me,Y,K,be,U,n),slideFocus:Wt,slidesHandler:oM(t,u,I),slidesInView:ut,slideIndexes:at,slideRegistry:yt,slidesToScroll:L,target:H,translate:t_(pe,t)};return kr}function dM(){let e={},t;function n(h){t=h}function s(h){return e[h]||[]}function o(h){return s(h).forEach(m=>m(t,h)),f}function a(h,m){return e[h]=s(h).concat([m]),f}function u(h,m){return e[h]=s(h).filter(g=>g!==m),f}function c(){e={}}const f={init:n,emit:o,off:u,on:a,clear:c};return f}const fM={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function hM(e){function t(a,u){return Jb(a,u||{})}function n(a){const u=a.breakpoints||{},c=el(u).filter(f=>e.matchMedia(f).matches).map(f=>u[f]).reduce((f,h)=>t(f,h),{});return t(a,c)}function s(a){return a.map(u=>el(u.breakpoints||{})).reduce((u,c)=>u.concat(c),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function pM(e){let t=[];function n(a,u){return t=u.filter(({options:c})=>e.optionsAtMedia(c).active!==!1),t.forEach(c=>c.init(a,e)),u.reduce((c,f)=>Object.assign(c,{[f.name]:f}),{})}function s(){t=t.filter(a=>a.destroy())}return{init:n,destroy:s}}function Sc(e,t,n){const s=e.ownerDocument,o=s.defaultView,a=hM(o),u=pM(a),c=tl(),f=dM(),{mergeOptions:h,optionsAtMedia:m,optionsMediaQueries:g}=a,{on:v,off:b,emit:w}=f,S=pe;let C=!1,E,R=h(fM,Sc.globalOptions),N=h(R),I=[],T,F,z;function O(){const{container:at,slides:Ee}=N;F=(Yh(at)?e.querySelector(at):at)||e.children[0];const mt=Yh(Ee)?F.querySelectorAll(Ee):Ee;z=[].slice.call(mt||F.children)}function q(at){const Ee=cM(e,F,z,s,o,at,f);if(at.loop&&!Ee.slideLooper.canLoop()){const Xe=Object.assign({},at,{loop:!1});return q(Xe)}return Ee}function te(at,Ee){C||(R=h(R,at),N=m(R),I=Ee||I,O(),E=q(N),g([R,...I.map(({options:Xe})=>Xe)]).forEach(Xe=>c.add(Xe,"change",pe)),N.active&&(E.translate.to(E.location.get()),E.animation.init(),E.slidesInView.init(),E.slideFocus.init(rt),E.eventHandler.init(rt),E.resizeHandler.init(rt),E.slidesHandler.init(rt),E.options.loop&&E.slideLooper.loop(),F.offsetParent&&z.length&&E.dragHandler.init(rt),T=u.init(rt,I)))}function pe(at,Ee){const Xe=L();X(),te(h({startIndex:Xe},at),Ee),f.emit("reInit")}function X(){E.dragHandler.destroy(),E.eventStore.clear(),E.translate.clear(),E.slideLooper.clear(),E.resizeHandler.destroy(),E.slidesHandler.destroy(),E.slidesInView.destroy(),E.animation.destroy(),u.destroy(),c.clear()}function de(){C||(C=!0,c.clear(),X(),f.emit("destroy"),f.clear())}function ke(at,Ee,Xe){!N.active||C||(E.scrollBody.useBaseFriction().useDuration(Ee===!0?0:N.duration),E.scrollTo.index(at,Xe||0))}function we(at){const Ee=E.index.add(1).get();ke(Ee,at,-1)}function De(at){const Ee=E.index.add(-1).get();ke(Ee,at,1)}function me(){return E.index.add(1).get()!==L()}function Y(){return E.index.add(-1).get()!==L()}function ue(){return E.scrollSnapList}function ie(){return E.scrollProgress.get(E.location.get())}function L(){return E.index.get()}function K(){return E.indexPrevious.get()}function Le(){return E.slidesInView.get()}function Oe(){return E.slidesInView.get(!1)}function Be(){return T}function We(){return E}function be(){return e}function Pe(){return F}function Me(){return z}const rt={canScrollNext:me,canScrollPrev:Y,containerNode:Pe,internalEngine:We,destroy:de,off:b,on:v,emit:w,plugins:Be,previousScrollSnap:K,reInit:S,rootNode:be,scrollNext:we,scrollPrev:De,scrollProgress:ie,scrollSnapList:ue,scrollTo:ke,selectedScrollSnap:L,slideNodes:Me,slidesInView:Le,slidesNotInView:Oe};return te(t,n),setTimeout(()=>f.emit("init"),0),rt}Sc.globalOptions=void 0;function Rl(e={},t=[]){const n=_.useRef(e),s=_.useRef(t),[o,a]=_.useState(),[u,c]=_.useState(),f=_.useCallback(()=>{o&&o.reInit(n.current,s.current)},[o]);return _.useEffect(()=>{gm(n.current,e)||(n.current=e,f())},[e,f]),_.useEffect(()=>{FL(s.current,t)||(s.current=t,f())},[t,f]),_.useEffect(()=>{if(OL()&&u){Sc.globalOptions=Rl.globalOptions;const h=Sc(u,n.current,s.current);return a(h),()=>h.destroy()}else a(void 0)},[u,a]),[c,o]}Rl.globalOptions=void 0;const mM=[{title:"План выставки",link:""},{title:"Забронировать стенд",link:"/stend-form"},{title:"Программа ",link:""},{title:"Стать спонсором",link:"/become-sponsor"}],gM=()=>{const[e]=Rl(),t=Zh("(min-width: 1024px)"),n=Zh("(min-width: 768px)");function s(){return t?"/banners/ru/l.jpg":n?"/banners/ru/m.jpg":"/banners/ru/s.jpg"}return x.jsxs("section",{className:"flex flex-col gap-5",children:[x.jsx("div",{ref:e,className:"embla",children:x.jsx("div",{className:"embla__container",children:x.jsx("div",{className:"embla__slide",children:x.jsx("img",{src:s(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),x.jsx(On,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:mM.map(({title:o,link:a})=>x.jsx(wn,{to:a,className:"w-full",children:x.jsx(Jt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},yM=[{nums:"4,200 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],vM=()=>{const[e]=Rl();return x.jsx("section",{children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"text-center",children:[x.jsxs("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:["Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"," "]}),x.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),x.jsx("div",{ref:e,className:"embla overflow-hidden",children:x.jsx("div",{className:"flex embla__container items-center gap-6",children:yM.map(t=>x.jsx(NP,{...t,className:"embla__slide flex-[0_0_288px]"},t.text))})}),x.jsx(wn,{to:"/about",className:"mx-auto",children:x.jsx(Jt,{variant:"outline",children:"Подробнее о выставке"})})]})})},xM=()=>{const[e]=Rl({align:"start"});return x.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:x.jsx(On,{children:x.jsx("div",{ref:e,className:"embla ",children:x.jsxs("div",{className:"mb-2 flex gap-6 embla__container",children:[x.jsx(Wv,{img:"/offer-1.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Гостиницы, трансфер, визы",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете обращаться к официальным туроператорам выставки"}),x.jsx(Wv,{img:"/offer-2.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Ознакомьтесь с планом выставки ITSE 2025",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов"})]})})})})},wM=[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"}],n_=[{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}],SM=()=>x.jsxs("header",{children:[x.jsx("div",{className:"h-12 hidden lg:flex bg-teritary text-on_primary items-center overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(FR,{}),x.jsx("h4",{className:"text-sm",children:"Ашхабад, Туркменистан"})]}),x.jsx("nav",{className:"flex items-center gap-6 text-white",children:wM.map(({title:e,link:t})=>x.jsx(wn,{className:"py-2",to:t,children:e},e))})]}),x.jsx("div",{className:"flex items-center gap-6",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(VR,{size:16,strokeWidth:"3px"}),x.jsx("h4",{className:"text-sm text-white",children:"+99371871812"})]})})]})}),x.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:x.jsxs(On,{className:"flex items-center justify-between ",children:[x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx(wn,{to:"/",children:x.jsx(Qw,{})}),x.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n_.map(({title:e,link:t})=>x.jsxs(wn,{to:t,className:"flex items-center gap-2",children:[e," ",x.jsx("img",{src:"/chevron.svg"})]},e))})]}),x.jsx("div",{className:"flex items-center",children:x.jsx(bM,{})}),x.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:"Официальная поддержка"}),x.jsx(wn,{to:"/B2B-B2G",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:"B2B | B2G встречи"})})]})]})})]}),bM=()=>{const[e,t]=_.useState(!1);return x.jsxs(bP,{onOpenChange:()=>t(!e),open:e,children:[x.jsx(_P,{children:x.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"}),x.jsx("div",{className:"w-[18px] h-0.5 bg-reverse_primary rounded-[2px]"})]})}),x.jsxs(Yw,{className:"overflow-y-auto",children:[x.jsx(EP,{}),x.jsxs(Xw,{className:"mt-16 flex flex-col gap-2",children:[x.jsx(wn,{to:"",children:x.jsx(Jt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),x.jsx(wn,{to:"/B2B-B2G",onClick:()=>t(!1),children:x.jsx(Jt,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),x.jsx("hr",{className:"border-slate-500/20 my-8"}),x.jsx("div",{className:"flex flex-col gap-6",children:n_.map(n=>x.jsx(wn,{onClick:()=>t(!1),className:"h-10 text-on_surface ",to:n.link,children:n.title},n.title))})]})]})},_M=()=>x.jsx("footer",{className:"py-5 bg-primary",children:x.jsxs(On,{className:"flex flex-col gap-6",children:[x.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[x.jsx(Qw,{}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx("img",{src:"/inst.svg"}),x.jsx("img",{src:"/in.svg"}),x.jsx("img",{src:"/x.svg"})]})]}),x.jsx("hr",{className:"border-white/50"}),x.jsx("h5",{className:"text-base text-center normal text-white",children:"©2025 Все права защищены"})]})}),On=({className:e,children:t})=>x.jsx("div",{className:Ye("w-full mx-auto max-w-[1240px] px-4",e),children:t}),Gc=({title:e})=>x.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[x.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),x.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});function EM(){return x.jsxs("main",{className:"flex flex-col min-h-screen",children:[x.jsx(SM,{}),x.jsx("div",{className:"flex-auto",children:x.jsx(mk,{})}),x.jsx(_M,{})]})}const b0=(e,t,n)=>{if(e&&"reportValidity"in e){const s=ce(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},r_=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?b0(s.ref,n,e):s.refs&&s.refs.forEach(o=>b0(o,n,e))}},CM=(e,t)=>{t.shouldUseNativeValidation&&r_(e,t);const n={};for(const s in e){const o=ce(t.fields,s),a=Object.assign(e[s]||{},{ref:o&&o.ref});if(kM(t.names||Object.keys(e),s)){const u=Object.assign({},ce(n,s));pt(u,"root",a),pt(n,s,u)}else pt(n,s,a)}return n},kM=(e,t)=>e.some(n=>n.startsWith(t+"."));var TM=function(e,t){for(var n={};e.length;){var s=e[0],o=s.code,a=s.message,u=s.path.join(".");if(!n[u])if("unionErrors"in s){var c=s.unionErrors[0].errors[0];n[u]={message:c.message,type:c.code}}else n[u]={message:a,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(m){return m.errors.forEach(function(g){return e.push(g)})}),t){var f=n[u].types,h=f&&f[s.code];n[u]=Fb(u,t,n,o,h?[].concat(h,s.message):s.message)}e.shift()}return n},Zc=function(e,t,n){return n===void 0&&(n={}),function(s,o,a){try{return Promise.resolve(function(u,c){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(h){return a.shouldUseNativeValidation&&r_({},a),{errors:{},values:n.raw?s:h}})}catch(h){return c(h)}return f&&f.then?f.then(void 0,c):f}(0,function(u){if(function(c){return Array.isArray(c==null?void 0:c.errors)}(u))return{values:{},errors:CM(TM(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};function s_(e,t){return function(){return e.apply(t,arguments)}}const{toString:RM}=Object.prototype,{getPrototypeOf:wm}=Object,Kc=(e=>t=>{const n=RM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Cr=e=>(e=e.toLowerCase(),t=>Kc(t)===e),qc=e=>t=>typeof t===e,{isArray:Fo}=Array,nl=qc("undefined");function PM(e){return e!==null&&!nl(e)&&e.constructor!==null&&!nl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const i_=Cr("ArrayBuffer");function NM(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i_(e.buffer),t}const AM=qc("string"),Gn=qc("function"),o_=qc("number"),Yc=e=>e!==null&&typeof e=="object",jM=e=>e===!0||e===!1,sc=e=>{if(Kc(e)!=="object")return!1;const t=wm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},DM=Cr("Date"),LM=Cr("File"),MM=Cr("Blob"),OM=Cr("FileList"),FM=e=>Yc(e)&&Gn(e.pipe),IM=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Kc(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},VM=Cr("URLSearchParams"),[BM,zM,UM,$M]=["ReadableStream","Request","Response","Headers"].map(Cr),WM=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Fo(e))for(s=0,o=e.length;s0;)if(o=n[s],t===o.toLowerCase())return o;return null}const Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,l_=e=>!nl(e)&&e!==Ci;function Qh(){const{caseless:e}=l_(this)&&this||{},t={},n=(s,o)=>{const a=e&&a_(t,o)||o;sc(t[a])&&sc(s)?t[a]=Qh(t[a],s):sc(s)?t[a]=Qh({},s):Fo(s)?t[a]=s.slice():t[a]=s};for(let s=0,o=arguments.length;s(Pl(t,(o,a)=>{n&&Gn(o)?e[a]=s_(o,n):e[a]=o},{allOwnKeys:s}),e),GM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZM=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},KM=(e,t,n,s)=>{let o,a,u;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!s||s(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&wm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qM=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},YM=e=>{if(!e)return null;if(Fo(e))return e;let t=e.length;if(!o_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XM=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wm(Uint8Array)),QM=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},JM=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},eO=Cr("HTMLFormElement"),tO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),_0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nO=Cr("RegExp"),u_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Pl(n,(o,a)=>{let u;(u=t(o,a,e))!==!1&&(s[a]=u||o)}),Object.defineProperties(e,s)},rO=e=>{u_(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Gn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sO=(e,t)=>{const n={},s=o=>{o.forEach(a=>{n[a]=!0})};return Fo(e)?s(e):s(String(e).split(t)),n},iO=()=>{},oO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yh="abcdefghijklmnopqrstuvwxyz",E0="0123456789",c_={DIGIT:E0,ALPHA:yh,ALPHA_DIGIT:yh+yh.toUpperCase()+E0},aO=(e=16,t=c_.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function lO(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uO=e=>{const t=new Array(10),n=(s,o)=>{if(Yc(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const a=Fo(s)?[]:{};return Pl(s,(u,c)=>{const f=n(u,o+1);!nl(f)&&(a[c]=f)}),t[o]=void 0,a}}return s};return n(e,0)},cO=Cr("AsyncFunction"),dO=e=>e&&(Yc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),d_=((e,t)=>e?setImmediate:t?((n,s)=>(Ci.addEventListener("message",({source:o,data:a})=>{o===Ci&&a===n&&s.length&&s.shift()()},!1),o=>{s.push(o),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Ci.postMessage)),fO=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||d_,Z={isArray:Fo,isArrayBuffer:i_,isBuffer:PM,isFormData:IM,isArrayBufferView:NM,isString:AM,isNumber:o_,isBoolean:jM,isObject:Yc,isPlainObject:sc,isReadableStream:BM,isRequest:zM,isResponse:UM,isHeaders:$M,isUndefined:nl,isDate:DM,isFile:LM,isBlob:MM,isRegExp:nO,isFunction:Gn,isStream:FM,isURLSearchParams:VM,isTypedArray:XM,isFileList:OM,forEach:Pl,merge:Qh,extend:HM,trim:WM,stripBOM:GM,inherits:ZM,toFlatObject:KM,kindOf:Kc,kindOfTest:Cr,endsWith:qM,toArray:YM,forEachEntry:QM,matchAll:JM,isHTMLForm:eO,hasOwnProperty:_0,hasOwnProp:_0,reduceDescriptors:u_,freezeMethods:rO,toObjectSet:sO,toCamelCase:tO,noop:iO,toFiniteNumber:oO,findKey:a_,global:Ci,isContextDefined:l_,ALPHABET:c_,generateString:aO,isSpecCompliantForm:lO,toJSONObject:uO,isAsyncFn:cO,isThenable:dO,setImmediate:d_,asap:fO};function Qe(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(Qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const f_=Qe.prototype,h_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{h_[e]={value:e}});Object.defineProperties(Qe,h_);Object.defineProperty(f_,"isAxiosError",{value:!0});Qe.from=(e,t,n,s,o,a)=>{const u=Object.create(f_);return Z.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Qe.call(u,e.message,t,n,s,o),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const hO=null;function Jh(e){return Z.isPlainObject(e)||Z.isArray(e)}function p_(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function C0(e,t,n){return e?e.concat(t).map(function(o,a){return o=p_(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function pO(e){return Z.isArray(e)&&!e.some(Jh)}const mO=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function Xc(e,t,n){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!Z.isUndefined(C[S])});const s=n.metaTokens,o=n.visitor||m,a=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(Z.isDate(w))return w.toISOString();if(!f&&Z.isBlob(w))throw new Qe("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(w)||Z.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,S,C){let E=w;if(w&&!C&&typeof w=="object"){if(Z.endsWith(S,"{}"))S=s?S:S.slice(0,-2),w=JSON.stringify(w);else if(Z.isArray(w)&&pO(w)||(Z.isFileList(w)||Z.endsWith(S,"[]"))&&(E=Z.toArray(w)))return S=p_(S),E.forEach(function(N,I){!(Z.isUndefined(N)||N===null)&&t.append(u===!0?C0([S],I,a):u===null?S:S+"[]",h(N))}),!1}return Jh(w)?!0:(t.append(C0(C,S,a),h(w)),!1)}const g=[],v=Object.assign(mO,{defaultVisitor:m,convertValue:h,isVisitable:Jh});function b(w,S){if(!Z.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(w),Z.forEach(w,function(E,R){(!(Z.isUndefined(E)||E===null)&&o.call(t,E,Z.isString(R)?R.trim():R,S,v))===!0&&b(E,S?S.concat(R):[R])}),g.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function k0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Sm(e,t){this._pairs=[],e&&Xc(e,this,t)}const m_=Sm.prototype;m_.append=function(t,n){this._pairs.push([t,n])};m_.toString=function(t){const n=t?function(s){return t.call(this,s,k0)}:k0;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g_(e,t,n){if(!t)return e;const s=n&&n.encode||gO;Z.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Z.isURLSearchParams(t)?t.toString():new Sm(t,n).toString(s),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class T0{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(s){s!==null&&t(s)})}}const y_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yO=typeof URLSearchParams<"u"?URLSearchParams:Sm,vO=typeof FormData<"u"?FormData:null,xO=typeof Blob<"u"?Blob:null,wO={isBrowser:!0,classes:{URLSearchParams:yO,FormData:vO,Blob:xO},protocols:["http","https","file","blob","url","data"]},bm=typeof window<"u"&&typeof document<"u",ep=typeof navigator=="object"&&navigator||void 0,SO=bm&&(!ep||["ReactNative","NativeScript","NS"].indexOf(ep.product)<0),bO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_O=bm&&window.location.href||"http://localhost",EO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bm,hasStandardBrowserEnv:SO,hasStandardBrowserWebWorkerEnv:bO,navigator:ep,origin:_O},Symbol.toStringTag,{value:"Module"})),pn={...EO,...wO};function CO(e,t){return Xc(e,new pn.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,a){return pn.isNode&&Z.isBuffer(n)?(this.append(s,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function kO(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function TO(e){const t={},n=Object.keys(e);let s;const o=n.length;let a;for(s=0;s=n.length;return u=!u&&Z.isArray(o)?o.length:u,f?(Z.hasOwnProp(o,u)?o[u]=[o[u],s]:o[u]=s,!c):((!o[u]||!Z.isObject(o[u]))&&(o[u]=[]),t(n,s,o[u],a)&&Z.isArray(o[u])&&(o[u]=TO(o[u])),!c)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const n={};return Z.forEachEntry(e,(s,o)=>{t(kO(s),o,n,0)}),n}return null}function RO(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Nl={transitional:y_,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,a=Z.isObject(t);if(a&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(v_(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){if(s.indexOf("application/x-www-form-urlencoded")>-1)return CO(t,this.formSerializer).toString();if((c=Z.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xc(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),RO(t)):t}],transformResponse:[function(t){const n=this.transitional||Nl.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(s&&!this.responseType||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?Qe.from(c,Qe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pn.classes.FormData,Blob:pn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Nl.headers[e]={}});const PO=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NO=e=>{const t={};let n,s,o;return e&&e.split(` `).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),s=u.substring(o+1).trim(),!(!n||t[n]&&PO[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},R0=Symbol("internals");function Ra(e){return e&&String(e).trim().toLowerCase()}function ic(e){return e===!1||e==null?e:Z.isArray(e)?e.map(ic):String(e)}function AO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const jO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vh(e,t,n,s,o){if(Z.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!Z.isString(t)){if(Z.isString(s))return t.indexOf(s)!==-1;if(Z.isRegExp(s))return s.test(t)}}function DO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function LO(e,t){const n=Z.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,a,u){return this[s].call(this,t,o,a,u)},configurable:!0})})}class Mn{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function a(c,f,h){const m=Ra(f);if(!m)throw new Error("header name must be a non-empty string");const g=Z.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||f]=ic(c))}const u=(c,f)=>Z.forEach(c,(h,m)=>a(h,m,f));if(Z.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Z.isString(t)&&(t=t.trim())&&!jO(t))u(NO(t),n);else if(Z.isHeaders(t))for(const[c,f]of t.entries())a(f,c,s);else t!=null&&a(n,t,s);return this}get(t,n){if(t=Ra(t),t){const s=Z.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return AO(o);if(Z.isFunction(n))return n.call(this,o,s);if(Z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ra(t),t){const s=Z.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||vh(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function a(u){if(u=Ra(u),u){const c=Z.findKey(s,u);c&&(!n||vh(s,s[c],c,n))&&(delete s[c],o=!0)}}return Z.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const a=n[s];(!t||vh(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,s={};return Z.forEach(this,(o,a)=>{const u=Z.findKey(s,a);if(u){n[u]=ic(o),delete n[a];return}const c=t?DO(a):String(a).trim();c!==a&&delete n[a],n[c]=ic(o),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Z.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&Z.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[R0]=this[R0]={accessors:{}}).accessors,o=this.prototype;function a(u){const c=Ra(u);s[c]||(LO(o,u),s[c]=!0)}return Z.isArray(t)?t.forEach(a):a(t),this}}Mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Mn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});Z.freezeMethods(Mn);function xh(e,t){const n=this||Nl,s=t||n,o=Mn.from(s.headers);let a=s.data;return Z.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function x_(e){return!!(e&&e.__CANCEL__)}function Io(e,t,n){Qe.call(this,e??"canceled",Qe.ERR_CANCELED,t,n),this.name="CanceledError"}Z.inherits(Io,Qe,{__CANCEL__:!0});function w_(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Qe("Request failed with status code "+n.status,[Qe.ERR_BAD_REQUEST,Qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function MO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OO(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=s[a];u||(u=h),n[o]=f,s[o]=h;let g=a,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u{n=m,o=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=s?u(h,m):(o=h,a||(a=setTimeout(()=>{a=null,u(o)},s-g)))},()=>o&&u(o)]}const bc=(e,t,n=3)=>{let s=0;const o=OO(50,250);return FO(a=>{const u=a.loaded,c=a.lengthComputable?a.total:void 0,f=u-s,h=o(f),m=u<=c;s=u;const g={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:h||void 0,estimated:h&&c&&m?(c-u)/h:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},P0=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},N0=e=>(...t)=>Z.asap(()=>e(...t)),IO=pn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pn.origin),pn.navigator&&/(msie|trident)/i.test(pn.navigator.userAgent)):()=>!0,VO=pn.hasStandardBrowserEnv?{write(e,t,n,s,o,a){const u=[e+"="+encodeURIComponent(t)];Z.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Z.isString(s)&&u.push("path="+s),Z.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function S_(e,t){return e&&!BO(t)?zO(e,t):t}const A0=e=>e instanceof Mn?{...e}:e;function ji(e,t){t=t||{};const n={};function s(h,m,g,v){return Z.isPlainObject(h)&&Z.isPlainObject(m)?Z.merge.call({caseless:v},h,m):Z.isPlainObject(m)?Z.merge({},m):Z.isArray(m)?m.slice():m}function o(h,m,g,v){if(Z.isUndefined(m)){if(!Z.isUndefined(h))return s(void 0,h,g,v)}else return s(h,m,g,v)}function a(h,m){if(!Z.isUndefined(m))return s(void 0,m)}function u(h,m){if(Z.isUndefined(m)){if(!Z.isUndefined(h))return s(void 0,h)}else return s(void 0,m)}function c(h,m,g){if(g in t)return s(h,m);if(g in e)return s(void 0,h)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(h,m,g)=>o(A0(h),A0(m),g,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||o,v=g(e[m],t[m],m);Z.isUndefined(v)&&g!==c||(n[m]=v)}),n}const b_=e=>{const t=ji({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:a,headers:u,auth:c}=t;t.headers=u=Mn.from(u),t.url=g_(S_(t.baseURL,t.url),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(Z.isFormData(n)){if(pn.hasStandardBrowserEnv||pn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[h,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...m].join("; "))}}if(pn.hasStandardBrowserEnv&&(s&&Z.isFunction(s)&&(s=s(t)),s||s!==!1&&IO(t.url))){const h=o&&a&&VO.read(a);h&&u.set(o,h)}return t},UO=typeof XMLHttpRequest<"u",$O=UO&&function(e){return new Promise(function(n,s){const o=b_(e);let a=o.data;const u=Mn.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:h}=o,m,g,v,b,w;function S(){b&&b(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function E(){if(!C)return;const N=Mn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:N,config:e,request:C};w_(function(z){n(z),S()},function(z){s(z),S()},T),C=null}"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(E)},C.onabort=function(){C&&(s(new Qe("Request aborted",Qe.ECONNABORTED,e,C)),C=null)},C.onerror=function(){s(new Qe("Network Error",Qe.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||y_;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),s(new Qe(I,T.clarifyTimeoutError?Qe.ETIMEDOUT:Qe.ECONNABORTED,e,C)),C=null},a===void 0&&u.setContentType(null),"setRequestHeader"in C&&Z.forEach(u.toJSON(),function(I,T){C.setRequestHeader(T,I)}),Z.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),c&&c!=="json"&&(C.responseType=o.responseType),h&&([v,w]=bc(h,!0),C.addEventListener("progress",v)),f&&C.upload&&([g,b]=bc(f),C.upload.addEventListener("progress",g),C.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(m=N=>{C&&(s(!N||N.type?new Io(null,e,C):N),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const R=MO(o.url);if(R&&pn.protocols.indexOf(R)===-1){s(new Qe("Unsupported protocol "+R+":",Qe.ERR_BAD_REQUEST,e));return}C.send(a||null)})},WO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const a=function(h){if(!o){o=!0,c();const m=h instanceof Error?h:this.reason;s.abort(m instanceof Qe?m:new Io(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Qe(`timeout ${t} of ms exceeded`,Qe.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:f}=s;return f.unsubscribe=()=>Z.asap(c),f}},HO=function*(e,t){let n=e.byteLength;if(n{const o=GO(e,t);let a=0,u,c=f=>{u||(u=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await o.next();if(h){c(),f.close();return}let g=m.byteLength;if(n){let v=a+=g;n(v)}f.enqueue(new Uint8Array(m))}catch(h){throw c(h),h}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},Qc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",__=Qc&&typeof ReadableStream=="function",KO=Qc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),E_=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qO=__&&E_(()=>{let e=!1;const t=new Request(pn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),D0=64*1024,tp=__&&E_(()=>Z.isReadableStream(new Response("").body)),_c={stream:tp&&(e=>e.body)};Qc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_c[t]&&(_c[t]=Z.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new Qe(`Response type '${t}' is not supported`,Qe.ERR_NOT_SUPPORT,s)})})})(new Response);const YO=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(pn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await KO(e)).byteLength},XO=async(e,t)=>{const n=Z.toFiniteNumber(e.getContentLength());return n??YO(t)},QO=Qc&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:a,timeout:u,onDownloadProgress:c,onUploadProgress:f,responseType:h,headers:m,withCredentials:g="same-origin",fetchOptions:v}=b_(e);h=h?(h+"").toLowerCase():"text";let b=WO([o,a&&a.toAbortSignal()],u),w;const S=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(f&&qO&&n!=="get"&&n!=="head"&&(C=await XO(m,s))!==0){let T=new Request(t,{method:"POST",body:s,duplex:"half"}),F;if(Z.isFormData(s)&&(F=T.headers.get("content-type"))&&m.setContentType(F),T.body){const[z,O]=P0(C,bc(N0(f)));s=j0(T.body,D0,z,O)}}Z.isString(g)||(g=g?"include":"omit");const E="credentials"in Request.prototype;w=new Request(t,{...v,signal:b,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:E?g:void 0});let R=await fetch(w);const N=tp&&(h==="stream"||h==="response");if(tp&&(c||N&&S)){const T={};["status","statusText","headers"].forEach(q=>{T[q]=R[q]});const F=Z.toFiniteNumber(R.headers.get("content-length")),[z,O]=c&&P0(F,bc(N0(c),!0))||[];R=new Response(j0(R.body,D0,z,()=>{O&&O(),S&&S()}),T)}h=h||"text";let I=await _c[Z.findKey(_c,h)||"text"](R,e);return!N&&S&&S(),await new Promise((T,F)=>{w_(T,F,{data:I,headers:Mn.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:w})})}catch(E){throw S&&S(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new Qe("Network Error",Qe.ERR_NETWORK,e,w),{cause:E.cause||E}):Qe.from(E,E&&E.code,e,w)}}),np={http:hO,xhr:$O,fetch:QO};Z.forEach(np,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const L0=e=>`- ${e}`,JO=e=>Z.isFunction(e)||e===null||e===!1,C_={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let a=0;a`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since : `+a.map(L0).join(` diff --git a/dist/contacts/location.svg b/dist/contacts/home/location.svg similarity index 100% rename from dist/contacts/location.svg rename to dist/contacts/home/location.svg diff --git a/dist/contacts/mail.svg b/dist/contacts/home/mail.svg similarity index 100% rename from dist/contacts/mail.svg rename to dist/contacts/home/mail.svg diff --git a/dist/contacts/home/mobile.svg b/dist/contacts/home/mobile.svg new file mode 100644 index 0000000..ef43e4b --- /dev/null +++ b/dist/contacts/home/mobile.svg @@ -0,0 +1,3 @@ + + + diff --git a/dist/index.html b/dist/index.html index fac4a1d..ca18a18 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ Turkmen Textile - + diff --git a/public/contacts/location.svg b/public/contacts/home/location.svg similarity index 100% rename from public/contacts/location.svg rename to public/contacts/home/location.svg diff --git a/public/contacts/mail.svg b/public/contacts/home/mail.svg similarity index 100% rename from public/contacts/mail.svg rename to public/contacts/home/mail.svg diff --git a/public/contacts/home/mobile.svg b/public/contacts/home/mobile.svg new file mode 100644 index 0000000..ef43e4b --- /dev/null +++ b/public/contacts/home/mobile.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/shared/home/home-time.tsx b/src/components/shared/home/home-time.tsx index 0bb048d..2e7b622 100644 --- a/src/components/shared/home/home-time.tsx +++ b/src/components/shared/home/home-time.tsx @@ -28,17 +28,17 @@ const contacts = [ { title: "contact@turkmenexpo.com", subtitle: "Адрес электронной почты", - img: "/contacts/mail.svg", + img: "/contacts/home/mail.svg", }, { title: "здание ТПП Туркменистана", subtitle: "Адрес выставки", - img: "/contacts/location.svg", + img: "/contacts/home/location.svg", }, { title: "+99371871812; 99363719588", subtitle: "Контактный номер", - img: "/contacts/mobile.svg", + img: "/contacts/home/mobile.svg", }, ];