var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-eet&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(ne)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ne,re=function(){ae.postMessage(null)}}else re=function(){_(ne,0)};function oe(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function te(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ne(e,t){return te(e.type,t,e.props)}function re(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ce(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ce(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+oe(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ae,`$&/`)+`/`),ce(o,r,i,``,function(e){return e})):o!=null&&(re(o)&&(o=ne(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=m()})),g=s((e=>{var t=h();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=p(),n=h(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function D(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(D(ve,t),D(_e,e),D(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),D(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&D(ye,e);var t=ge.current,n=Hd(t,e.type);t!==n&&(D(_e,e),D(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),Qf._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,O=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function k(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var e=Qe;return Qe<<=1,!(Qe&62914560)&&(Qe=4194304),e}function it(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function at(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ot(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),_n=!1;if(gn)try{var vn={};Object.defineProperty(vn,"passive",{get:function(){_n=!0}}),window.addEventListener(`test`,vn,vn),window.removeEventListener(`test`,vn,vn)}catch{_n=!1}var yn=null,bn=null,xn=null;function Sn(){if(xn)return xn;var e,t=bn,n=t.length,r,i=`value`in yn?yn.value:yn.textContent,a=i.length;for(e=0;e=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=Sn(),xn=bn=yn=null,or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=P(n)}}function Ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ar(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Nr=gn&&`documentMode`in document&&11>=document.documentMode,Pr=null,Fr=null,Ir=null,Lr=!1;function Rr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lr||Pr==null||Pr!==Gt(r)||(r=Pr,`selectionStart`in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Or(Ir,r)||(Ir=r,r=Dd(Fr,`onSelect`),0>=o,i-=o,Ai=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),I&&Mi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),I&&Mi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return I&&Mi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),I&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===re&&L(l)===r.type){n(e,r.sibling),c=a(r,o.props),La(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),La(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case re:return o=L(o),b(e,r,o,c)}if(ue(o))return h(e,r,o,c);if(se(o)){if(l=se(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ia(o),c);if(o.$$typeof===C)return b(e,r,aa(e,o),c);Ra(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return Pa=null,i}catch(t){if(t===Ta||t===Da)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ka(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return ai(e,r,t,n),li(e)}function qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}function Ja(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ya=!1;function Xa(){if(Ya){var e=ga;if(e!==null)throw e}}function Za(e,t,n,r){Ya=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(q&p)===p:(r&p)===p){p!==0&&p===ha&&(Ya=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ha=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function $a(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=T.T,s={};T.T=s,Is(e,!1,t,n);try{var c=i(),l=T.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ya(c,r),mu(e)):Fs(e,t,r,mu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{E.p=a,o!==null&&s.types!==null&&(o.types=s.types),T.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,de,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},mu())}function ks(){return ia(Qf)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ga(n);var r=Ka(t,e,n);r!==null&&(gu(r,t,n),qa(r,t,n)),t={cache:da()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=oi(e,t,n,r),n!==null&&(gu(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,mu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Dr(s,o))return ai(e,t,i,0),G===null&&ii(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return gu(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=oi(e,n,r,2),t!==null&&gu(t,e,2)}function Ls(e){var t=e.alternate;return e===z||t!==null&&t===z}function Rs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ct(e,n)}}var Bs={readContext:ia,use:Fo,useCallback:V,useContext:V,useEffect:V,useImperativeHandle:V,useLayoutEffect:V,useInsertionEffect:V,useMemo:V,useReducer:V,useRef:V,useState:V,useDebugValue:V,useDeferredValue:V,useTransition:V,useSyncExternalStore:V,useId:V,useHostTransitionStatus:V,useFormState:V,useActionState:V,useOptimistic:V,useMemoCache:V,useCacheRefresh:V};Bs.useEffectEvent=V;var Vs={readContext:ia,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ia,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(vo){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(vo){k(!0);try{n(t)}finally{k(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,z,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=jo();if(I){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),G===null)throw Error(i(349));q&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Wo.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=G.identifierPrefix;if(I){var n=ji,r=Ai;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return H(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ve.current,Wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Vi(t,!0)}else e=Bd(e).createTextNode(r),e[ht]=t,t.stateNode=e}return H(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),e=!1}else n=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(R(t),t):(R(t),null);if(t.flags&128)throw Error(i(558))}return H(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),a=!1}else a=Ki(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(R(t),t):(R(t),null)}return R(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rc(t,t.updateQueue),H(t),null);case 4:return xe(),e===null&&Cd(t.stateNode.containerInfo),H(t),null;case 10:return Qi(t.type),H(t),null;case 19:if(he(fo),r=t.memoizedState,r===null)return H(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)zc(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,zc(r,!1),e=o.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return D(fo,fo.current&1|2),I&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&O()>nu&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304)}else{if(!a)if(e=po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!I)return H(t),null}else 2*O()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,zc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(H(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=O(),e.sibling=null,n=fo.current,D(fo,a?n&1|2:n&1),I&&Mi(t,r.treeForkCount),e);case 22:case 23:return R(t),io(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(H(t),t.subtreeFlags&6&&(t.flags|=8192)):H(t),n=t.updateQueue,n!==null&&Rc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(ua),H(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(ua),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(R(t),t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(R(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(fo),null;case 4:return xe(),null;case 10:return Qi(t.type),null;case 22:case 23:return R(t),io(),e!==null&&he(xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qi(ua),null;case 25:return null;default:return null}}function Hc(e,t){switch(Fi(t),t.tag){case 3:Qi(ua),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&R(t);break;case 13:R(t);break;case 19:he(fo);break;case 10:Qi(t.type);break;case 22:case 23:R(t),io(),e!==null&&he(xa);break;case 24:Qi(ua)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$a(t,n)}catch(t){X(e,e.return,t)}}}function Kc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[gt]=t}catch(t){X(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ln));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ht]=e,t[gt]=n}catch(t){X(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,zd=sp,e=jr(e),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for($={focusedElem:e,selectionRange:n},sp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Fd(o,r,n),o[ht]=e,Ot(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=kr(s,h),v=kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,T.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,W&6)throw Error(i(331));var c=W;if(W|=4,Il(o.current),Ol(o,o.current,s,n),W=c,ad(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{E.p=a,T.T=r,Hu(e,t)}}function Gu(e,t,n){t=Si(n,t),t=ec(e.stateNode,t,2),e=Ka(e,t,2),e!==null&&(at(e,2),id(e))}function X(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=Si(n,e),n=tc(2),r=Ka(t,n,2),r!==null&&(nc(n,r,t,e),at(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>O()-eu?!(W&2)&&Cu(e,0):Jl|=n,Xl===q&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=rt()),e=si(e,t),e!==null&&(at(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Me(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=q,a=et(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Gd()&&(e=rd);for(var t=O(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=qt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+qt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+qt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+qt(n.imageSizes)+`"]`)):i+=`[href="`+qt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Fd(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+qt(r)+`"][href="`+qt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Dt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Ot(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Dt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Ot(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=ve.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+qt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),Ot(t),e.head.appendChild(t))}function Pf(e){return`[src="`+qt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+qt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Fd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,Ot(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()}))();function b(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,a,o=[],s=``,c=e.split(`/`);for(c[0]||c.shift();i=c.shift();)n=i[0],n===`*`?(o.push(n),s+=i[1]===`?`?`(?:/(.*))?`:`/(.*)`):n===`:`?(r=i.indexOf(`?`,1),a=i.indexOf(`.`,1),o.push(i.substring(1,~r?r:~a?a:i.length)),s+=~r&&!~a?`(?:/([^/]+?))?`:`/([^/]+?)`,~a&&(s+=(~r?`?`:``)+`\\`+i.substring(a))):s+=`/`+i;return{keys:o,pattern:RegExp(`^`+s+(t?`(?=$|/)`:`/?$`),`i`)}}var x=s((e=>{var t=h();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),S=s(((e,t)=>{t.exports=x()})),C=u(h(),1),w=S(),ee=C.useInsertionEffect,te=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?C.useLayoutEffect:C.useEffect,ne=ee||te,re=e=>{let t=C.useRef([e,(...e)=>t[0](...e)]).current;return ne(()=>{t[0]=e}),t[1]},ie=`popstate`,ae=`pushState`,oe=`replaceState`,se=[ie,ae,oe,`hashchange`],ce=e=>{for(let t of se)addEventListener(t,e);return()=>{for(let t of se)removeEventListener(t,e)}},le=(e,t)=>(0,w.useSyncExternalStore)(ce,e,t),ue=()=>location.search,T=({ssrSearch:e}={})=>le(ue,e==null?ue:()=>e),E=()=>location.pathname,de=({ssrPath:e}={})=>le(E,e==null?E:()=>e),fe=(e,{replace:t=!1,state:n=null}={})=>history[t?oe:ae](n,``,e),pe=(e={})=>[de(e),fe],me=Symbol.for(`wouter_v3`);if(typeof history<`u`&&window[me]===void 0){for(let e of[ae,oe]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,me,{value:!0})}var he=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?`~`+t:t.slice(e.length)||`/`,D=(e=``)=>e===`/`?``:e,ge=(e,t)=>e[0]===`~`?e.slice(1):D(t)+e,_e=(e=``,t)=>he(ve(D(e)),ve(t)),ve=e=>{try{return decodeURI(e)}catch{return e}},ye={hook:pe,searchHook:T,parser:b,base:``,ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},be=(0,C.createContext)(ye),xe=()=>(0,C.useContext)(be),Se={},Ce=(0,C.createContext)(Se),we=()=>(0,C.useContext)(Ce),Te=e=>{let[t,n]=e.hook(e);return[_e(e.base,t),re((t,r)=>e.aroundNav(n,ge(t,e.base),r))]},Ee=()=>Te(xe()),De=(e,t,n,r)=>{let{pattern:i,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||`*`,r),o=i.exec(n)||[],[s,...c]=o;return s===void 0?[!1,null]:[!0,(()=>{let e=a===!1?o.groups:Object.fromEntries(a.map((e,t)=>[e,c[t]])),t={...c};return e&&Object.assign(t,e),t})(),...r?[s]:[]]},Oe=({children:e,...t})=>{let n=xe(),r=t.hook?ye:n,i=r,[a,o=t.ssrSearch??``]=t.ssrPath?.split(`?`)??[];a&&(t.ssrSearch=o,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let s=(0,C.useRef)({}),c=s.current,l=c;for(let e in r){let n=e===`base`?r[e]+(t[e]??``):t[e]??r[e];c===l&&n!==l[e]&&(s.current=l={...l}),l[e]=n,(n!==r[e]||n!==i[e])&&(i=l)}return(0,C.createElement)(be.Provider,{value:i,children:e})},ke=({children:e,component:t},n)=>t?(0,C.createElement)(t,{params:n}):typeof e==`function`?e(n):e,Ae=e=>{let t=(0,C.useRef)(Se),n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([e,t])=>t!==n[e])?e:n},je=({path:e,nest:t,match:n,...r})=>{let i=xe(),[a]=Te(i),[o,s,c]=n??De(i.parser,e,a,t),l=Ae({...we(),...s});if(!o)return null;let u=c?(0,C.createElement)(Oe,{base:c},ke(r,l)):ke(r,l);return(0,C.createElement)(Ce.Provider,{value:l,children:u})},Me=(0,C.forwardRef)((e,t)=>{let n=xe(),[r,i]=Te(n),{to:a=``,href:o=a,onClick:s,asChild:c,children:l,className:u,replace:d,state:f,transition:p,...m}=e,h=re(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0||(s?.(t),t.defaultPrevented||(t.preventDefault(),i(o,e)))}),g=n.hrefs(o[0]===`~`?o.slice(1):n.base+o,n);return c&&(0,C.isValidElement)(l)?(0,C.cloneElement)(l,{onClick:h,href:g}):(0,C.createElement)(`a`,{...m,onClick:h,href:g,className:u?.call?u(r===o):u,children:l,ref:t})}),Ne=e=>Array.isArray(e)?e.flatMap(e=>Ne(e&&e.type===C.Fragment?e.props.children:e)):[e],Pe=({children:e,location:t})=>{let n=xe(),[r]=Te(n);for(let i of Ne(e)){let e=0;if((0,C.isValidElement)(i)&&(e=De(n.parser,i.props.path,t||r,i.props.nest))[0])return(0,C.cloneElement)(i,{match:e})}return null},Fe=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),O=s(((e,t)=>{t.exports=Fe()}))();function Ie(){return(0,O.jsx)(`div`,{className:`pt-20 min-h-screen flex items-center justify-center px-6`,children:(0,O.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,O.jsx)(`p`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-4 block`,children:`Error 404`}),(0,O.jsx)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-4`,children:`Page Not Found`}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-base mb-8 leading-relaxed`,children:`The page you're looking for doesn't exist. Perhaps you'd like to explore our companions or services instead?`}),(0,O.jsx)(Me,{href:`/`,children:(0,O.jsx)(`span`,{className:`inline-block px-10 py-4 bg-primary text-background text-xs tracking-[0.3em] uppercase hover:bg-primary/90 transition-all duration-300 cursor-pointer`,children:`Return Home`})})]})})}var Le=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Re=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ze=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Be=e=>{let t=ze(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ve={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},He=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ue=(0,C.createContext)({}),We=()=>(0,C.useContext)(Ue),Ge=(0,C.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=We()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,C.createElement)(`svg`,{ref:c,...Ve,width:t??l??Ve.width,height:t??l??Ve.height,stroke:e??f,strokeWidth:m,className:Le(`lucide`,p,i),...!a&&!He(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),k=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(Ge,{ref:i,iconNode:t,className:Le(`lucide-${Re(Be(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Be(e),n},Ke=k(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),qe=k(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Je=k(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),Ye=k(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Xe=k(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ze=k(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Qe=k(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),$e=k(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),et=k(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),tt=k(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),nt=k(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),rt=k(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),it=k(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),at=k(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),ot=k(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),st=k(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),ct=k(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),lt=k(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),ut=k(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),dt=k(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),ft=k(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),pt=k(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),mt=k(`user-check`,[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),ht=k(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),gt=k(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),_t=k(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),vt=(0,C.createContext)({});function yt(e){let t=(0,C.useRef)(null);return t.current===null&&(t.current=e()),t.current}var bt=typeof window<`u`?C.useLayoutEffect:C.useEffect,xt=(0,C.createContext)(null);function St(e,t){e.indexOf(t)===-1&&e.push(t)}function Ct(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var wt=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Dt=e=>typeof e==`object`&&!!e,Ot=e=>/^0[^.\s]+$/u.test(e);function kt(e){let t;return()=>(t===void 0&&(t=e()),t)}var At=e=>e,jt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Mt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Nt=class{constructor(){this.subscriptions=[]}add(e){return St(this.subscriptions,e),()=>Ct(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,Ft=e=>e/1e3,It=(e,t)=>t?1e3/t*e:0,Lt=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rt=1e-7,zt=12;function Bt(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Lt(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Rt&&++sBt(t,0,1,e,n);return e=>e===0||e===1?e:Lt(i(e),t,r)}var Ht=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ut=e=>t=>1-e(1-t),Wt=Vt(.33,1.53,.69,.99),Gt=Ut(Wt),Kt=Ht(Gt),qt=e=>e>=1?1:(e*=2)<1?.5*Gt(e):.5*(2-2**(-10*(e-1))),Jt=e=>1-Math.sin(Math.acos(e)),Yt=Ut(Jt),Xt=Ht(Jt),Zt=Vt(.42,0,1,1),Qt=Vt(0,0,.58,1),$t=Vt(.42,0,.58,1),en=e=>Array.isArray(e)&&typeof e[0]!=`number`,tn=e=>Array.isArray(e)&&typeof e[0]==`number`,nn={linear:At,easeIn:Zt,easeInOut:$t,easeOut:Qt,circIn:Jt,circInOut:Xt,circOut:Yt,backIn:Gt,backInOut:Kt,backOut:Wt,anticipate:qt},rn=e=>typeof e==`string`,an=e=>{if(tn(e)){e.length;let[t,n,r,i]=e;return Vt(t,n,r,i)}else if(rn(e))return nn[e],`${e}`,nn[e];return e},on=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],sn={value:null,addProjectionMetrics:null};function cn(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&sn.value&&sn.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ln=40;function un(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=on.reduce((e,n)=>(e[n]=cn(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Tt.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ln),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:on.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(pn===void 0&&hn.set(j.isProcessing||Tt.useManualTiming?j.timestamp:performance.now()),pn),set:e=>{pn=e,queueMicrotask(mn)}},gn={layout:0,mainThread:0,waapi:0},_n=e=>t=>typeof t==`string`&&t.startsWith(e),vn=_n(`--`),yn=_n(`var(--`),bn=e=>yn(e)?xn.test(e.split(`/*`)[0].trim()):!1,xn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sn(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Cn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},wn={...Cn,transform:e=>wt(0,1,e)},Tn={...Cn,default:1},En=e=>Math.round(e*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function On(e){return e==null}var kn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,An=(e,t)=>n=>!!(typeof n==`string`&&kn.test(n)&&n.startsWith(e)||t&&!On(n)&&Object.prototype.hasOwnProperty.call(n,t)),jn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Dn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Mn=e=>wt(0,255,e),Nn={...Cn,transform:e=>Math.round(Mn(e))},Pn={test:An(`rgb`,`red`),parse:jn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Nn.transform(e)+`, `+Nn.transform(t)+`, `+Nn.transform(n)+`, `+En(wn.transform(r))+`)`};function Fn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var In={test:An(`#`),parse:Fn,transform:Pn.transform},Ln=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rn=Ln(`deg`),zn=Ln(`%`),M=Ln(`px`),Bn=Ln(`vh`),Vn=Ln(`vw`),Hn={...zn,parse:e=>zn.parse(e)/100,transform:e=>zn.transform(e*100)},Un={test:An(`hsl`,`hue`),parse:jn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+zn.transform(En(t))+`, `+zn.transform(En(n))+`, `+En(wn.transform(r))+`)`},Wn={test:e=>Pn.test(e)||In.test(e)||Un.test(e),parse:e=>Pn.test(e)?Pn.parse(e):Un.test(e)?Un.parse(e):In.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Pn.transform(e):Un.transform(e),getAnimatableNone:e=>{let t=Wn.parse(e);return t.alpha=0,Wn.transform(t)}},Gn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kn(e){return isNaN(e)&&typeof e==`string`&&(e.match(Dn)?.length||0)+(e.match(Gn)?.length||0)>0}var qn=`number`,Jn=`color`,Yn=`var`,Xn=`var(`,Zn="${}",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 $n(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Qn,e=>(Wn.test(e)?(r.color.push(a),i.push(Jn),n.push(Wn.parse(e))):e.startsWith(Xn)?(r.var.push(a),i.push(Yn),n.push(e)):(r.number.push(a),i.push(qn),n.push(parseFloat(e))),++a,Zn)).split(Zn),indexes:r,types:i}}function er(e){return $n(e).values}function tr({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:Wn.test(e)?Wn.getAnimatableNone(e):e,ir=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:rr(e);function ar(e){let t=$n(e);return tr(t)(t.values.map((e,n)=>ir(e,t.split[n])))}var or={test:Kn,parse:er,createTransformer:nr,getAnimatableNone:ar};function sr(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=sr(s,r,e+1/3),a=sr(s,r,e),o=sr(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function lr(e,t){return n=>n>0?t:e}var N=(e,t,n)=>e+(t-e)*n,ur=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dr=[In,Pn,Un],fr=e=>dr.find(t=>t.test(e));function pr(e){let t=fr(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Un&&(n=cr(n)),n}var mr=(e,t)=>{let n=pr(e),r=pr(t);if(!n||!r)return lr(e,t);let i={...n};return e=>(i.red=ur(n.red,r.red,e),i.green=ur(n.green,r.green,e),i.blue=ur(n.blue,r.blue,e),i.alpha=N(n.alpha,r.alpha,e),Pn.transform(i))},hr=new Set([`none`,`hidden`]);function gr(e,t){return hr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _r(e,t){return n=>N(e,t,n)}function vr(e){return typeof e==`number`?_r:typeof e==`string`?bn(e)?lr:Wn.test(e)?mr:Sr:Array.isArray(e)?yr:typeof e==`object`?Wn.test(e)?mr:br:lr}function yr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>vr(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function xr(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=or.createTransformer(t),r=$n(e),i=$n(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?hr.has(e)&&!i.values.length||hr.has(t)&&!r.values.length?gr(e,t):jt(yr(xr(r,i),i.values),n):(`${e}${t}`,lr(e,t))};function Cr(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?N(e,t,n):vr(e)(e,t)}var wr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>dn(t),now:()=>j.isProcessing?j.timestamp:hn.now()}},Tr=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function Or(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Dr(r),Er);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Ft(i)}}var P={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};function kr(e,t){return e*Math.sqrt(1-t*t)}var Ar=12;function jr(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=kr(t,o),c=Math.exp(-i);return Mr-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=kr(t**2,o);return(-i(t)+Mr>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=jr(i,a,s);if(e=Pt(e),isNaN(c))return{stiffness:P.stiffness,damping:P.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Pr=[`duration`,`bounce`],Fr=[`stiffness`,`damping`,`mass`];function Ir(e,t){return t.some(t=>e[t]!==void 0)}function Lr(e){let t={velocity:P.velocity,stiffness:P.stiffness,damping:P.damping,mass:P.mass,isResolvedFromDuration:!1,...e};if(!Ir(e,Fr)&&Ir(e,Pr))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:P.mass,stiffness:i,damping:a}}else{let n=Nr({...e,velocity:0});t={...t,...n,mass:P.mass},t.isResolvedFromDuration=!0}return t}function Rr(e=P.visualDuration,t=P.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Lr({...n,velocity:-Ft(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Ft(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?P.restSpeed.granular:P.restSpeed.default,i||=v?P.restDelta.granular:P.restDelta.default;let y,b,x,S,C,w;if(h<1)x=kr(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>Pt(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Pt(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Pt(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Dr(ee),Er),t=Tr(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}Rr.applyToOptions=e=>{let t=Or(e,100,Rr);return e.ease=t.ease,e.duration=Pt(t.duration),e.type=`keyframes`,e};var zr=5;function Br(e,t,n){let r=Math.max(t-zr,0);return It(n-e(r),t-r)}function Vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Rr({keyframes:[f.value,m(f.value)],velocity:Br(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Hr(e,t,n){let r=[],i=n||Tt.mix||Cr,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Hr(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(wt(e[0],e[a-1],t)):l}function Wr(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Mt(0,t,r);e.push(N(n,1,i))}}function Gr(e){let t=[0];return Wr(t,e.length-1),t}function Kr(e,t){return e.map(e=>e*t)}function qr(e,t){return e.map(()=>t||$t).splice(0,e.length-1)}function Jr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=en(r)?r.map(an):an(r),a={done:!1,value:t[0]},o=Ur(Kr(n&&n.length===t.length?n:Gr(t),e),t,{ease:Array.isArray(i)?i:qr(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yr=e=>e!==null;function Xr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Yr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Zr={decay:Vr,inertia:Vr,tween:Jr,keyframes:Jr,spring:Rr};function Qr(e){typeof e.type==`string`&&(e.type=Zr[e.type])}var $r=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},ei=e=>e/100,ti=class extends $r{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==hn.now()&&this.tick(hn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},gn.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qr(e);let{type:t=Jr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jr;s!==Jr&&typeof o[0]!=`number`&&(this.mixKeyframes=jt(ei,Cr(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Dr(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=wt(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Vr&&(b.value=Xr(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Ft(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ft(e)}get time(){return Ft(this.currentTime)}set time(e){e=Pt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Br(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(hn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ft(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=wr,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(hn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,gn.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ni(e){for(let t=1;te*180/Math.PI,ii=e=>oi(ri(Math.atan2(e[1],e[0]))),ai={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ii,rotateZ:ii,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},oi=e=>(e%=360,e<0&&(e+=360),e),si=ii,ci=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),li=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ui={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ci,scaleY:li,scale:e=>(ci(e)+li(e))/2,rotateX:e=>oi(ri(Math.atan2(e[6],e[5]))),rotateY:e=>oi(ri(Math.atan2(-e[2],e[0]))),rotateZ:si,rotate:si,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function di(e){return+!!e.includes(`scale`)}function fi(e,t){if(!e||e===`none`)return di(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=ui,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ai,i=t}if(!i)return di(t);let a=r[t],o=i[1].split(`,`).map(mi);return typeof a==`function`?a(o):o[a]}var pi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return fi(n,t)};function mi(e){return parseFloat(e.trim())}var hi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gi=new Set([...hi,`pathRotation`]),_i=e=>e===Cn||e===M,vi=new Set([`x`,`y`,`z`]),yi=hi.filter(e=>!vi.has(e));function bi(e){let t=[];return yi.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var xi={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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:(e,{transform:t})=>fi(t,`x`),y:(e,{transform:t})=>fi(t,`y`)};xi.translateX=xi.x,xi.translateY=xi.y;var Si=new Set,Ci=!1,wi=!1,Ti=!1;function Ei(){if(wi){let e=Array.from(Si).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=bi(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}wi=!1,Ci=!1,Si.forEach(e=>e.complete(Ti)),Si.clear()}function Di(){Si.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wi=!0)})}function Oi(){Ti=!0,Di(),Ei(),Ti=!1}var ki=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Si.add(this),Ci||(Ci=!0,A.read(Di),A.resolveKeyframes(Ei))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}ni(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Si.delete(this)}cancel(){this.state===`scheduled`&&(Si.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ai=e=>e.startsWith(`--`);function ji(e,t,n){Ai(t)?e.style.setProperty(t,n):e.style[t]=n}var Mi={};function Ni(e,t){let n=kt(e);return()=>Mi[t]??n()}var Pi=Ni(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Fi=Ni(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ii=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Li={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function F(e,t){if(e)return typeof e==`function`?Fi()?Tr(e,t):`ease-out`:tn(e)?Ii(e):Array.isArray(e)?e.map(e=>F(e,t)||Li.easeOut):Li[e]}function I(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=F(s,i);Array.isArray(d)&&(u.easing=d),sn.value&&gn.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return sn.value&&p.finished.finally(()=>{gn.waapi--}),p}function Ri(e){return typeof e==`function`&&`applyToOptions`in e}function zi({type:e,...t}){return Ri(e)&&Fi()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Bi=class extends $r{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=zi(e);this.animation=I(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Xr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ji(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Ft(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ft(e)}get time(){return Ft(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Pt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Pi()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),At):r(this)}},Vi={anticipate:qt,backInOut:Kt,circInOut:Xt};function Hi(e){return e in Vi}function Ui(e){typeof e.ease==`string`&&Hi(e.ease)&&(e.ease=Vi[e.ease])}var Wi=10,Gi=class extends Bi{constructor(e){Ui(e),Qr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ti({...a,autoplay:!1}),s=Math.max(Wi,hn.now()-this.startTime),c=wt(0,Wi,s-Wi),l=o.sample(s).value,{name:u}=this.options;i&&u&&ji(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ki=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(or.test(e)||e===`0`)&&!e.startsWith(`url(`));function qi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function ta(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return ea()&&n&&(Xi.has(n)||$i.has(n)&&Qi(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var na=40,ra=class extends $r{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=hn.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||ki;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=hn.now();let u=!0;Ji(e,i,a,o)||(u=!1,(Tt.instantAnimations||!s)&&l?.(Xr(e,n,t)),e[0]=e[e.length-1],Yi(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>na?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&ta(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Gi({...d,element:p})}catch{m=new ti(d)}else m=new ti(d);m.finished.then(()=>{this.notifyFinished()}).catch(At),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Oi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function ia(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var aa=30,oa=e=>!isNaN(parseFloat(e)),sa={current:void 0},ca=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=hn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=hn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=oa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Nt);let n=this.events[e].add(t);return e===`change`?()=>{n(),A.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return sa.current&&sa.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=hn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>aa)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,aa);return It(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function la(e,t){return new ca(e,t)}function ua(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function da(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ua(n,e)}var fa={type:`spring`,stiffness:500,damping:25,restSpeed:10},pa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ma={type:`keyframes`,duration:.8},ha={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ga=(e,{keyframes:t})=>t.length>2?ma:gi.has(e)?e.startsWith(`scale`)?pa(t[1]):fa:ha,_a=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function va(e){for(let t in e)if(!_a.has(t))return!0;return!1}var ya=(e,t,n,r={},i,a)=>o=>{let s=da(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Pt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};va(s)||Object.assign(u,ga(e,u)),u.duration&&=Pt(u.duration),u.repeatDelay&&=Pt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Yi(u),u.delay===0&&(d=!0)),(Tt.instantAnimations||Tt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Yi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Xr(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ti(u):new ra(u)},ba=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xa(e){let t=ba.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Sa(e,t,n=1){`${e}`;let[r,i]=xa(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Et(e)?parseFloat(e):e}return bn(i)?Sa(i,t,n+1):i}function Ca(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function wa(e,t,n,r){if(typeof t==`function`){let[i,a]=Ca(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ca(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Ta(e,t,n){let r=e.getProps();return wa(r,t,n===void 0?r.custom:n,e)}var Ea=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hi]),Da=e=>Array.isArray(e);function Oa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,la(n))}function ka(e){return Da(e)?e[e.length-1]||0:e}function Aa(e,t){let{transitionEnd:n={},transition:r={},...i}=Ta(e,t)||{};i={...i,...n};for(let t in i)Oa(e,t,ka(i[t]))}var L=e=>!!(e&&e.getVelocity);function ja(e){return!!(L(e)&&e.add)}function Ma(e,t){let n=e.getValue(`willChange`);if(ja(n))return n.add(t);if(!n&&Tt.WillChange){let n=new Tt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Na(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Pa=`data-`+Na(`framerAppearId`);function Fa(e){return e.props[Pa]}function Ia({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function La(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ua(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Ia(f,t))continue;let o={delay:n,...da(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Fa(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}Ma(e,t);let m=l??e.shouldReduceMotion;r.start(ya(t,r,i,m&&Ea.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&Aa(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ra(e,t,n={}){let r=Ta(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(La(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return za(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function za(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Ra(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ia(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Ba(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Ra(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Ra(e,t,n);else{let i=typeof t==`function`?Ta(e,t,n.custom):t;r=Promise.all(La(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Va={test:e=>e===`auto`,parse:e=>e},Ha=e=>t=>t.test(e),Ua=[Cn,M,zn,Rn,Vn,Bn,Va],Wa=e=>Ua.find(Ha(e));function Ga(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Ot(e)}var Ka=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function qa(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Dn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ka.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ja=/\b([a-z-]*)\(.*?\)/gu,Ya={...or,getAnimatableNone:e=>{let t=e.match(Ja);return t?t.map(qa).join(` `):e}},Xa={...or,getAnimatableNone:e=>{let t=or.parse(e);return or.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Za={...Cn,transform:Math.round},Qa={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,inset:M,insetBlock:M,insetBlockStart:M,insetBlockEnd:M,insetInline:M,insetInlineStart:M,insetInlineEnd:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,paddingBlock:M,paddingBlockStart:M,paddingBlockEnd:M,paddingInline:M,paddingInlineStart:M,paddingInlineEnd:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,marginBlock:M,marginBlockStart:M,marginBlockEnd:M,marginInline:M,marginInlineStart:M,marginInlineEnd:M,fontSize:M,backgroundPositionX:M,backgroundPositionY:M,rotate:Rn,pathRotation:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:Tn,scaleX:Tn,scaleY:Tn,scaleZ:Tn,skew:Rn,skewX:Rn,skewY:Rn,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:wn,originX:Hn,originY:Hn,originZ:M,zIndex:Za,fillOpacity:wn,strokeOpacity:wn,numOctaves:Za},$a={...Qa,color:Wn,backgroundColor:Wn,outlineColor:Wn,fill:Wn,stroke:Wn,borderColor:Wn,borderTopColor:Wn,borderRightColor:Wn,borderBottomColor:Wn,borderLeftColor:Wn,filter:Ya,WebkitFilter:Ya,mask:Xa,WebkitMask:Xa},eo=e=>$a[e],to=new Set([Ya,Xa]);function no(e,t){let n=eo(e);return to.has(n)||(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ro=new Set([`auto`,`none`,`0`]);function io(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function oo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var so=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function co(e){return Dt(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:lo,cancel:uo}=un(queueMicrotask,!1),R={x:!1,y:!1};function fo(){return R.x||R.y}function po(e){return e===`x`||e===`y`?R[e]?null:(R[e]=!0,()=>{R[e]=!1}):R.x||R.y?null:(R.x=R.y=!0,()=>{R.x=R.y=!1})}function mo(e,t){let n=oo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function z(e){return!(e.pointerType===`touch`||fo())}function B(e,t,n={}){let[r,i,a]=mo(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!z(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ho=(e,t)=>t?e===t?!0:ho(e,t.parentElement):!1,go=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,_o=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function vo(e){return _o.has(e.tagName)||e.isContentEditable===!0}var yo=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function bo(e){return yo.has(e.tagName)||e.isContentEditable===!0}var xo=new WeakSet;function So(e){return t=>{t.key===`Enter`&&e(t)}}function V(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Co=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=So(()=>{if(xo.has(n))return;V(n,`down`);let e=So(()=>{V(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>V(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function wo(e){return go(e)&&!fo()}var To=new WeakSet;function Eo(e,t,n={}){let[r,i,a]=mo(e,n),o=e=>{let r=e.currentTarget;if(!wo(e)||To.has(e))return;xo.add(r),n.stopPropagation&&To.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),xo.has(r)&&xo.delete(r),wo(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||ho(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),co(e)&&(e.addEventListener(`focus`,e=>Co(e,i)),!vo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Do(e){return Dt(e)&&`ownerSVGElement`in e}var Oo=new WeakMap,ko,Ao=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Do(r)&&`getBBox`in r?r.getBBox()[t]:r[n],jo=Ao(`inline`,`width`,`offsetWidth`),Mo=Ao(`block`,`height`,`offsetHeight`);function No({target:e,borderBoxSize:t}){Oo.get(e)?.forEach(n=>{n(e,{get width(){return jo(e,t)},get height(){return Mo(e,t)}})})}function Po(e){e.forEach(No)}function Fo(){typeof ResizeObserver>`u`||(ko=new ResizeObserver(Po))}function Io(e,t){ko||Fo();let n=oo(e);return n.forEach(e=>{let n=Oo.get(e);n||(n=new Set,Oo.set(e,n)),n.add(t),ko?.observe(e)}),()=>{n.forEach(e=>{let n=Oo.get(e);n?.delete(t),n?.size||ko?.unobserve(e)})}}var Lo=new Set,Ro;function zo(){Ro=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Lo.forEach(t=>t(e))},window.addEventListener(`resize`,Ro)}function Bo(e){return Lo.add(e),Ro||zo(),()=>{Lo.delete(e),!Lo.size&&typeof Ro==`function`&&(window.removeEventListener(`resize`,Ro),Ro=void 0)}}function Vo(e,t){return typeof e==`function`?Bo(e):Io(e,t)}function Ho(e){return Do(e)&&e.tagName===`svg`}var Uo=[...Ua,Wn,or],Wo=e=>Uo.find(Ha(e)),Go=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ko=()=>({x:Go(),y:Go()}),qo=()=>({min:0,max:0}),Jo=()=>({x:qo(),y:qo()}),Yo=new WeakMap;function Xo(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Zo(e){return typeof e==`string`||Array.isArray(e)}var Qo=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],$o=[`initial`,...Qo];function es(e){return Xo(e.animate)||$o.some(t=>Zo(e[t]))}function ts(e){return!!(es(e)||e.variants)}function ns(e,t,n){for(let r in t){let i=t[r],a=n[r];if(L(i))e.addValue(r,i);else if(L(a))e.addValue(r,la(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,la(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var rs={current:null},is={current:!1},as=typeof window<`u`;function os(){if(is.current=!0,as)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>rs.current=e.matches;e.addEventListener(`change`,t),t()}else rs.current=!1}var ss=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],cs={};function ls(e){cs=e}function us(){return cs}var ds=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ki,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{let e=hn.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(is.current||os(),this.shouldReduceMotion=rs.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),dn(this.notifyUpdate),dn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Xi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Bi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Pt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=gi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&A.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in cs){let t=cs[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jo()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=la(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Et(n)||Ot(n))?n=parseFloat(n):!Wo(n)&&or.test(t)&&(n=no(e,t)),this.setBaseTarget(e,L(n)?n.get():n)),L(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=wa(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!L(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Nt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){lo.render(this.render)}},fs=class extends ds{constructor(){super(...arguments),this.KeyframeResolver=ao}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;L(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ps=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ms({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gs(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _s(e){return e===void 0||e===1}function vs({scale:e,scaleX:t,scaleY:n}){return!_s(e)||!_s(t)||!_s(n)}function ys(e){return vs(e)||bs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bs(e){return xs(e.x)||xs(e.y)}function xs(e){return e&&e!==`0%`}function Ss(e,t,n){return n+t*(e-n)}function Cs(e,t,n,r,i){return i!==void 0&&(e=Ss(e,i,r)),Ss(e,n,r)+t}function ws(e,t=0,n=1,r,i){e.min=Cs(e.min,t,n,r,i),e.max=Cs(e.max,t,n,r,i)}function Ts(e,{x:t,y:n}){ws(e.x,t.translate,t.scale,t.originPoint),ws(e.y,n.translate,n.scale,n.originPoint)}var Es=.999999999999,Ds=1.0000000000001;function Os(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;sEs&&(t.x=1),t.yEs&&(t.y=1)}function ks(e,t){e.min+=t,e.max+=t}function As(e,t,n,r,i=.5){ws(e,t,n,N(e.min,e.max,i),r)}function js(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ms(e,t,n){let r=n??e;As(e.x,js(t.x,r.x),t.scaleX,t.scale,t.originX),As(e.y,js(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ns(e,t){return ms(gs(e.getBoundingClientRect(),t))}function Ps(e,t,n){let r=Ns(e,n),{scroll:i}=t;return i&&(ks(r.x,i.offset.x),ks(r.y,i.offset.y)),r}var Fs={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Is=hi.length;function Ls(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(M.test(e))e=parseFloat(e);else return e;return`${Bs(e,t.target.x)}% ${Bs(e,t.target.y)}%`}},Hs={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=or.parse(e);if(i.length>5)return r;let a=or.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=N(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Us={borderRadius:{...Vs,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Vs,borderTopRightRadius:Vs,borderBottomLeftRadius:Vs,borderBottomRightRadius:Vs,boxShadow:Hs};function Ws(e,{layout:t,layoutId:n}){return gi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Us[e]||e===`opacity`)}function Gs(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(L(r[t])||i&&L(i[t])||Ws(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Ks(e){return window.getComputedStyle(e)}var qs=class extends fs{constructor(){super(...arguments),this.type=`html`,this.renderInstance=zs}readValueFromInstance(e,t){if(gi.has(t))return this.projection?.isProjecting?di(t):pi(e,t);{let n=Ks(e),r=(vn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ns(e,t)}build(e,t,n){Rs(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Gs(e,t,n)}},Js={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ys={offset:`strokeDashoffset`,array:`strokeDasharray`};function Xs(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Js:Ys;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Zs=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Qs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Rs(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Zs)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Xs(d,i,a,o,!1)}var $s=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`]),ec=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function tc(e,t,n,r){zs(e,t,void 0,r);for(let n in t.attrs)e.setAttribute($s.has(n)?n:Na(n),t.attrs[n])}function nc(e,t,n){let r=Gs(e,t,n);for(let n in e)if(L(e[n])||L(t[n])){let t=hi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var rc=class extends fs{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Jo}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gi.has(t)){let e=eo(t);return e&&e.default||0}return t=$s.has(t)?t:Na(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return nc(e,t,n)}build(e,t,n){Qs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){tc(e,t,n,r)}mount(e){this.isSVGTag=ec(e.tagName),super.mount(e)}},ic=$o.length;function ac(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ac(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>Ba(e,t,n)))}function uc(e){let t=lc(e),n=pc(),r=!0,i=!1,a=t=>(n,r)=>{let i=Ta(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ac(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Da(t)&&Da(n)?!oc(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Ta(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ia(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Ta(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=pc(),i=!0}}}function dc(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!oc(t,e):!1}function fc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pc(){return{animate:fc(!0),whileInView:fc(),whileHover:fc(),whileTap:fc(),whileDrag:fc(),whileFocus:fc(),exit:fc()}}function mc(e,t){e.min=t.min,e.max=t.max}function hc(e,t){mc(e.x,t.x),mc(e.y,t.y)}function gc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var _c=.9999,vc=1.0001,yc=-.01,bc=.01;function xc(e){return e.max-e.min}function Sc(e,t,n){return Math.abs(e-t)<=n}function Cc(e,t,n,r=.5){e.origin=r,e.originPoint=N(t.min,t.max,e.origin),e.scale=xc(n)/xc(t),e.translate=N(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_c&&e.scale<=vc||isNaN(e.scale))&&(e.scale=1),(e.translate>=yc&&e.translate<=bc||isNaN(e.translate))&&(e.translate=0)}function wc(e,t,n,r){Cc(e.x,t.x,n.x,r?r.originX:void 0),Cc(e.y,t.y,n.y,r?r.originY:void 0)}function Tc(e,t,n,r=0){e.min=(r?N(n.min,n.max,r):n.min)+t.min,e.max=e.min+xc(t)}function Ec(e,t,n,r){Tc(e.x,t.x,n.x,r?.x),Tc(e.y,t.y,n.y,r?.y)}function Dc(e,t,n,r=0){let i=r?N(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+xc(t)}function Oc(e,t,n,r){Dc(e.x,t.x,n.x,r?.x),Dc(e.y,t.y,n.y,r?.y)}function kc(e,t,n,r,i){return e-=t,e=Ss(e,1/n,r),i!==void 0&&(e=Ss(e,1/i,r)),e}function Ac(e,t=0,n=1,r=.5,i,a=e,o=e){if(zn.test(t)&&(t=parseFloat(t),t=N(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=N(a.min,a.max,r);e===a&&(s-=t),e.min=kc(e.min,t,n,s,i),e.max=kc(e.max,t,n,s,i)}function jc(e,t,[n,r,i],a,o){Ac(e,t[n],t[r],t[i],t.scale,a,o)}var Mc=[`x`,`scaleX`,`originX`],Nc=[`y`,`scaleY`,`originY`];function Pc(e,t,n,r){jc(e.x,t,Mc,n?n.x:void 0,r?r.x:void 0),jc(e.y,t,Nc,n?n.y:void 0,r?r.y:void 0)}function Fc(e){return e.translate===0&&e.scale===1}function Ic(e){return Fc(e.x)&&Fc(e.y)}function Lc(e,t){return e.min===t.min&&e.max===t.max}function Rc(e,t){return Lc(e.x,t.x)&&Lc(e.y,t.y)}function zc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function H(e,t){return zc(e.x,t.x)&&zc(e.y,t.y)}function Bc(e){return xc(e.x)/xc(e.y)}function Vc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Hc(e){return[e(`x`),e(`y`)]}function Uc(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Wc=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Gc=Wc.length,Kc=e=>typeof e==`string`?parseFloat(e):e,qc=e=>typeof e==`number`||M.test(e);function Jc(e,t,n,r,i,a){i?(e.opacity=N(0,n.opacity??1,Xc(r)),e.opacityExit=N(t.opacity??1,0,Zc(r))):a&&(e.opacity=N(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(Mt(e,t,r))}function $c(e,t,n){let r=L(e)?e:la(e);return r.start(ya(``,r,t,n)),r.animation}function el(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var tl=(e,t)=>e.depth-t.depth,nl=class{constructor(){this.children=[],this.isDirty=!1}add(e){St(this.children,e),this.isDirty=!0}remove(e){Ct(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tl),this.isDirty=!1,this.children.forEach(e)}};function rl(e,t){let n=hn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(dn(r),e(a-t))};return A.setup(r,!0),()=>dn(r)}function il(e){return L(e)?e.get():e}var al=class{constructor(){this.members=[]}add(e){St(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Ct(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ct(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ol={hasAnimatedSinceResize:!0,hasEverUpdated:!1},sl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},cl=[``,`X`,`Y`,`Z`],ll=1e3,U=0;function ul(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Fa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dl(r)}function fl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=U++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sn.value&&(sl.nodes=sl.calculatedTargetDeltas=sl.calculatedProjections=0),this.nodes.forEach(hl),this.nodes.forEach(wl),this.nodes.forEach(Tl),this.nodes.forEach(gl),sn.addProjectionMetrics&&sn.addProjectionMetrics(sl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=rl(i,250),ol.hasAnimatedSinceResize&&(ol.hasAnimatedSinceResize=!1,this.nodes.forEach(Cl)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ml,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!H(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...da(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Cl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),dn(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(El),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xc(this.snapshot.measuredBox.x)&&!xc(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 e=0;e{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=N(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=N(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ol(o.x,e.x,n),Ol(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Al(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Rc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Jo(),hc(f,this.relativeTarget)),c&&(this.animationValues=a,Jc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(dn(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{ol.hasAnimatedSinceResize=!0,gn.layout++,this.motionValue||=la(0),this.motionValue.jump(0,!1),this.currentAnimation=$c(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{gn.layout--},onComplete:()=>{gn.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ll),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Ll(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Jo();let t=xc(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=xc(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}hc(t,n),Ms(t,i),wc(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new al),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ul(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(vl),this.root.sharedNodes.clear()}}}function pl(e){e.updateLayout()}function ml(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Hc(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=xc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;mc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ll(i,t.layoutBox,n)&&Hc(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=xc(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ko();wc(o,n,t.layoutBox);let s=Ko();a?wc(s,e.applyTransform(r,!0),t.measuredBox):wc(s,n,t.layoutBox);let c=!Ic(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Jo();Oc(s,t.layoutBox,i.layoutBox,o);let c=Jo();Oc(c,n,a.layoutBox,o),H(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function hl(e){sn.value&&sl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function gl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _l(e){e.clearSnapshot()}function vl(e){e.clearMeasurements()}function yl(e){e.isLayoutDirty=!0,e.updateLayout()}function bl(e){e.isLayoutDirty=!1}function xl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Sl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Cl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wl(e){e.resolveTargetDelta()}function Tl(e){e.calcProjection()}function El(e){e.resetSkewAndRotation()}function Dl(e){e.removeLeadSnapshot()}function Ol(e,t,n){e.translate=N(t.translate,0,n),e.scale=N(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kl(e,t,n,r){e.min=N(t.min,n.min,r),e.max=N(t.max,n.max,r)}function Al(e,t,n,r){kl(e.x,t.x,n.x,r),kl(e.y,t.y,n.y,r)}function jl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ml={duration:.45,ease:[.4,0,.1,1]},Nl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Pl=Nl(`applewebkit/`)&&!Nl(`chrome/`)?Math.round:At;function Fl(e){e.min=Pl(e.min),e.max=Pl(e.max)}function Il(e){Fl(e.x),Fl(e.y)}function Ll(e,t,n){return e===`position`||e===`preserve-aspect`&&!Sc(Bc(t),Bc(n),.2)}function Rl(e){return e!==e.root&&e.scroll?.wasRoot}var zl=fl({attachResizeListener:(e,t)=>el(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Bl={current:void 0},W=fl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bl.current){let e=new zl({});e.mount(window),e.setOptions({layoutScroll:!0}),Bl.current=e}return Bl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),G=(0,C.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function K(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function q(...e){return t=>{let n=!1,r=e.map(e=>{let r=K(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` [data-motion-pop-id="${o}"] { position: absolute !important; width: ${e}px !important; height: ${u}px !important; ${_}px !important; ${v}px !important; } `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,O.jsx)(Vl,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:C.cloneElement(e,{ref:u})})}var Ul=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=yt(Wl),d=(0,C.useId)(),f=!0,p=(0,C.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[n,u,r]);return a&&f&&(p={...p}),(0,C.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),C.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,O.jsx)(Hl,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,O.jsx)(xt.Provider,{value:p,children:e})};function Wl(){return new Map}function Gl(e=!0){let t=(0,C.useContext)(xt);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,C.useId)();(0,C.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,C.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Y=e=>e.key||``;function Kl(e){let t=[];return C.Children.forEach(e,e=>{(0,C.isValidElement)(e)&&t.push(e)}),t}var ql=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Gl(o),f=(0,C.useMemo)(()=>Kl(e),[e]),p=o&&!u?[]:f.map(Y),m=(0,C.useRef)(!0),h=(0,C.useRef)(f),g=yt(()=>new Map),_=(0,C.useRef)(new Set),[v,y]=(0,C.useState)(f),[b,x]=(0,C.useState)(f);bt(()=>{m.current=!1,h.current=f;for(let e=0;e{let v=Y(e),y=o&&!u?!1:f===b||p.includes(v);return(0,O.jsx)(Ul,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(w?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},Jl=(0,C.createContext)({strict:!1}),Yl={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Xl=!1;function Zl(){if(Xl)return;let e={};for(let t in Yl)e[t]={isEnabled:e=>Yl[t].some(t=>!!e[t])};ls(e),Xl=!0}function Ql(){return Zl(),us()}function $l(e){let t=Ql();for(let n in e)t[n]={...t[n],...e[n]};ls(t)}var eu=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.propagate.ignoreStrict.viewport`.split(`.`));function tu(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||eu.has(e)}var nu=c({default:()=>ru}),ru,iu=o((()=>{throw ru={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),au=e=>!tu(e);function ou(e){typeof e==`function`&&(au=t=>t.startsWith(`on`)?!tu(t):e(t))}try{ou((iu(),d(nu)).default)}catch{}function su(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||L(e[i])||(au(i)||n===!0&&tu(i)||!t&&!tu(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var cu=(0,C.createContext)({});function lu(e,t){if(es(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Zo(t)?t:void 0,animate:Zo(n)?n:void 0}}return e.inherit===!1?{}:t}function uu(e){let{initial:t,animate:n}=lu(e,(0,C.useContext)(cu));return(0,C.useMemo)(()=>({initial:t,animate:n}),[du(t),du(n)])}function du(e){return Array.isArray(e)?e.join(` `):e}var fu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pu(e,t,n){for(let r in t)!L(t[r])&&!Ws(r,n)&&(e[r]=t[r])}function mu({transformTemplate:e},t){return(0,C.useMemo)(()=>{let n=fu();return Rs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hu(e,t){let n=e.style||{},r={};return pu(r,n,e),Object.assign(r,mu(e,t)),r}function gu(e,t){let n={},r=hu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.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=r,n}var _u=()=>({...fu(),attrs:{}});function vu(e,t,n,r){let i=(0,C.useMemo)(()=>{let n=_u();return Qs(n,t,ec(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};pu(t,e.style,e),i.style={...t,...i.style}}return i}var yu=[`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 bu(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(yu.indexOf(e)>-1||/[A-Z]/u.test(e))}function xu(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??bu(e)?vu:gu)(t,r,i,e),c=su(t,typeof e==`string`,a),l=e===C.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,C.useMemo)(()=>L(u)?u.get():u,[u]);return(0,C.createElement)(e,{...l,children:d})}function Su({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Cu(n,r,i,e),renderState:t()}}function Cu(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=il(a[e]);let{initial:o,animate:s}=e,c=es(e),l=ts(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Xo(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,C.useContext)(cu),i=(0,C.useContext)(xt),a=()=>Su(e,t,r,i);return n?a():yt(a)},Tu=wu({scrapeMotionValuesFromProps:Gs,createRenderState:fu}),Eu=wu({scrapeMotionValuesFromProps:nc,createRenderState:_u}),Du=Symbol.for(`motionComponentSymbol`);function Ou(e,t,n){let r=(0,C.useRef)(n);(0,C.useInsertionEffect)(()=>{r.current=n});let i=(0,C.useRef)(null);return(0,C.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var ku=(0,C.createContext)({});function Au(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function ju(e,t,n,r,i,a){let{visualElement:o}=(0,C.useContext)(cu),s=(0,C.useContext)(Jl),c=(0,C.useContext)(xt),l=(0,C.useContext)(G),u=l.reducedMotion,d=l.skipAnimations,f=(0,C.useRef)(null),p=(0,C.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,C.useContext)(ku);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Mu(f.current,n,i,h);let g=(0,C.useRef)(!1);(0,C.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Pa],v=(0,C.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return bt(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,C.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Mu(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Nu(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Au(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Nu(e){if(e)return e.options.allowProjection===!1?Nu(e.parent):e.projection}function Pu(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&$l(r);let a=n?n===`svg`:bu(e),o=a?Eu:Tu;function s(n,s){let c,l={...(0,C.useContext)(G),...n,layoutId:Fu(n)},{isStatic:u}=l,d=uu(n),f=o(n,u);if(!u&&typeof window<`u`){Iu(l,r);let t=Lu(l);c=t.MeasureLayout,d.visualElement=ju(e,f,l,i,t.ProjectionNode,a)}return(0,O.jsxs)(cu.Provider,{value:d,children:[c&&d.visualElement?(0,O.jsx)(c,{visualElement:d.visualElement,...l}):null,xu(e,n,Ou(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,C.forwardRef)(s);return c[Du]=e,c}function Fu({layoutId:e}){let t=(0,C.useContext)(vt).id;return t&&e!==void 0?t+`-`+e:e}function Iu(e,t){(0,C.useContext)(Jl).strict}function Lu(e){let{drag:t,layout:n}=Ql();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ru(e,t){if(typeof Proxy>`u`)return Pu;let n=new Map,r=(n,r)=>Pu(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Pu(a,void 0,e,t)),n.get(a))})}var zu=(e,t)=>t.isSVG??bu(e)?new rc(t):new qs(t,{allowProjection:e!==C.Fragment}),Bu=class extends ps{constructor(e){super(e),e.animationState||=uc(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Xo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Vu=0,Hu={animation:{Feature:Bu},exit:{Feature:class extends ps{constructor(){super(...arguments),this.id=Vu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Ta(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Uu(e){return{point:{x:e.pageX,y:e.pageY}}}var Wu=e=>t=>go(t)&&e(t,Uu(t));function Gu(e,t,n,r){return el(e,t,Wu(n),r)}var X=({current:e})=>e?e.ownerDocument.defaultView:null,Ku=(e,t)=>Math.abs(e-t);function qu(e,t){let n=Ku(e.x,t.x),r=Ku(e.y,t.y);return Math.sqrt(n**2+r**2)}var Ju=new Set([`auto`,`scroll`]),Yu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Qu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=qu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=j;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Xu(t,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Qu(e.type===`pointercancel`?this.lastMoveEventInfo:Xu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!go(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Xu(Uu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Qu(s,this.history)),this.removeListeners=jt(Gu(this.contextWindow,`pointermove`,this.handlePointerMove),Gu(this.contextWindow,`pointerup`,this.handlePointerUp),Gu(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Ju.has(e.overflowX)||Ju.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),dn(this.updatePoint)}};function Xu(e,t){return t?{point:t(e.point)}:e}function Zu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qu({point:e},t){return{point:e,delta:Zu(e,ed(t)),offset:Zu(e,$u(t)),velocity:td(t,.1)}}function $u(e){return e[0]}function ed(e){return e[e.length-1]}function td(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ed(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Pt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Pt(t)*2&&(r=e[1]);let a=Ft(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function nd(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?N(n,e,r.max):Math.min(e,n)),e}function rd(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function id(e,{top:t,left:n,bottom:r,right:i}){return{x:rd(e.x,n,i),y:rd(e.y,t,r)}}function ad(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Mt(t.min,t.max-r,e.min):r>i&&(n=Mt(e.min,e.max-i,t.min)),wt(0,1,n)}function cd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var ld=.35;function ud(e=ld){return e===!1?e=0:e===!0&&(e=ld),{x:dd(e,`left`,`right`),y:dd(e,`top`,`bottom`)}}function dd(e,t,n){return{min:fd(e,t),max:fd(e,n)}}function fd(e,t){return typeof e==`number`?e:e[t]||0}var pd=new WeakMap,md=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jo(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Uu(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=po(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(zn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=xc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&A.update(()=>i(e,t),!1,!0),Ma(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=vd(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Yu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:X(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!_d(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=nd(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Au(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=id(n.layoutBox,e):this.constraints=!1,this.elastic=ud(t),r!==this.constraints&&!Au(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Hc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=cd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Au(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ps(n,r.root,this.visualElement.getTransformPagePoint()),a=od(r.layout.layoutBox,i);if(t){let e=t(hs(a));this.hasMutatedConstraints=!!e,e&&(a=ms(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Hc(o=>{if(!_d(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ma(this.visualElement,e),n.start(ya(e,n,0,t,this.visualElement,!1))}stopAnimation(){Hc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Hc(t=>{let{drag:n}=this.getProps();if(!_d(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-N(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Au(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Hc(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=sd({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Hc(t=>{if(!_d(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(N(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pd.set(this.visualElement,this);let e=this.visualElement.current,t=Gu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&bo(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Au(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=gd(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=el(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Hc(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=ld,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function hd(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gd(e,t,n){let r=Vo(e,hd(n)),i=Vo(t,hd(n));return()=>{r(),i()}}function _d(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var yd=class extends ps{constructor(e){super(e),this.removeGroupControls=At,this.removeListeners=At,this.controls=new md(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||At}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},bd=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},Z=class extends ps{constructor(){super(...arguments),this.removePointerDownListener=At}onPointerDown(e){this.session=new Yu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:X(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:bd(e),onStart:bd(t),onMove:bd(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},xd=!1,Sd=class extends C.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),xd&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ol.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),xd=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),lo.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;xd=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Cd(e){let[t,n]=Gl(),r=(0,C.useContext)(vt);return(0,O.jsx)(Sd,{...e,layoutGroup:r,switchLayoutGroup:(0,C.useContext)(ku),isPresent:t,safeToRemove:n})}var wd={pan:{Feature:Z},drag:{Feature:yd,ProjectionNode:W,MeasureLayout:Cd}};function Td(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,Uu(t)))}var Ed=class extends ps{mount(){let{current:e}=this.node;e&&(this.unmount=B(e,(e,t)=>(Td(this.node,t,`Start`),e=>Td(this.node,e,`End`))))}unmount(){}},Dd=class extends ps{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=jt(el(this.node.current,`focus`,()=>this.onFocus()),el(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Od(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,Uu(t)))}var kd=class extends ps{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Eo(e,(e,t)=>(Od(this.node,t,`Start`),(e,{success:t})=>Od(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Ad=new WeakMap,jd=new WeakMap,Md=e=>{let t=Ad.get(e.target);t&&t(e)},Nd=e=>{e.forEach(Md)};function Q({root:e,...t}){let n=e||document;jd.has(n)||jd.set(n,{});let r=jd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nd,{root:e,...t})),r[i]}function Pd(e,t,n){let r=Q(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}var Fd={some:0,all:1},Id=class extends ps{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Fd[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Pd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Ld(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Ld({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Rd={inView:{Feature:Id},tap:{Feature:kd},focus:{Feature:Dd},hover:{Feature:Ed}},zd={layout:{ProjectionNode:W,MeasureLayout:Cd}},$=Ru({...Hu,...Rd,...wd,...zd},zu),Bd={some:0,all:1};function Vd(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=oo(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Bd[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Hd(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,C.useState)(a);return(0,C.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return Vd(e.current,a,c)},[t,e,n,i,r]),o}var Ud=[{href:`/`,label:`Home`},{href:`/companions`,label:`Companions`},{href:`/services`,label:`Services`},{href:`/reviews`,label:`Reviews`},{href:`/safety`,label:`Safety`},{href:`/about`,label:`About`},{href:`/contact`,label:`Contact`}];function Wd(){let[e,t]=(0,C.useState)(!1),[n,r]=(0,C.useState)(!1),[i]=Ee();return(0,C.useEffect)(()=>{let e=()=>r(window.scrollY>40);return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,C.useEffect)(()=>t(!1),[i]),(0,O.jsxs)(`header`,{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500`,style:{background:n?`rgba(10,10,10,0.97)`:`transparent`,borderBottom:n?`1px solid rgba(201,169,110,0.15)`:`none`,backdropFilter:n?`blur(12px)`:`none`},children:[(0,O.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 lg:px-12 flex items-center justify-between h-20`,children:[(0,O.jsx)(Me,{href:`/`,children:(0,O.jsxs)(`span`,{className:`flex items-center gap-3 cursor-pointer select-none`,children:[(0,O.jsx)(`span`,{className:`text-2xl tracking-[0.25em] font-serif text-primary`,children:`ÉLITE`}),(0,O.jsx)(`span`,{className:`w-px h-5 bg-primary/40`}),(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] text-muted-foreground uppercase`,children:`Companions`})]})}),(0,O.jsxs)(`nav`,{className:`hidden lg:flex items-center gap-8`,children:[Ud.map(({href:e,label:t})=>(0,O.jsx)(Me,{href:e,children:(0,O.jsx)(`span`,{className:`text-xs tracking-[0.2em] uppercase cursor-pointer transition-colors duration-200`,style:{color:i===e?`hsl(var(--primary))`:`hsl(var(--muted-foreground))`},onMouseEnter:e=>e.currentTarget.style.color=`hsl(var(--primary))`,onMouseLeave:t=>t.currentTarget.style.color=i===e?`hsl(var(--primary))`:`hsl(var(--muted-foreground))`,children:t})},e)),(0,O.jsx)(Me,{href:`/contact`,children:(0,O.jsx)(`span`,{className:`ml-2 px-5 py-2 text-xs tracking-[0.2em] uppercase border border-primary/60 text-primary hover:bg-primary hover:text-background transition-all duration-300 cursor-pointer`,children:`Inquire`})})]}),(0,O.jsx)(`button`,{className:`lg:hidden text-primary p-2`,onClick:()=>t(e=>!e),"aria-label":`Toggle menu`,children:e?(0,O.jsx)(ht,{size:22}):(0,O.jsx)(lt,{size:22})})]}),(0,O.jsx)(ql,{children:e&&(0,O.jsx)($.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:`auto`},exit:{opacity:0,height:0},transition:{duration:.3},className:`lg:hidden overflow-hidden`,style:{background:`rgba(10,10,10,0.98)`,borderTop:`1px solid rgba(201,169,110,0.1)`},children:(0,O.jsx)(`div`,{className:`flex flex-col py-6 px-8 gap-6`,children:Ud.map(({href:e,label:t})=>(0,O.jsx)(Me,{href:e,children:(0,O.jsx)(`span`,{className:`text-sm tracking-[0.2em] uppercase text-muted-foreground hover:text-primary transition-colors cursor-pointer`,children:t})},e))})})})]})}var Gd=[`Indore`,`Hyderabad`,`Mumbai`,`Bangalore`,`Pune`,`Delhi`];function Kd(){return(0,O.jsxs)(`footer`,{className:`border-t border-border bg-card mt-0`,children:[(0,O.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6 lg:px-12 py-16 grid grid-cols-1 md:grid-cols-4 gap-12`,children:[(0,O.jsxs)(`div`,{className:`md:col-span-2`,children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,O.jsx)(`span`,{className:`text-2xl tracking-[0.25em] font-serif text-primary`,children:`ÉLITE`}),(0,O.jsx)(`span`,{className:`w-px h-5 bg-primary/40`}),(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] text-muted-foreground uppercase`,children:`Companions`})]}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm leading-relaxed max-w-xs`,children:`India's most distinguished social concierge agency. Curating meaningful companionship experiences for discerning individuals across major cities.`}),(0,O.jsx)(`p`,{className:`mt-6 text-xs text-muted-foreground/50 leading-relaxed max-w-xs`,children:`All services are strictly social and professional in nature. This platform is for adults 18+ only and complies fully with applicable laws.`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-4`,children:`Navigation`}),(0,O.jsx)(`ul`,{className:`flex flex-col gap-3`,children:[[`Companions`,`/companions`],[`Services`,`/services`],[`Reviews`,`/reviews`],[`Safety`,`/safety`],[`About`,`/about`],[`Contact`,`/contact`]].map(([e,t])=>(0,O.jsx)(`li`,{children:(0,O.jsx)(Me,{href:t,children:(0,O.jsx)(`span`,{className:`text-sm text-muted-foreground hover:text-primary transition-colors cursor-pointer`,children:e})})},t))})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-4`,children:`Cities`}),(0,O.jsx)(`ul`,{className:`flex flex-col gap-3`,children:Gd.map(e=>(0,O.jsx)(`li`,{children:(0,O.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:e})},e))})]})]}),(0,O.jsxs)(`div`,{className:`border-t border-border max-w-7xl mx-auto px-6 lg:px-12 py-6 flex flex-col sm:flex-row justify-between items-center gap-4`,children:[(0,O.jsxs)(`p`,{className:`text-xs text-muted-foreground/50`,children:[`© `,new Date().getFullYear(),` Elite Companions. All rights reserved.`]}),(0,O.jsx)(`div`,{className:`flex gap-6`,children:[`Privacy Policy`,`Terms of Service`,`Confidentiality`].map(e=>(0,O.jsx)(`span`,{className:`text-xs text-muted-foreground/50 hover:text-primary transition-colors cursor-pointer`,children:e},e))})]})]})}var qd=`/assets/download%20(2)-X5mWqbVt.jpeg`,Jd=`/assets/images-Da17w0eg.jpeg`,Yd=`/assets/download-BFn2SGgC.jpeg`,Xd=`/assets/download%20(1)-DjXIA9p6.jpeg`,Zd=`/assets/lili1-0mScLn8x.webp`,Qd=`/assets/lili2-BMGyS025.webp`,$d=`/assets/lili3-DgyjMVDu.webp`,ef=`/assets/lili4-DtDZx0tG.webp`,tf=`/assets/lili5-jpWZPmNK.webp`,nf=`/assets/lili6-CrW1aI5F.webp`,rf=[`Indore`,`Hyderabad`,`Mumbai`,`Bangalore`,`Pune`,`Delhi`],af=[`Fine Dining`,`Travel`,`Art & Culture`,`Business`,`Sports`,`Music`,`Literature`,`Wine Tasting`],of=[{id:`1`,name:`Aanya`,city:`Mumbai`,age:27,languages:[`English`,`Hindi`,`French`],interests:[`Fine Dining`,`Art & Culture`,`Literature`],snippet:`A cultivated conversationalist with a penchant for modern art and classical literature.`,pricing:`₹15,000 / evening`,image:`companion-1.png`,availability:`Online`,bio:`Aanya brings a sophisticated charm to any event. With a background in art history, she seamlessly navigates elite social circles and offers deeply engaging conversation.`,activities:[`Gallery Openings`,`Michelin-star Dining`,`Private Galas`],reviews:24,rating:4.9},{id:`2`,name:`Vikram`,city:`Delhi`,age:32,languages:[`English`,`Hindi`],interests:[`Business`,`Travel`,`Wine Tasting`],snippet:`An erudite professional ideal for corporate events and sophisticated travel.`,pricing:`₹20,000 / evening`,image:`companion-2.png`,availability:`Offline`,bio:`Vikram is the perfect executive companion. He combines sharp business acumen with an easy-going charm that puts high-profile clients at ease.`,activities:[`Corporate Galas`,`Business Dinners`,`International Travel`],reviews:41,rating:5},{id:`3`,name:`Diya`,city:`Bangalore`,age:26,languages:[`English`,`Kannada`,`Spanish`],interests:[`Music`,`Travel`,`Fine Dining`],snippet:`Graceful and well-traveled, bringing international flair to every encounter.`,pricing:`₹18,000 / evening`,image:`companion-3.png`,availability:`Online`,bio:`Diya's effervescent personality and deep knowledge of global cultures make her an exceptional companion for those seeking refined, worldly conversation.`,activities:[`Charity Balls`,`Weekend Retreats`,`Symphony Orchestras`],reviews:18,rating:4.8},{id:`4`,name:`Kavya`,city:`Pune`,age:29,languages:[`English`,`Marathi`,`Hindi`],interests:[`Literature`,`Fine Dining`,`Business`],snippet:`Intelligent and poised, perfect for intellectual discourse and upscale evenings.`,pricing:`₹14,000 / evening`,image:`companion-4.png`,availability:`Online`,bio:`With a masters in literature and a sharp wit, Kavya elevates the atmosphere of any room she enters. Her quiet confidence is her signature.`,activities:[`Exclusive Dinners`,`Book Launches`,`Corporate Retreats`],reviews:32,rating:4.9},{id:`5`,name:`Aryan`,city:`Hyderabad`,age:34,languages:[`English`,`Telugu`,`Hindi`],interests:[`Sports`,`Business`,`Wine Tasting`],snippet:`Charismatic and distinguished, providing impeccable company for high-stakes events.`,pricing:`₹22,000 / evening`,image:`companion-5.png`,availability:`Online`,bio:`Aryan is a master of elite etiquette. His presence is commanding yet understated, making him a favorite for VIP clients and exclusive social clubs.`,activities:[`Golf Tournaments`,`Private Club Dinners`,`Yacht Trips`],reviews:56,rating:5},{id:`6`,name:`Meera`,city:`Indore`,age:25,languages:[`English`,`Hindi`],interests:[`Art & Culture`,`Music`,`Fine Dining`],snippet:`Refined and deeply knowledgeable about traditional and contemporary arts.`,pricing:`₹12,000 / evening`,image:`companion-6.png`,availability:`Offline`,bio:`Meera balances traditional elegance with modern sophistication. Her soothing presence and attentive listening make every experience memorable.`,activities:[`Cultural Festivals`,`Private Dinners`,`Weekend Getaways`],reviews:15,rating:4.7},{id:`7`,name:`Rhea`,city:`Mumbai`,age:28,languages:[`English`,`Hindi`,`Italian`],interests:[`Travel`,`Wine Tasting`,`Literature`],snippet:`A cosmopolitan spirit with an infectious charm and exquisite taste.`,pricing:`₹19,000 / evening`,image:`companion-7.png`,availability:`Online`,bio:`Rhea is a connoisseur of the finer things in life. She is the ultimate plus-one for those who appreciate spontaneity without sacrificing luxury.`,activities:[`Wine Tastings`,`Film Premieres`,`Luxury Travel`],reviews:38,rating:4.9},{id:`8`,name:`Kabir`,city:`Bangalore`,age:30,languages:[`English`,`Hindi`],interests:[`Business`,`Sports`,`Music`],snippet:`Suave, worldly, and effortlessly adaptable to any sophisticated setting.`,pricing:`₹17,000 / evening`,image:`companion-8.png`,availability:`Online`,bio:`Kabir's laid-back sophistication makes him an excellent conversationalist. He seamlessly integrates into high-level networking events and private soirées.`,activities:[`Polo Matches`,`Cocktail Receptions`,`Networking Events`],reviews:27,rating:4.8}],sf=[{id:`r1`,author:`R. Mehta`,role:`CEO, Technology Enterprise`,city:`Mumbai`,content:`The level of sophistication is unmatched. Aanya was the perfect companion for our annual corporate gala. Intelligent, discreet, and utterly charming. Every colleague assumed she was a long-time acquaintance of mine.`,rating:5,date:`October 2024`,service:`Corporate Event Partner`,verified:!0},{id:`r2`,author:`S. Singhania`,role:`Private Investor`,city:`Delhi`,content:`I required a companion for a weekend wine-tasting tour in Nashik. Vikram's knowledge of viticulture and his easy, sophisticated demeanor transformed an already good trip into something truly extraordinary. Elite Companions delivers exactly what they promise.`,rating:5,date:`November 2024`,service:`Travel Companion`,verified:!0},{id:`r3`,author:`Anonymous Client`,role:`International Diplomat`,city:`Bangalore`,content:`Discretion was my highest priority. The team handled my request with absolute professionalism. Diya was a graceful and intellectually brilliant conversationalist throughout my week-long stay. No detail was overlooked.`,rating:5,date:`January 2025`,service:`Travel Companion`,verified:!0},{id:`r4`,author:`K. Agarwal`,role:`Managing Director`,city:`Hyderabad`,content:`Aryan accompanied me to three consecutive evenings of client entertainment. His business acumen and social poise were exactly what I needed. Clients were impressed, and I could focus on the conversations that mattered.`,rating:5,date:`March 2025`,service:`Corporate Event Partner`,verified:!0},{id:`r5`,author:`P. Nair`,role:`Creative Director`,city:`Pune`,content:`Booked Kavya for a gallery opening and subsequent dinner. Her knowledge of contemporary art elevated the entire experience. She was articulate, confident, and knew when to speak and when to simply be present. Rare quality.`,rating:5,date:`February 2025`,service:`Event Companion`,verified:!0},{id:`r6`,author:`Anonymous`,role:`High Court Advocate`,city:`Indore`,content:`I was skeptical initially, but the reality far exceeded my expectations. The inquiry process was handled with complete professionalism. The experience itself was exactly as promised — refined, discreet, and utterly enjoyable.`,rating:5,date:`April 2025`,service:`Dinner Companion`,verified:!0}],cf=[qd,Jd,Yd,Xd],lf=[Zd,Qd,$d,ef,tf,nf];of.forEach(e=>{e.gallery=[`3`,`7`].includes(e.id)?lf:cf});function uf({open:e,onClose:t,companionName:n}){let[r,i]=(0,C.useState)(!1);return(0,O.jsx)(ql,{children:e&&(0,O.jsxs)($.div,{className:`fixed inset-0 z-[200] flex items-center justify-center p-4`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,O.jsx)(`div`,{className:`absolute inset-0 bg-black/80`,style:{backdropFilter:`blur(8px)`},onClick:t}),(0,O.jsxs)($.div,{className:`relative z-10 w-full max-w-md bg-card border border-primary/20 p-8`,initial:{y:30,opacity:0},animate:{y:0,opacity:1},exit:{y:30,opacity:0},transition:{duration:.3},children:[(0,O.jsx)(`button`,{onClick:t,className:`absolute top-4 right-4 text-muted-foreground hover:text-primary transition-colors`,children:(0,O.jsx)(ht,{size:18})}),r?(0,O.jsxs)(`div`,{className:`py-8 text-center`,children:[(0,O.jsx)(`p`,{className:`text-primary text-xs tracking-[0.25em] uppercase mb-3`,children:`Received`}),(0,O.jsx)(`p`,{className:`font-serif text-2xl text-foreground mb-3`,children:`Thank You`}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Our concierge team will contact you within 24 hours.`})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`p`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-1`,children:`Booking Inquiry`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-6`,children:n?`Request — ${n}`:`Private Inquiry`}),(0,O.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),i(!0),setTimeout(()=>{i(!1),t()},2500)},className:`flex flex-col gap-4`,children:[(0,O.jsx)(`input`,{required:!0,placeholder:`Your Name`,className:`bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/50 transition-colors placeholder:text-muted-foreground/50`}),(0,O.jsx)(`input`,{required:!0,type:`email`,placeholder:`Email Address`,className:`bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/50 transition-colors placeholder:text-muted-foreground/50`}),(0,O.jsx)(`input`,{required:!0,type:`date`,className:`bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/50 transition-colors [color-scheme:dark]`}),(0,O.jsx)(`textarea`,{required:!0,rows:3,placeholder:`Please describe the occasion and your requirements...`,className:`bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/50 transition-colors resize-none placeholder:text-muted-foreground/50`}),(0,O.jsx)(`button`,{type:`submit`,className:`mt-2 bg-primary text-background py-3 text-xs tracking-[0.25em] uppercase hover:bg-primary/90 transition-colors font-medium`,children:`Submit Inquiry`})]})]})]})]})})}var df=[{q:`What is Elite Companions?`,a:`Elite Companions is India's premier social concierge agency, connecting cultivated adults with verified companions for fine dining, travel, events, and meaningful social experiences.`},{q:`Are your companions verified?`,a:`Yes. Every companion undergoes a rigorous identity verification, background review, and personal interview process before joining our network.`},{q:`How is my privacy protected?`,a:`We maintain absolute confidentiality. Client identities are never shared, all communications are encrypted, and our team operates under strict non-disclosure protocols.`},{q:`How do I make a booking?`,a:`Submit an inquiry through our website or contact us directly via WhatsApp. Our concierge team will respond within 24 hours to arrange the details.`},{q:`What cities do you serve?`,a:`We currently operate in Mumbai, Delhi, Bangalore, Hyderabad, Pune, and Indore, with expansion planned to additional cities.`}];function ff({q:e,a:t}){let[n,r]=(0,C.useState)(!1);return(0,O.jsxs)(`div`,{className:`border-b border-border`,children:[(0,O.jsxs)(`button`,{className:`w-full flex items-center justify-between py-5 text-left group`,onClick:()=>r(e=>!e),children:[(0,O.jsx)(`span`,{className:`text-sm tracking-wide text-foreground group-hover:text-primary transition-colors`,children:e}),n?(0,O.jsx)($e,{size:16,className:`text-primary shrink-0`}):(0,O.jsx)(Xe,{size:16,className:`text-muted-foreground shrink-0`})]}),n&&(0,O.jsx)($.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:`auto`},exit:{opacity:0,height:0},className:`pb-5`,children:(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:t})})]})}function pf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-60px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:28},animate:i?{opacity:1,y:0}:{},transition:{duration:.7,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}function mf({c:e}){let[t,n]=(0,C.useState)(!1),[r,i]=(0,C.useState)(!1),a=e.name.slice(0,2).toUpperCase(),o=[`from-amber-900/60 to-stone-900`,`from-rose-900/40 to-stone-900`,`from-emerald-900/40 to-stone-900`,`from-indigo-900/40 to-stone-900`,`from-amber-800/50 to-stone-900`,`from-purple-900/40 to-stone-900`,`from-teal-900/40 to-stone-900`,`from-orange-900/40 to-stone-900`],s=o[parseInt(e.id)%o.length];return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(uf,{open:r,onClose:()=>i(!1),companionName:e.name}),(0,O.jsxs)($.div,{whileHover:{y:-4},transition:{duration:.3},className:`group relative bg-card border border-border overflow-hidden`,children:[(0,O.jsxs)(`div`,{className:`relative h-64 bg-gradient-to-b ${s} flex items-end justify-start p-5`,children:[(0,O.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,O.jsx)(`div`,{className:`w-24 h-24 rounded-full bg-primary/10 border border-primary/20 flex items-center justify-center`,children:(0,O.jsx)(`span`,{className:`font-serif text-3xl text-primary/60`,children:a})})}),(0,O.jsx)(`button`,{className:`absolute top-4 right-4 z-10 p-1.5 transition-colors`,onClick:()=>n(e=>!e),children:(0,O.jsx)(it,{size:16,fill:t?`hsl(var(--primary))`:`none`,className:`text-primary transition-all`})}),(0,O.jsxs)(`div`,{className:`absolute bottom-4 left-4 z-10 flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full`,style:{backgroundColor:e.availability===`Online`?`#4ade80`:`#6b7280`}}),(0,O.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.availability})]})]}),(0,O.jsxs)(`div`,{className:`p-5`,children:[(0,O.jsxs)(`div`,{className:`flex items-start justify-between mb-2`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`h3`,{className:`font-serif text-xl text-foreground`,children:e.name}),(0,O.jsxs)(`p`,{className:`text-xs tracking-wider text-muted-foreground uppercase mt-0.5`,children:[e.city,` · `,e.age,` yrs`]})]}),(0,O.jsxs)(`div`,{className:`flex items-center gap-1 mt-1`,children:[(0,O.jsx)(pt,{size:11,fill:`hsl(var(--primary))`,className:`text-primary`}),(0,O.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.rating})]})]}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed mb-4`,children:e.snippet}),(0,O.jsx)(`div`,{className:`flex flex-wrap gap-1.5 mb-5`,children:e.interests.slice(0,3).map(e=>(0,O.jsx)(`span`,{className:`text-[10px] tracking-widest uppercase px-2 py-0.5 border border-primary/20 text-primary/70`,children:e},e))}),(0,O.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,O.jsx)(`span`,{className:`text-sm text-primary font-medium`,children:e.pricing}),(0,O.jsx)(`button`,{onClick:()=>i(!0),className:`text-[10px] tracking-[0.2em] uppercase px-4 py-2 border border-primary/40 text-primary hover:bg-primary hover:text-background transition-all duration-300`,children:`Inquire`})]})]})]})]})}function hf(){let[e,t]=(0,C.useState)(!1),n=of.slice(0,4);return(0,O.jsxs)(`div`,{className:`overflow-x-hidden`,children:[(0,O.jsx)(uf,{open:e,onClose:()=>t(!1)}),(0,O.jsxs)(`section`,{className:`relative min-h-screen flex items-center justify-center overflow-hidden`,children:[(0,O.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201,169,110,0.07) 0%, transparent 70%), linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%)`}}),(0,O.jsx)(`div`,{className:`absolute inset-0 opacity-[0.03]`,style:{backgroundImage:`repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,169,110,0.5) 79px, rgba(201,169,110,0.5) 80px), repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,169,110,0.5) 79px, rgba(201,169,110,0.5) 80px)`}}),(0,O.jsxs)(`div`,{className:`relative z-10 text-center px-6 max-w-4xl mx-auto`,children:[(0,O.jsx)($.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:(0,O.jsx)(`span`,{className:`text-xs tracking-[0.4em] uppercase text-primary mb-6 block`,children:`Est. 2020 · India's Premier Social Concierge`})}),(0,O.jsxs)($.h1,{className:`font-serif text-5xl sm:text-7xl lg:text-8xl text-foreground leading-none mb-6`,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1,delay:.4,ease:[.22,1,.36,1]},children:[`The Art of`,` `,(0,O.jsx)(`em`,{className:`text-primary not-italic`,children:`Refined`}),(0,O.jsx)(`br`,{}),`Companionship`]}),(0,O.jsx)($.p,{className:`text-base sm:text-lg text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed`,initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.7},children:`India's most distinguished social concierge agency — curating meaningful, professional companionship for discerning individuals who expect nothing less than exceptional.`}),(0,O.jsxs)($.div,{className:`flex flex-col sm:flex-row gap-4 justify-center`,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.9},children:[(0,O.jsx)(Me,{href:`/companions`,children:(0,O.jsx)(`span`,{className:`inline-block px-10 py-4 bg-primary text-background text-xs tracking-[0.3em] uppercase hover:bg-primary/90 transition-all duration-300 cursor-pointer`,children:`Meet Our Companions`})}),(0,O.jsx)(`button`,{onClick:()=>t(!0),className:`px-10 py-4 border border-primary/40 text-primary text-xs tracking-[0.3em] uppercase hover:bg-primary/10 transition-all duration-300`,children:`Private Inquiry`})]})]}),(0,O.jsxs)($.div,{className:`absolute bottom-10 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2`,initial:{opacity:0},animate:{opacity:1},transition:{delay:1.4},children:[(0,O.jsx)(`span`,{className:`text-[10px] tracking-widest uppercase text-muted-foreground/50`,children:`Scroll`}),(0,O.jsx)(`div`,{className:`w-px h-10 bg-gradient-to-b from-primary/40 to-transparent`})]})]}),(0,O.jsx)(`section`,{className:`py-8 border-y border-border bg-card`,children:(0,O.jsx)(`div`,{className:`max-w-5xl mx-auto px-6 grid grid-cols-2 md:grid-cols-4 gap-8 text-center`,children:[[`500+`,`Verified Companions`],[`10,000+`,`Curated Experiences`],[`6`,`Major Cities`],[`100%`,`Confidential`]].map(([e,t])=>(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`font-serif text-3xl text-primary mb-1`,children:e}),(0,O.jsx)(`p`,{className:`text-xs tracking-[0.2em] uppercase text-muted-foreground`,children:t})]},t))})}),(0,O.jsxs)(`section`,{className:`py-24 px-6 max-w-7xl mx-auto`,children:[(0,O.jsxs)(pf,{className:`text-center mb-16`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Our Collection`}),(0,O.jsx)(`h2`,{className:`font-serif text-4xl sm:text-5xl text-foreground`,children:`Featured Companions`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6`,children:n.map((e,t)=>(0,O.jsx)(pf,{delay:t*.08,children:(0,O.jsx)(mf,{c:e})},e.id))}),(0,O.jsx)(pf,{className:`text-center mt-12`,children:(0,O.jsx)(Me,{href:`/companions`,children:(0,O.jsx)(`span`,{className:`inline-block px-10 py-4 border border-primary/30 text-primary text-xs tracking-[0.3em] uppercase hover:bg-primary hover:text-background transition-all duration-300 cursor-pointer`,children:`View All Companions`})})})]}),(0,O.jsx)(`section`,{className:`py-24 bg-card border-y border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6`,children:[(0,O.jsxs)(pf,{className:`text-center mb-16`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`The Difference`}),(0,O.jsx)(`h2`,{className:`font-serif text-4xl sm:text-5xl text-foreground`,children:`Why Elite Companions`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-10`,children:[{icon:ft,title:`Rigorous Verification`,desc:`Every companion is personally interviewed, identity-verified, and background-checked. We curate a network of genuinely cultivated individuals.`},{icon:nt,title:`Absolute Discretion`,desc:`Your privacy is our highest priority. All client information is protected by strict NDA protocols and end-to-end encrypted communications.`},{icon:Je,title:`Concierge-Level Service`,desc:`From your first inquiry to the final experience, our team handles every detail with the attentiveness of a five-star personal concierge.`}].map(({icon:e,title:t,desc:n},r)=>(0,O.jsx)(pf,{delay:r*.1,children:(0,O.jsxs)(`div`,{className:`p-8 border border-border hover:border-primary/30 transition-colors group`,children:[(0,O.jsx)(e,{size:20,className:`text-primary mb-6`}),(0,O.jsx)(`h3`,{className:`font-serif text-xl text-foreground mb-3`,children:t}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:n})]})},t))})]})}),(0,O.jsxs)(`section`,{className:`py-24 px-6 max-w-7xl mx-auto`,children:[(0,O.jsxs)(pf,{className:`text-center mb-16`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Experiences`}),(0,O.jsx)(`h2`,{className:`font-serif text-4xl sm:text-5xl text-foreground`,children:`Our Services`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-px bg-border`,children:[`Fine Dining`,`Travel & Exploration`,`Corporate Events`,`Curated Lifestyle`].map((e,t)=>(0,O.jsx)(pf,{delay:t*.06,className:`bg-background`,children:(0,O.jsx)(Me,{href:`/services`,children:(0,O.jsxs)(`div`,{className:`p-8 group cursor-pointer hover:bg-card transition-colors h-full`,children:[(0,O.jsx)(`div`,{className:`w-8 h-px bg-primary mb-6 group-hover:w-16 transition-all duration-500`}),(0,O.jsx)(`h3`,{className:`font-serif text-lg text-foreground mb-2`,children:e}),(0,O.jsx)(`span`,{className:`text-[10px] tracking-[0.2em] uppercase text-primary/60 group-hover:text-primary transition-colors`,children:`Explore`})]})})},e))})]}),(0,O.jsx)(`section`,{className:`py-24 bg-card border-y border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-7xl mx-auto px-6`,children:[(0,O.jsxs)(pf,{className:`text-center mb-16`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Testimonials`}),(0,O.jsx)(`h2`,{className:`font-serif text-4xl sm:text-5xl text-foreground`,children:`Client Experiences`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:sf.map((e,t)=>(0,O.jsx)(pf,{delay:t*.1,children:(0,O.jsxs)(`div`,{className:`p-8 border border-border hover:border-primary/20 transition-colors`,children:[(0,O.jsx)(`div`,{className:`flex gap-0.5 mb-6`,children:Array.from({length:e.rating}).map((e,t)=>(0,O.jsx)(pt,{size:12,fill:`hsl(var(--primary))`,className:`text-primary`},t))}),(0,O.jsxs)(`p`,{className:`text-sm text-muted-foreground leading-relaxed italic mb-6`,children:[`"`,e.content,`"`]}),(0,O.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,O.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-primary/10 border border-primary/20 flex items-center justify-center`,children:(0,O.jsx)(`span`,{className:`text-xs text-primary font-serif`,children:e.author[0]})}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs text-foreground`,children:e.author}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground`,children:e.role})]}),(0,O.jsx)(`span`,{className:`ml-auto text-[10px] tracking-wider text-primary/40 border border-primary/20 px-2 py-0.5`,children:`Verified`})]})]})},e.id))})]})}),(0,O.jsxs)(`section`,{className:`py-24 px-6 max-w-3xl mx-auto`,children:[(0,O.jsxs)(pf,{className:`text-center mb-12`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`FAQ`}),(0,O.jsx)(`h2`,{className:`font-serif text-4xl sm:text-5xl text-foreground`,children:`Common Questions`})]}),(0,O.jsx)(pf,{children:df.map(e=>(0,O.jsx)(ff,{...e},e.q))})]}),(0,O.jsx)(`section`,{className:`py-32 px-6 text-center relative overflow-hidden`,style:{background:`radial-gradient(ellipse 70% 60% at 50% 50%, rgba(201,169,110,0.06) 0%, transparent 80%)`},children:(0,O.jsxs)(pf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-4 block`,children:`Begin Your Journey`}),(0,O.jsxs)(`h2`,{className:`font-serif text-4xl sm:text-6xl text-foreground mb-6 leading-tight`,children:[`An Exceptional Experience`,(0,O.jsx)(`br`,{}),(0,O.jsx)(`em`,{className:`text-primary not-italic`,children:`Awaits You`})]}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-base mb-10 max-w-xl mx-auto`,children:`Your inquiry is handled with absolute discretion. Our concierge team responds within 24 hours.`}),(0,O.jsx)(`button`,{onClick:()=>t(!0),className:`inline-block px-12 py-4 bg-primary text-background text-xs tracking-[0.3em] uppercase hover:bg-primary/90 transition-all duration-300`,children:`Submit Private Inquiry`})]})})]})}function gf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-40px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:24},animate:i?{opacity:1,y:0}:{},transition:{duration:.65,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}function _f(){let[e,t]=(0,C.useState)(`All`),[n,r]=(0,C.useState)(`All`),[i,a]=(0,C.useState)(``),[o,s]=(0,C.useState)([]),[c,l]=(0,C.useState)(!1),[u,d]=(0,C.useState)(``),f=of.filter(t=>{let r=e===`All`||t.city===e,a=n===`All`||t.interests.includes(n),o=!i||t.name.toLowerCase().includes(i.toLowerCase())||t.interests.some(e=>e.toLowerCase().includes(i.toLowerCase()));return r&&a&&o}),p=e=>s(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),m=[`from-amber-900/60 to-stone-900`,`from-rose-900/40 to-stone-900`,`from-emerald-900/40 to-stone-900`,`from-indigo-900/40 to-stone-900`,`from-amber-800/50 to-stone-900`,`from-purple-900/40 to-stone-900`,`from-teal-900/40 to-stone-900`,`from-orange-900/40 to-stone-900`];return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(uf,{open:c,onClose:()=>l(!1),companionName:u}),(0,O.jsx)(`div`,{className:`py-20 text-center border-b border-border bg-card`,children:(0,O.jsxs)(gf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] uppercase text-primary mb-3 block`,children:`Our Network`}),(0,O.jsx)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-4`,children:`Our Companions`}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-base max-w-xl mx-auto`,children:`Each companion is personally selected for their poise, intellect, and social grace. Find the perfect match for your occasion.`})]})}),(0,O.jsx)(`div`,{className:`sticky top-20 z-30 bg-background/95 border-b border-border py-4 px-6 backdrop-blur-sm`,children:(0,O.jsxs)(`div`,{className:`max-w-7xl mx-auto flex flex-col sm:flex-row gap-4 items-start sm:items-center`,children:[(0,O.jsxs)(`div`,{className:`relative flex-1 max-w-xs`,children:[(0,O.jsx)(dt,{size:14,className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`}),(0,O.jsx)(`input`,{value:i,onChange:e=>a(e.target.value),placeholder:`Search companions...`,className:`w-full pl-9 pr-4 py-2.5 bg-card border border-border text-sm text-foreground focus:outline-none focus:border-primary/40 placeholder:text-muted-foreground/50 transition-colors`})]}),(0,O.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,O.jsxs)(`select`,{value:e,onChange:e=>t(e.target.value),className:`bg-card border border-border text-sm text-muted-foreground px-3 py-2.5 focus:outline-none focus:border-primary/40 [color-scheme:dark]`,children:[(0,O.jsx)(`option`,{value:`All`,children:`All Cities`}),rf.map(e=>(0,O.jsx)(`option`,{value:e,children:e},e))]}),(0,O.jsxs)(`select`,{value:n,onChange:e=>r(e.target.value),className:`bg-card border border-border text-sm text-muted-foreground px-3 py-2.5 focus:outline-none focus:border-primary/40 [color-scheme:dark]`,children:[(0,O.jsx)(`option`,{value:`All`,children:`All Interests`}),af.map(e=>(0,O.jsx)(`option`,{value:e,children:e},e))]})]}),(0,O.jsxs)(`p`,{className:`text-xs text-muted-foreground ml-auto`,children:[f.length,` companions`]})]})}),(0,O.jsx)(`div`,{className:`max-w-7xl mx-auto px-6 py-16`,children:f.length===0?(0,O.jsxs)(`div`,{className:`py-32 text-center`,children:[(0,O.jsx)(`p`,{className:`font-serif text-2xl text-foreground mb-2`,children:`No companions found`}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Try adjusting your filters`})]}):(0,O.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6`,children:f.map((e,t)=>{let n=m[parseInt(e.id)%m.length],r=o.includes(e.id);return(0,O.jsx)(gf,{delay:t*.05,children:(0,O.jsxs)($.div,{whileHover:{y:-4},transition:{duration:.3},className:`bg-card border border-border overflow-hidden group`,children:[(0,O.jsxs)(`div`,{className:`relative h-60 bg-gradient-to-b ${n} flex items-center justify-center`,children:[(0,O.jsx)(`div`,{className:`w-20 h-20 rounded-full bg-primary/10 border border-primary/20 flex items-center justify-center`,children:(0,O.jsx)(`span`,{className:`font-serif text-2xl text-primary/60`,children:e.name.slice(0,2).toUpperCase()})}),(0,O.jsx)(`button`,{onClick:()=>p(e.id),className:`absolute top-3 right-3 p-1.5`,children:(0,O.jsx)(it,{size:15,fill:r?`hsl(var(--primary))`:`none`,className:`text-primary`})}),(0,O.jsxs)(`div`,{className:`absolute bottom-3 left-3 flex items-center gap-1.5`,children:[(0,O.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full`,style:{backgroundColor:e.availability===`Online`?`#4ade80`:`#6b7280`}}),(0,O.jsx)(`span`,{className:`text-xs text-white/60`,children:e.availability})]})]}),(0,O.jsxs)(`div`,{className:`p-5`,children:[(0,O.jsxs)(`div`,{className:`flex items-center justify-between mb-1`,children:[(0,O.jsx)(`h3`,{className:`font-serif text-xl`,children:e.name}),(0,O.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,O.jsx)(pt,{size:11,fill:`hsl(var(--primary))`,className:`text-primary`}),(0,O.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.rating})]})]}),(0,O.jsxs)(`p`,{className:`text-xs tracking-wider text-muted-foreground uppercase mb-2`,children:[e.city,` · `,e.age,` yrs`]}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground mb-3 line-clamp-2`,children:e.snippet}),(0,O.jsx)(`div`,{className:`flex flex-wrap gap-1 mb-4`,children:e.interests.slice(0,2).map(e=>(0,O.jsx)(`span`,{className:`text-[9px] tracking-widest uppercase px-2 py-0.5 border border-primary/20 text-primary/60`,children:e},e))}),(0,O.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,O.jsx)(`span`,{className:`text-sm text-primary`,children:e.pricing}),(0,O.jsxs)(`div`,{className:`flex gap-2`,children:[(0,O.jsx)(Me,{href:`/companions/${e.id}`,children:(0,O.jsx)(`span`,{className:`text-[10px] tracking-wider uppercase px-3 py-1.5 border border-border text-muted-foreground hover:text-foreground transition-colors cursor-pointer`,children:`View`})}),(0,O.jsx)(`button`,{onClick:()=>{d(e.name),l(!0)},className:`text-[10px] tracking-wider uppercase px-3 py-1.5 border border-primary/40 text-primary hover:bg-primary hover:text-background transition-all duration-300`,children:`Inquire`})]})]})]})]})},e.id)})})})]})}var vf=[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`],yf=[`10am`,`12pm`,`2pm`,`4pm`,`6pm`,`8pm`];function bf(){let{id:e}=we(),t=of.find(t=>t.id===e),[n,r]=(0,C.useState)(!1),[i,a]=(0,C.useState)(!1),[o,s]=(0,C.useState)(0),[c,l]=(0,C.useState)(!1),[u,d]=(0,C.useState)(!1);if(!t)return(0,O.jsxs)(`div`,{className:`pt-32 text-center`,children:[(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-4`,children:`Companion not found`}),(0,O.jsx)(Me,{href:`/companions`,children:(0,O.jsx)(`span`,{className:`text-primary text-sm cursor-pointer hover:underline`,children:`Back to Companions`})})]});let f=[`from-amber-900/60 via-stone-900 to-stone-950`,`from-rose-900/40 via-stone-900 to-stone-950`,`from-emerald-900/40 via-stone-900 to-stone-950`,`from-indigo-900/40 via-stone-900 to-stone-950`,`from-amber-800/50 via-stone-900 to-stone-950`,`from-purple-900/40 via-stone-900 to-stone-950`,`from-teal-900/40 via-stone-900 to-stone-950`,`from-orange-900/40 via-stone-900 to-stone-950`],p=f[parseInt(t.id)%f.length],m=t.gallery||[`/assets/download%20(2)-X5mWqbVt.jpeg`,`/assets/images-Da17w0eg.jpeg`,`/assets/download-BFn2SGgC.jpeg`,`/assets/download%20(1)-DjXIA9p6.jpeg`],h=Array.from({length:Math.max(6,m.length)},(e,t)=>m[t%m.length]),g=e=>{s(e),d(!1),l(!0)},_=()=>{l(!1),d(!1)},v=()=>{s(e=>(e-1+m.length)%m.length),d(!1)},y=()=>{s(e=>(e+1)%m.length),d(!1)},b={Mon:[`2pm`,`4pm`,`6pm`],Tue:[`10am`,`12pm`],Wed:[`4pm`,`6pm`,`8pm`],Thu:[`12pm`,`2pm`,`4pm`],Fri:[`6pm`,`8pm`],Sat:[`10am`,`12pm`,`2pm`,`4pm`,`6pm`],Sun:[`12pm`,`2pm`]};return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(uf,{open:i,onClose:()=>a(!1),companionName:t.name}),c&&(0,O.jsxs)(`div`,{className:`fixed inset-0 z-50 bg-black/95`,children:[(0,O.jsx)(`button`,{onClick:_,"aria-label":`Close image viewer`,className:`absolute right-4 top-4 z-10 p-3 text-white transition-colors hover:text-primary`,children:(0,O.jsx)(ht,{size:24})}),(0,O.jsx)(`button`,{onClick:()=>d(e=>!e),"aria-label":u?`Zoom out`:`Zoom in`,className:`absolute right-16 top-4 z-10 p-3 text-white transition-colors hover:text-primary`,children:u?(0,O.jsx)(_t,{size:24}):(0,O.jsx)(gt,{size:24})}),m.length>1&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`button`,{onClick:v,"aria-label":`Previous image`,className:`absolute left-4 top-1/2 z-10 -translate-y-1/2 p-3 text-white transition-colors hover:text-primary`,children:(0,O.jsx)(Ze,{size:34})}),(0,O.jsx)(`button`,{onClick:y,"aria-label":`Next image`,className:`absolute right-4 top-1/2 z-10 -translate-y-1/2 p-3 text-white transition-colors hover:text-primary`,children:(0,O.jsx)(Qe,{size:34})})]}),(0,O.jsx)(`div`,{className:`flex h-full w-full items-center justify-center overflow-auto p-6 sm:p-10`,children:(0,O.jsx)(`button`,{onClick:()=>d(e=>!e),className:`min-h-full min-w-full cursor-zoom-in`,"aria-label":u?`Zoom out image`:`Zoom in image`,children:(0,O.jsx)(`img`,{src:m[o],alt:`${t.name} enlarged image ${o+1}`,className:`mx-auto transition-transform duration-300 ${u?`max-w-none scale-125 cursor-zoom-out`:`max-h-[88vh] max-w-full cursor-zoom-in object-contain`}`})})}),(0,O.jsxs)(`div`,{className:`absolute bottom-4 left-1/2 -translate-x-1/2 bg-black/70 px-3 py-1 text-xs text-white`,children:[o+1,` / `,m.length]})]}),(0,O.jsx)(`div`,{className:`relative flex min-h-[calc(100vh-5rem)] bg-gradient-to-b ${p} py-8 lg:py-10`,children:(0,O.jsx)(`div`,{className:`mx-auto flex w-full max-w-7xl px-6 lg:px-8`,children:(0,O.jsxs)(`div`,{className:`relative w-full`,children:[(0,O.jsx)(`div`,{className:`absolute top-6 left-6`,children:(0,O.jsx)(Me,{href:`/companions`,children:(0,O.jsxs)(`span`,{className:`flex items-center gap-2 text-xs tracking-wider uppercase text-muted-foreground hover:text-primary transition-colors cursor-pointer`,children:[(0,O.jsx)(qe,{size:14}),`Back`]})})}),(0,O.jsx)(`div`,{className:`absolute top-6 right-6`,children:(0,O.jsx)(`button`,{onClick:()=>r(e=>!e),className:`p-2`,children:(0,O.jsx)(it,{size:20,fill:n?`hsl(var(--primary))`:`none`,className:`text-primary`})})}),(0,O.jsxs)(`div`,{className:`grid min-h-[calc(100vh-10rem)] gap-10 pt-12 lg:grid-cols-[minmax(0,1.08fr)_minmax(360px,0.92fr)] lg:items-center`,children:[(0,O.jsx)(`div`,{className:`grid h-[72vh] min-h-[560px] grid-cols-6 grid-rows-6 gap-3 border border-white/10 bg-black/20 p-3 lg:h-[calc(100vh-10rem)]`,children:h.slice(0,6).map((e,n)=>{let r=[`col-span-4 row-span-4`,`col-span-2 row-span-2`,`col-span-2 row-span-2`,`col-span-2 row-span-3`,`col-span-2 row-span-3`,`col-span-2 row-span-2`],i=n%m.length;return(0,O.jsxs)(`button`,{onClick:()=>g(i),"aria-label":`Open image ${i+1}`,className:`group relative overflow-hidden border transition-colors ${r[n]} ${i===o?`border-primary`:`border-white/15 hover:border-primary/60`}`,children:[(0,O.jsx)(`img`,{src:e,alt:`${t.name} collage image ${n+1}`,className:`h-full w-full object-cover transition-transform duration-500 group-hover:scale-105`}),i===o&&(0,O.jsx)(`span`,{className:`absolute bottom-2 right-2 bg-black/60 px-2 py-0.5 text-[10px] text-white`,children:i+1})]},`${e}-${n}`)})}),(0,O.jsxs)(`div`,{className:`space-y-8`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`w-2 h-2 rounded-full`,style:{backgroundColor:t.availability===`Online`?`#4ade80`:`#6b7280`}}),(0,O.jsx)(`span`,{className:`text-sm text-white/70`,children:t.availability})]}),(0,O.jsx)(`h1`,{className:`mb-3 font-serif text-5xl text-foreground lg:text-6xl`,children:t.name}),(0,O.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-2 text-base text-muted-foreground`,children:[(0,O.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,O.jsx)(ct,{size:14}),t.city]}),(0,O.jsxs)(`span`,{children:[`Age `,t.age]}),(0,O.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,O.jsx)(pt,{size:14,fill:`hsl(var(--primary))`,className:`text-primary`}),t.rating,` (`,t.reviews,` reviews)`]})]})]}),(0,O.jsxs)(`div`,{className:`border-y border-white/10 py-6`,children:[(0,O.jsx)(`span`,{className:`mb-3 block text-xs tracking-[0.25em] uppercase text-primary`,children:`About`}),(0,O.jsx)(`p`,{className:`text-base leading-8 text-muted-foreground`,children:t.bio})]}),(0,O.jsxs)(`div`,{className:`border border-white/10 bg-black/20 p-6`,children:[(0,O.jsx)(`p`,{className:`text-xs tracking-wider uppercase text-muted-foreground mb-1`,children:`Starting from`}),(0,O.jsx)(`p`,{className:`font-serif text-3xl text-primary mb-6`,children:t.pricing}),(0,O.jsx)(`button`,{onClick:()=>a(!0),className:`w-full py-4 bg-primary text-background text-xs tracking-[0.25em] uppercase hover:bg-primary/90 transition-colors mb-3`,children:`Booking Inquiry`}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground text-center leading-relaxed`,children:`Our concierge team will respond to your inquiry within 24 hours with complete discretion.`})]}),(0,O.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 text-xs sm:grid-cols-4 lg:grid-cols-2`,children:[(0,O.jsxs)(`div`,{className:`border border-white/10 p-4`,children:[(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`City`}),(0,O.jsx)(`p`,{className:`mt-1 text-foreground`,children:t.city})]}),(0,O.jsxs)(`div`,{className:`border border-white/10 p-4`,children:[(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`Status`}),(0,O.jsx)(`p`,{className:`mt-1 text-foreground`,children:t.availability})]}),(0,O.jsxs)(`div`,{className:`border border-white/10 p-4`,children:[(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`Reviews`}),(0,O.jsxs)(`p`,{className:`mt-1 text-foreground`,children:[t.reviews,` verified`]})]}),(0,O.jsxs)(`div`,{className:`border border-white/10 p-4`,children:[(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`Rating`}),(0,O.jsxs)(`p`,{className:`mt-1 flex items-center gap-1 text-foreground`,children:[(0,O.jsx)(pt,{size:10,fill:`hsl(var(--primary))`,className:`text-primary`}),t.rating]})]})]})]})]})]})})}),(0,O.jsxs)(`div`,{className:`mx-auto w-full max-w-7xl space-y-12 px-6 py-16 lg:px-8`,children:[(0,O.jsxs)(`div`,{className:`grid gap-10 lg:grid-cols-3`,children:[(0,O.jsxs)($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Interests`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-4`,children:`Interests & Passions`}),(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.interests.map(e=>(0,O.jsx)(`span`,{className:`px-4 py-1.5 border border-primary/30 text-sm text-primary/80`,children:e},e))})]}),(0,O.jsxs)($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Activities`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-4`,children:`Preferred Activities`}),(0,O.jsx)(`ul`,{className:`space-y-2`,children:t.activities.map(e=>(0,O.jsxs)(`li`,{className:`flex items-center gap-3 text-sm text-muted-foreground`,children:[(0,O.jsx)(Ke,{size:12,className:`text-primary shrink-0`}),e]},e))})]}),(0,O.jsxs)($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Languages`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-4`,children:`Languages Spoken`}),(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.languages.map(e=>(0,O.jsxs)(`span`,{className:`flex items-center gap-1.5 px-3 py-1.5 bg-muted border border-border text-sm text-foreground`,children:[(0,O.jsx)(at,{size:12,className:`text-primary`}),e]},e))})]})]}),(0,O.jsxs)(`div`,{className:`grid gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(420px,0.8fr)]`,children:[(0,O.jsxs)($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.25},children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Reviews`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-6`,children:`Client Reviews`}),(0,O.jsx)(`div`,{className:`space-y-4`,children:[{author:`Anonymous Client`,role:`Corporate Executive`,content:`An exceptional evening. Poised, intelligent, and utterly charming.`,rating:5},{author:`A. Sharma`,role:`Private Investor`,content:`Made the entire gala experience effortless. Would book again without hesitation.`,rating:5}].map((e,t)=>(0,O.jsxs)(`div`,{className:`p-6 border border-border`,children:[(0,O.jsx)(`div`,{className:`flex gap-0.5 mb-3`,children:Array.from({length:e.rating}).map((e,t)=>(0,O.jsx)(pt,{size:11,fill:`hsl(var(--primary))`,className:`text-primary`},t))}),(0,O.jsxs)(`p`,{className:`text-sm text-muted-foreground italic mb-4`,children:[`"`,e.content,`"`]}),(0,O.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs text-foreground`,children:e.author}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground`,children:e.role})]}),(0,O.jsx)(`span`,{className:`text-[10px] border border-primary/20 text-primary/50 px-2 py-0.5`,children:`Verified Booking`})]})]},t))})]}),(0,O.jsxs)($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Availability`}),(0,O.jsx)(`h2`,{className:`font-serif text-2xl text-foreground mb-6`,children:`This Week's Availability`}),(0,O.jsx)(`div`,{className:`overflow-x-auto`,children:(0,O.jsxs)(`table`,{className:`w-full text-xs border-collapse`,children:[(0,O.jsx)(`thead`,{children:(0,O.jsxs)(`tr`,{children:[(0,O.jsx)(`th`,{className:`text-left p-2 text-muted-foreground font-normal border-b border-border w-16`,children:`Time`}),vf.map(e=>(0,O.jsx)(`th`,{className:`p-2 text-muted-foreground font-normal border-b border-border text-center`,children:e},e))]})}),(0,O.jsx)(`tbody`,{children:yf.map(e=>(0,O.jsxs)(`tr`,{children:[(0,O.jsx)(`td`,{className:`p-2 text-muted-foreground border-b border-border/50`,children:e}),vf.map(t=>(0,O.jsx)(`td`,{className:`p-2 text-center border-b border-border/50`,children:(0,O.jsx)(`div`,{className:`w-2 h-2 rounded-full mx-auto ${(b[t]||[]).includes(e)?`bg-primary`:`bg-border`}`})},t))]},e))})]})}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground mt-2`,children:`Gold = available. Contact us to confirm and reserve.`})]})]})]})]})}function xf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-40px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:24},animate:i?{opacity:1,y:0}:{},transition:{duration:.65,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}var Sf=[{id:`dinner`,title:`Dinner Companion`,category:`Dining`,description:`Impeccable company for Michelin-starred dining, private culinary experiences, or intimate restaurant evenings. Our companions excel in engaging conversation, culinary appreciation, and sophisticated table etiquette.`,durations:[{label:`3 Hours`,price:`₹15,000`},{label:`5 Hours`,price:`₹22,000`}],features:[`Restaurant Selection Assistance`,`Chauffeur Coordination`,`Flawless Etiquette`,`Multilingual Conversation`,`Pre-event Briefing`],faqs:[{q:`Can I select a specific restaurant?`,a:`Absolutely. You may suggest any restaurant. Our companion can also recommend venues fitting your preferences and arrange reservations.`},{q:`Is advance booking required?`,a:`We recommend at least 48 hours notice to ensure the best match for your occasion.`}]},{id:`travel`,title:`Travel Companion`,category:`Travel`,description:`Discreet and cultured companionship for international or domestic travel. Ensuring your journey is seamless, stimulating, and utterly luxurious. From business-class flights to five-star resorts, your companion adapts effortlessly.`,durations:[{label:`Weekend (2 nights)`,price:`₹1,00,000`},{label:`Week-long`,price:`₹3,50,000`},{label:`Extended (Custom)`,price:`On Request`}],features:[`Itinerary Planning Assistance`,`Language & Cultural Guidance`,`VIP Access Coordination`,`24/7 Availability`,`Hotel Discretion Protocol`],faqs:[{q:`Does the companion arrange their own travel?`,a:`Travel and accommodation for the companion are to be arranged by the client, following our standard protocol provided upon booking.`},{q:`Is international travel available?`,a:`Yes. Our companions hold valid passports and are experienced with international travel. Select destinations only.`}]},{id:`event`,title:`Event Companion`,category:`Social Events`,description:`The perfect plus-one for galas, charity balls, film premieres, weddings, and high-society gatherings. Elegant, socially adept, and completely at ease in elite crowds.`,durations:[{label:`4 Hours`,price:`₹20,000`},{label:`Full Evening (7 hrs)`,price:`₹32,000`}],features:[`Red Carpet Ready Grooming`,`Social Navigation`,`Photography Etiquette`,`Guest Introduction Skills`,`After-party Availability`],faqs:[{q:`Will my companion know how to conduct themselves at formal events?`,a:`All our companions are trained in formal etiquette, social navigation, and public decorum. They are accustomed to high-profile environments.`}]},{id:`corporate`,title:`Corporate Event Partner`,category:`Professional`,description:`A polished professional to accompany you to business dinners, award ceremonies, board networking events, and international client entertainment. Reflects your high standards at every moment.`,durations:[{label:`Half Day (4 hrs)`,price:`₹18,000`},{label:`Full Day (8 hrs)`,price:`₹32,000`}],features:[`Business Acumen`,`Discreet Networking Support`,`Professional Grooming`,`Confidential Briefing Accepted`,`NDA Signing Available`],faqs:[{q:`Can the companion be briefed on my business context?`,a:`Yes. We offer confidential pre-event briefings. Your companion can be made aware of key business context, relevant names, and protocol requirements.`}]},{id:`movie`,title:`Movie & Entertainment Companion`,category:`Entertainment`,description:`Enjoy premieres, private screenings, theatre performances, stand-up shows, and live concerts with a companion who shares your cultural interests and brings genuine enthusiasm to every experience.`,durations:[{label:`3 Hours`,price:`₹12,000`},{label:`5 Hours`,price:`₹18,000`}],features:[`Cultural Appreciation`,`Flexible Scheduling`,`Post-event Dinner Optional`,`Private Screening Access`,`Concert & Theatre Etiquette`],faqs:[{q:`Can we attend multiple events in one booking?`,a:`Yes, multi-event evenings are available under extended duration packages. Please specify this in your inquiry.`}]},{id:`city`,title:`City Guide Companion`,category:`Exploration`,description:`Discover Mumbai, Delhi, Bangalore, and other cities through the eyes of a local connoisseur. From hidden culinary gems to exclusive art spaces, your companion curates an insider experience.`,durations:[{label:`Half Day (4 hrs)`,price:`₹14,000`},{label:`Full Day (8 hrs)`,price:`₹25,000`}],features:[`Insider City Knowledge`,`Hidden Venue Access`,`Curated Itinerary`,`Transport Coordination`,`Photography Assistance`],faqs:[{q:`Is this available in all cities you operate in?`,a:`Yes. We have local companions available across Mumbai, Delhi, Bangalore, Hyderabad, Pune, and Indore.`}]},{id:`weekend`,title:`Weekend Experience Partner`,category:`Lifestyle`,description:`Transform your weekend into a curated luxury experience. Spa retreats, hill stations, beach resorts, or city staycations — your companion ensures every moment is refined and memorable.`,durations:[{label:`1 Night / 2 Days`,price:`₹75,000`},{label:`2 Nights / 3 Days`,price:`₹1,25,000`}],features:[`Resort & Spa Access`,`Activity Planning`,`Personalized Itinerary`,`Meals Included`,`Complete Privacy Protocol`],faqs:[{q:`Can I request a specific destination?`,a:`Yes. We accept requests for specific destinations across India. Some exotic locations may require additional notice.`}]}];function Cf({q:e,a:t}){let[n,r]=(0,C.useState)(!1);return(0,O.jsxs)(`div`,{className:`border-b border-border/50`,children:[(0,O.jsxs)(`button`,{className:`w-full flex items-center justify-between py-3 text-left`,onClick:()=>r(e=>!e),children:[(0,O.jsx)(`span`,{className:`text-sm text-muted-foreground hover:text-foreground transition-colors`,children:e}),n?(0,O.jsx)($e,{size:14,className:`text-primary shrink-0`}):(0,O.jsx)(Xe,{size:14,className:`text-muted-foreground shrink-0`})]}),n&&(0,O.jsx)($.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:`auto`},className:`pb-3`,children:(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground leading-relaxed`,children:t})})]})}function wf(){let[e,t]=(0,C.useState)(!1),[n,r]=(0,C.useState)(null);return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(uf,{open:e,onClose:()=>t(!1)}),(0,O.jsx)(`div`,{className:`py-20 text-center border-b border-border bg-card`,children:(0,O.jsxs)(xf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] uppercase text-primary mb-3 block`,children:`What We Offer`}),(0,O.jsx)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-4`,children:`Our Services`}),(0,O.jsx)(`p`,{className:`text-muted-foreground max-w-xl mx-auto text-base`,children:`From an intimate dinner to a weekend retreat — every experience is curated to the highest standard.`})]})}),(0,O.jsx)(`div`,{className:`sticky top-20 z-30 bg-background/95 border-b border-border backdrop-blur-sm overflow-x-auto`,children:(0,O.jsx)(`div`,{className:`flex px-6 gap-0`,children:Sf.map(e=>(0,O.jsx)(`button`,{onClick:()=>document.getElementById(e.id)?.scrollIntoView({behavior:`smooth`,block:`start`}),className:`px-5 py-4 text-xs tracking-widest uppercase text-muted-foreground hover:text-primary transition-colors whitespace-nowrap shrink-0 border-b-2 border-transparent hover:border-primary/40`,children:e.category},e.id))})}),(0,O.jsx)(`div`,{className:`max-w-6xl mx-auto px-6 py-16 space-y-20`,children:Sf.map((e,n)=>(0,O.jsxs)(xf,{delay:.05,children:[(0,O.jsxs)(`div`,{id:e.id,className:`grid grid-cols-1 lg:grid-cols-2 gap-12 items-start scroll-mt-32`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:e.category}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl sm:text-4xl text-foreground mb-5`,children:e.title}),(0,O.jsx)(`p`,{className:`text-muted-foreground leading-relaxed mb-8`,children:e.description}),(0,O.jsx)(`ul`,{className:`space-y-2 mb-8`,children:e.features.map(e=>(0,O.jsxs)(`li`,{className:`flex items-center gap-3 text-sm text-muted-foreground`,children:[(0,O.jsx)(Ye,{size:13,className:`text-primary shrink-0`}),e]},e))}),e.faqs.length>0&&(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs tracking-wider uppercase text-primary mb-3`,children:`FAQ`}),e.faqs.map(e=>(0,O.jsx)(Cf,{...e},e.q))]})]}),(0,O.jsxs)(`div`,{className:`space-y-4`,children:[(0,O.jsx)(`p`,{className:`text-xs tracking-[0.25em] uppercase text-muted-foreground mb-4`,children:`Pricing & Durations`}),e.durations.map(e=>(0,O.jsxs)(`div`,{className:`flex items-center justify-between p-5 border border-border hover:border-primary/30 transition-colors`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm text-foreground mb-0.5`,children:e.label}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground tracking-wider uppercase`,children:`All-inclusive package`})]}),(0,O.jsx)(`p`,{className:`font-serif text-xl text-primary`,children:e.price})]},e.label)),(0,O.jsx)(`button`,{onClick:()=>t(!0),className:`w-full py-4 bg-primary text-background text-xs tracking-[0.25em] uppercase hover:bg-primary/90 transition-colors mt-4`,children:`Request This Service`})]})]}),n(0,O.jsxs)(Tf,{children:[(0,O.jsx)(`p`,{className:`font-serif text-4xl text-primary mb-1`,children:e}),(0,O.jsx)(`p`,{className:`text-xs tracking-[0.2em] uppercase text-muted-foreground`,children:t})]},t))})}),(0,O.jsxs)(`section`,{className:`max-w-7xl mx-auto px-6 py-20`,children:[(0,O.jsxs)(Tf,{className:`mb-12`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`Client Testimonials`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`What Our Clients Say`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`,children:Ef.map((e,t)=>(0,O.jsx)(Tf,{delay:t*.06,children:(0,O.jsxs)(`div`,{className:`p-7 border border-border hover:border-primary/20 transition-colors bg-card h-full flex flex-col`,children:[(0,O.jsxs)(`div`,{className:`flex items-start justify-between mb-4`,children:[(0,O.jsx)(`div`,{className:`flex gap-0.5`,children:Array.from({length:e.rating}).map((e,t)=>(0,O.jsx)(pt,{size:12,fill:`hsl(var(--primary))`,className:`text-primary`},t))}),e.verified&&(0,O.jsxs)(`div`,{className:`flex items-center gap-1 border border-primary/20 px-2 py-0.5`,children:[(0,O.jsx)(et,{size:10,className:`text-primary`}),(0,O.jsx)(`span`,{className:`text-[9px] tracking-wider uppercase text-primary/60`,children:`Verified`})]})]}),(0,O.jsxs)(`p`,{className:`text-sm text-muted-foreground leading-relaxed italic mb-6 flex-1`,children:[`"`,e.content,`"`]}),(0,O.jsxs)(`div`,{className:`flex items-end justify-between mt-auto pt-4 border-t border-border/50`,children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,O.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-primary/10 border border-primary/20 flex items-center justify-center`,children:(0,O.jsx)(`span`,{className:`text-xs text-primary font-serif`,children:e.author[0]})}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-xs text-foreground`,children:e.author}),(0,O.jsx)(`p`,{className:`text-[10px] text-muted-foreground`,children:e.role})]})]}),(0,O.jsxs)(`div`,{className:`text-right`,children:[(0,O.jsx)(`p`,{className:`text-[9px] text-muted-foreground/60 mb-0.5`,children:e.service}),(0,O.jsx)(`p`,{className:`text-[9px] text-muted-foreground/40`,children:e.date})]})]})]})},e.id))})]}),(0,O.jsx)(`section`,{className:`py-20 bg-card border-y border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-5xl mx-auto px-6`,children:[(0,O.jsxs)(Tf,{className:`mb-12`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`Experience Stories`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`Curated Moments`})]}),(0,O.jsx)(`div`,{className:`space-y-px bg-border`,children:Df.map((e,t)=>(0,O.jsx)(Tf,{delay:t*.1,children:(0,O.jsxs)(`div`,{className:`bg-card p-10`,children:[(0,O.jsx)(`div`,{className:`flex items-start justify-between mb-4`,children:(0,O.jsxs)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary`,children:[e.companion,` · `,e.city]})}),(0,O.jsx)(`h3`,{className:`font-serif text-2xl text-foreground mb-4`,children:e.title}),(0,O.jsx)(`p`,{className:`text-muted-foreground leading-relaxed`,children:e.excerpt})]})},e.title))})]})}),(0,O.jsx)(`section`,{className:`py-24 text-center px-6`,children:(0,O.jsxs)(Tf,{children:[(0,O.jsx)(`h2`,{className:`font-serif text-4xl text-foreground mb-4`,children:`Add Your Own Experience`}),(0,O.jsx)(`p`,{className:`text-muted-foreground mb-8 max-w-md mx-auto text-sm`,children:`After your first engagement, our team will invite you to share your experience confidentially.`}),(0,O.jsx)(`a`,{href:`/contact`,className:`inline-block px-10 py-4 border border-primary/40 text-primary text-xs tracking-[0.3em] uppercase hover:bg-primary hover:text-background transition-all duration-300`,children:`Book Your First Experience`})]})})]})}function kf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-40px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:24},animate:i?{opacity:1,y:0}:{},transition:{duration:.65,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}var Af=[{icon:mt,title:`Identity Verification`,desc:`Every companion undergoes a multi-step identity verification process, including government-issued ID confirmation, a personal interview with our concierge team, and professional background assessment. We accept no exceptions.`},{icon:ot,title:`End-to-End Privacy`,desc:`All client information — name, contact details, booking history — is stored on encrypted servers accessible only to senior concierge staff. We never share client data with third parties under any circumstances.`},{icon:nt,title:`Absolute Confidentiality`,desc:`Both clients and companions are bound by comprehensive non-disclosure agreements. What happens during your engagement remains entirely private. Our team discusses no client details internally beyond what is necessary for service delivery.`},{icon:rt,title:`Legal Compliance`,desc:`Elite Companions operates strictly within all applicable Indian laws. All services offered are social and professional in nature. We do not facilitate, encourage, or tolerate any activity outside these boundaries.`},{icon:ut,title:`Secure Communication`,desc:`Initial inquiries are handled via our encrypted contact form or WhatsApp with end-to-end encryption. Ongoing communication uses secure channels. We never discuss sensitive matters over unencrypted email.`},{icon:ft,title:`Conduct Guidelines`,desc:`All companions adhere to a strict code of professional conduct. Any client behaviour that is disrespectful, inappropriate, or outside agreed parameters results in immediate termination of service and potential restriction from future bookings.`}],jf=[{step:`01`,title:`Application`,desc:`Potential companions submit a detailed application. Only a fraction are invited to proceed.`},{step:`02`,title:`Identity Verification`,desc:`Government-issued ID is verified through a secure third-party service. Details are never retained.`},{step:`03`,title:`Personal Interview`,desc:`A senior member of our team conducts an in-person interview assessing social poise, intellect, and character.`},{step:`04`,title:`Background Review`,desc:`A thorough professional and personal background assessment is completed by an independent agency.`},{step:`05`,title:`NDA & Agreement`,desc:`Accepted companions sign comprehensive NDAs and service agreements before joining our network.`},{step:`06`,title:`Ongoing Monitoring`,desc:`Client feedback is monitored continuously. Any concerns result in immediate internal review.`}];function Mf(){return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(`div`,{className:`py-20 text-center border-b border-border bg-card`,children:(0,O.jsxs)(kf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] uppercase text-primary mb-3 block`,children:`Our Commitment`}),(0,O.jsx)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-4`,children:`Safety & Verification`}),(0,O.jsx)(`p`,{className:`text-muted-foreground max-w-xl mx-auto text-base`,children:`Safety, privacy, and dignity are not features — they are the foundation upon which every engagement is built.`})]})}),(0,O.jsxs)(`section`,{className:`max-w-7xl mx-auto px-6 py-20`,children:[(0,O.jsxs)(kf,{className:`mb-12`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`Our Principles`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`Six Pillars of Trust`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`,children:Af.map(({icon:e,title:t,desc:n},r)=>(0,O.jsx)(kf,{delay:r*.07,children:(0,O.jsxs)(`div`,{className:`p-8 border border-border hover:border-primary/25 transition-colors h-full`,children:[(0,O.jsx)(e,{size:20,className:`text-primary mb-5`}),(0,O.jsx)(`h3`,{className:`font-serif text-xl text-foreground mb-3`,children:t}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:n})]})},t))})]}),(0,O.jsx)(`section`,{className:`py-20 bg-card border-y border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-5xl mx-auto px-6`,children:[(0,O.jsxs)(kf,{className:`mb-14`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`The Process`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`Companion Verification`}),(0,O.jsx)(`p`,{className:`text-muted-foreground mt-3 max-w-lg text-sm`,children:`Every companion you encounter has completed our rigorous six-stage verification process. There are no exceptions.`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-px bg-border`,children:jf.map((e,t)=>(0,O.jsx)(kf,{delay:t*.07,children:(0,O.jsxs)(`div`,{className:`bg-card p-8`,children:[(0,O.jsx)(`p`,{className:`font-serif text-4xl text-primary/20 mb-4`,children:e.step}),(0,O.jsx)(`h3`,{className:`text-sm font-medium text-foreground mb-2 tracking-wide`,children:e.title}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground leading-relaxed`,children:e.desc})]})},e.step))})]})}),(0,O.jsxs)(`section`,{className:`max-w-3xl mx-auto px-6 py-20`,children:[(0,O.jsxs)(kf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Privacy`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-8`,children:`Our Privacy Commitment`})]}),(0,O.jsxs)(kf,{delay:.1,className:`space-y-6 text-sm text-muted-foreground leading-relaxed`,children:[(0,O.jsx)(`p`,{children:`Elite Companions is committed to the absolute protection of client and companion privacy. We collect only the information necessary to facilitate your inquiry and booking. No data is ever sold, shared, or disclosed to third parties without explicit legal obligation.`}),(0,O.jsx)(`p`,{children:`All client records are stored on encrypted, access-restricted servers located within compliant data centres. Records are purged after a defined retention period unless you request otherwise. You may request deletion of your data at any time by contacting our privacy officer.`}),(0,O.jsx)(`p`,{children:`Our companion network members are bound by comprehensive non-disclosure agreements that explicitly prohibit discussion of client details, identities, booking specifics, or any information arising from an engagement.`}),(0,O.jsx)(`p`,{children:`We do not maintain photographs of clients, and our internal records use anonymised reference codes rather than identifying information wherever operationally possible.`})]})]}),(0,O.jsx)(`section`,{className:`py-20 bg-card border-t border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-3xl mx-auto px-6`,children:[(0,O.jsxs)(kf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Standards`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-8`,children:`Respect & Conduct Guidelines`})]}),(0,O.jsx)(kf,{delay:.1,className:`space-y-4`,children:[`All interactions must remain within the professional and social scope agreed upon at booking.`,`Companions reserve the right to terminate any engagement if they feel unsafe, disrespected, or if the client's conduct falls outside agreed parameters.`,`Physical contact beyond socially appropriate norms is strictly prohibited and constitutes grounds for immediate service termination.`,`Any attempt to coerce, pressure, or engage a companion beyond their stated professional role will result in permanent account restriction.`,`Clients are expected to treat companions with the same respect they would accord any professional peer or colleague.`,`All communications with companions prior to an engagement must be conducted through our platform to ensure safety and quality.`].map((e,t)=>(0,O.jsxs)(`div`,{className:`flex items-start gap-4 p-5 border border-border`,children:[(0,O.jsx)(ft,{size:14,className:`text-primary mt-0.5 shrink-0`}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:e})]},t))})]})})]})}function Nf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-40px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:24},animate:i?{opacity:1,y:0}:{},transition:{duration:.65,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}var Pf=[{title:`Discretion`,desc:`Privacy is not a feature we offer — it is the culture we live by. Every team member, companion, and process is designed around absolute confidentiality.`},{title:`Excellence`,desc:`We do not compromise on quality. Every companion, every engagement, every interaction is held to the standard of a five-star hospitality experience.`},{title:`Dignity`,desc:`We treat every individual in our ecosystem — client and companion alike — with genuine respect. Our service exists to elevate human connection, never to diminish it.`},{title:`Authenticity`,desc:`We believe meaningful connection requires genuine presence. Our companions are selected for their real intellect, warmth, and social capability — never for performance.`}],Ff=[{name:`Priya Vasan`,role:`Founder & Managing Director`,bio:`A former hospitality executive with 15 years across luxury hotel brands in Europe and Asia, Priya founded Elite Companions to bring the same standard of personal service to social concierge.`},{name:`Karan Mehra`,role:`Head of Companion Relations`,bio:`Karan oversees the verification, training, and welfare of our companion network. His background in organisational psychology ensures every companion is prepared and supported.`},{name:`Ananya Rao`,role:`Client Experience Director`,bio:`Ananya manages the client journey from first inquiry to post-engagement feedback. Her obsessive attention to detail ensures no expectation goes unmet.`}];function If(){return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(`div`,{className:`py-24 border-b border-border bg-card`,children:(0,O.jsx)(`div`,{className:`max-w-4xl mx-auto px-6`,children:(0,O.jsxs)(Nf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] uppercase text-primary mb-3 block`,children:`Our Story`}),(0,O.jsxs)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-8 leading-tight`,children:[`We Believe in the Power`,(0,O.jsx)(`br`,{}),(0,O.jsx)(`em`,{className:`text-primary not-italic`,children:`of Genuine Connection`})]}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-lg leading-relaxed max-w-2xl`,children:`Elite Companions was founded on a simple, ambitious belief: that the finest experiences in life are shared ones. India's most accomplished individuals deserve company that matches their sophistication — and the agency to access it with complete confidence.`})]})})}),(0,O.jsx)(`section`,{className:`py-24`,children:(0,O.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6 grid grid-cols-1 md:grid-cols-2 gap-16 items-center`,children:[(0,O.jsx)(Nf,{children:(0,O.jsx)(`div`,{className:`aspect-[4/5] bg-gradient-to-b from-amber-900/30 to-stone-950 border border-border flex items-center justify-center`,children:(0,O.jsx)(`span`,{className:`font-serif text-8xl text-primary/10`,children:`EC`})})}),(0,O.jsxs)(Nf,{delay:.1,className:`space-y-6 text-muted-foreground leading-relaxed text-sm`,children:[(0,O.jsx)(`p`,{children:`Elite Companions was established in 2020 in Mumbai, born from a recognition that India's growing community of high-achieving professionals lacked a truly world-class social concierge option.`}),(0,O.jsx)(`p`,{children:`Our founder, a veteran of luxury hospitality across London, Singapore, and Dubai, observed that the same executives who commanded boardrooms and travelled first-class often attended important social occasions alone — not by choice, but by circumstance.`}),(0,O.jsx)(`p`,{children:`The gap between demand and a truly premium offering was unmistakable. And so Elite Companions was built — not as an agency, but as an institution. One that could stand alongside the finest concierge services in the world.`}),(0,O.jsx)(`p`,{children:`Today, we operate across six major Indian cities with a curated network of over 500 verified companions, serving a confidential clientele that includes executives, diplomats, industrialists, and creative leaders.`})]})]})}),(0,O.jsx)(`section`,{className:`py-24 bg-card border-y border-border`,children:(0,O.jsx)(`div`,{className:`max-w-4xl mx-auto px-6 text-center`,children:(0,O.jsxs)(Nf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-4 block`,children:`Mission`}),(0,O.jsx)(`blockquote`,{className:`font-serif text-3xl sm:text-4xl text-foreground leading-tight max-w-3xl mx-auto`,children:`"To make exceptional companionship accessible to those who deserve it — with the discretion, professionalism, and care that every human encounter deserves."`})]})})}),(0,O.jsx)(`section`,{className:`py-24`,children:(0,O.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6`,children:[(0,O.jsxs)(Nf,{className:`mb-14`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`What We Stand For`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`Our Core Values`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-px bg-border`,children:Pf.map(({title:e,desc:t},n)=>(0,O.jsx)(Nf,{delay:n*.08,children:(0,O.jsxs)(`div`,{className:`bg-background p-10`,children:[(0,O.jsx)(`div`,{className:`w-6 h-px bg-primary mb-6`}),(0,O.jsx)(`h3`,{className:`font-serif text-2xl text-foreground mb-3`,children:e}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:t})]})},e))})]})}),(0,O.jsx)(`section`,{className:`py-24 bg-card border-y border-border`,children:(0,O.jsxs)(`div`,{className:`max-w-4xl mx-auto px-6`,children:[(0,O.jsxs)(Nf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Standards`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-8`,children:`Our Professional Standards`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-8`,children:[{num:`01`,title:`Curated Network Only`,desc:`We never work with open directories or public listings. Every companion is personally known to our team.`},{num:`02`,title:`Service-First Culture`,desc:`Our concierge team operates 7 days a week. Client needs are responded to within hours, not days.`},{num:`03`,title:`Continuous Feedback`,desc:`After every engagement, both parties are invited to provide confidential feedback. Quality is maintained through accountability.`}].map(({num:e,title:t,desc:n})=>(0,O.jsx)(Nf,{delay:.08,children:(0,O.jsxs)(`div`,{className:`space-y-3`,children:[(0,O.jsx)(`p`,{className:`font-serif text-4xl text-primary/20`,children:e}),(0,O.jsx)(`h3`,{className:`text-sm font-medium text-foreground tracking-wide`,children:t}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:n})]})},e))})]})}),(0,O.jsx)(`section`,{className:`py-24`,children:(0,O.jsxs)(`div`,{className:`max-w-5xl mx-auto px-6`,children:[(0,O.jsxs)(Nf,{className:`mb-14`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-2 block`,children:`The Team`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground`,children:`Leadership`})]}),(0,O.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-8`,children:Ff.map(({name:e,role:t,bio:n},r)=>(0,O.jsx)(Nf,{delay:r*.08,children:(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`div`,{className:`aspect-square bg-gradient-to-b from-amber-900/20 to-stone-950 border border-border flex items-center justify-center mb-5`,children:(0,O.jsx)(`span`,{className:`font-serif text-5xl text-primary/15`,children:e[0]})}),(0,O.jsx)(`h3`,{className:`font-serif text-xl text-foreground mb-0.5`,children:e}),(0,O.jsx)(`p`,{className:`text-xs tracking-wider uppercase text-primary mb-3`,children:t}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground leading-relaxed`,children:n})]})},e))})]})})]})}function Lf({children:e,delay:t=0,className:n=``}){let r=(0,C.useRef)(null),i=Hd(r,{once:!0,margin:`-40px`});return(0,O.jsx)($.div,{ref:r,initial:{opacity:0,y:24},animate:i?{opacity:1,y:0}:{},transition:{duration:.65,delay:t,ease:[.22,1,.36,1]},className:n,children:e})}var Rf=[{city:`Mumbai`,email:`mumbai@elitecompanions.in`,whatsapp:`+91 98200 00001`},{city:`Delhi`,email:`delhi@elitecompanions.in`,whatsapp:`+91 98100 00001`},{city:`Bangalore`,email:`bangalore@elitecompanions.in`,whatsapp:`+91 98400 00001`},{city:`Hyderabad`,email:`hyderabad@elitecompanions.in`,whatsapp:`+91 98500 00001`},{city:`Pune`,email:`pune@elitecompanions.in`,whatsapp:`+91 98600 00001`},{city:`Indore`,email:`indore@elitecompanions.in`,whatsapp:`+91 98700 00001`}];function zf(){let[e,t]=(0,C.useState)(!1);return(0,O.jsxs)(`div`,{className:`pt-20 min-h-screen`,children:[(0,O.jsx)(`div`,{className:`py-20 text-center border-b border-border bg-card`,children:(0,O.jsxs)(Lf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.35em] uppercase text-primary mb-3 block`,children:`Get in Touch`}),(0,O.jsx)(`h1`,{className:`font-serif text-5xl sm:text-6xl text-foreground mb-4`,children:`Contact Us`}),(0,O.jsx)(`p`,{className:`text-muted-foreground max-w-xl mx-auto text-base`,children:`Every inquiry is handled personally by our concierge team. We respond within 24 hours with complete discretion.`})]})}),(0,O.jsxs)(`div`,{className:`max-w-6xl mx-auto px-6 py-20 grid grid-cols-1 lg:grid-cols-2 gap-16`,children:[(0,O.jsxs)(Lf,{children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Private Inquiry`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-8`,children:`Send an Inquiry`}),e?(0,O.jsxs)(`div`,{className:`py-16 text-center border border-primary/20 bg-card`,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.3em] uppercase text-primary mb-3 block`,children:`Received`}),(0,O.jsx)(`h3`,{className:`font-serif text-3xl text-foreground mb-4`,children:`Thank You`}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm max-w-sm mx-auto leading-relaxed`,children:`Your inquiry has been received. A member of our concierge team will contact you personally within 24 hours.`})]}):(0,O.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),t(!0)},className:`space-y-5`,children:[(0,O.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`First Name`}),(0,O.jsx)(`input`,{required:!0,placeholder:`Your name`,className:`w-full bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors placeholder:text-muted-foreground/40`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`City`}),(0,O.jsxs)(`select`,{className:`w-full bg-muted border border-border text-muted-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors [color-scheme:dark]`,children:[(0,O.jsx)(`option`,{value:``,children:`Select city`}),Rf.map(e=>(0,O.jsx)(`option`,{value:e.city,children:e.city},e.city))]})]})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`Email Address`}),(0,O.jsx)(`input`,{required:!0,type:`email`,placeholder:`your@email.com`,className:`w-full bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors placeholder:text-muted-foreground/40`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`WhatsApp Number (Optional)`}),(0,O.jsx)(`input`,{type:`tel`,placeholder:`+91 98XXX XXXXX`,className:`w-full bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors placeholder:text-muted-foreground/40`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`Type of Experience`}),(0,O.jsxs)(`select`,{className:`w-full bg-muted border border-border text-muted-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors [color-scheme:dark]`,children:[(0,O.jsx)(`option`,{value:``,children:`Select a service`}),[`Dinner Companion`,`Travel Companion`,`Event Companion`,`Corporate Event Partner`,`Movie & Entertainment`,`City Guide`,`Weekend Experience`].map(e=>(0,O.jsx)(`option`,{value:e,children:e},e))]})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`Preferred Date`}),(0,O.jsx)(`input`,{type:`date`,className:`w-full bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors [color-scheme:dark]`})]}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`label`,{className:`text-sm tracking-widest uppercase text-muted-foreground block mb-1.5`,children:`Your Message`}),(0,O.jsx)(`textarea`,{required:!0,rows:4,placeholder:`Please describe the occasion, your preferences, and any special requirements...`,className:`w-full bg-muted border border-border text-foreground px-4 py-3 text-base focus:outline-none focus:border-primary/40 transition-colors resize-none placeholder:text-muted-foreground/40`})]}),(0,O.jsx)(`button`,{type:`submit`,className:`w-full py-4 bg-primary text-background text-xs tracking-[0.3em] uppercase hover:bg-primary/90 transition-colors`,children:`Submit Inquiry`}),(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground/50 text-center leading-relaxed`,children:`All submissions are handled with complete confidentiality by our senior concierge team.`})]})]}),(0,O.jsxs)(`div`,{className:`space-y-12`,children:[(0,O.jsxs)(Lf,{delay:.1,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-3 block`,children:`Direct Contact`}),(0,O.jsx)(`h2`,{className:`font-serif text-3xl text-foreground mb-8`,children:`Reach Us Directly`}),(0,O.jsxs)(`div`,{className:`space-y-6`,children:[(0,O.jsxs)(`div`,{className:`flex items-start gap-4 p-6 border border-border`,children:[(0,O.jsx)(ut,{size:18,className:`text-primary mt-0.5 shrink-0`}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm font-medium text-foreground mb-1`,children:`WhatsApp`}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground mb-2`,children:`Preferred for urgent inquiries. Encrypted, discreet.`}),(0,O.jsx)(`a`,{href:`https://wa.me/919820000000`,className:`text-sm text-primary hover:underline`,children:`+91 98200 00000 (Main Line)`})]})]}),(0,O.jsxs)(`div`,{className:`flex items-start gap-4 p-6 border border-border`,children:[(0,O.jsx)(st,{size:18,className:`text-primary mt-0.5 shrink-0`}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm font-medium text-foreground mb-1`,children:`Email`}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground mb-2`,children:`For detailed inquiries and documentation.`}),(0,O.jsx)(`a`,{href:`mailto:concierge@elitecompanions.in`,className:`text-sm text-primary hover:underline`,children:`concierge@elitecompanions.in`})]})]}),(0,O.jsxs)(`div`,{className:`flex items-start gap-4 p-6 border border-border`,children:[(0,O.jsx)(tt,{size:18,className:`text-primary mt-0.5 shrink-0`}),(0,O.jsxs)(`div`,{children:[(0,O.jsx)(`p`,{className:`text-sm font-medium text-foreground mb-1`,children:`Response Time`}),(0,O.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`All inquiries responded to within 24 hours. Urgent matters within 2 hours during business hours (10am–10pm IST, 7 days).`})]})]})]})]}),(0,O.jsxs)(Lf,{delay:.15,children:[(0,O.jsx)(`span`,{className:`text-xs tracking-[0.25em] uppercase text-primary mb-4 block`,children:`City-Specific Support`}),(0,O.jsx)(`div`,{className:`space-y-3`,children:Rf.map(({city:e,email:t,whatsapp:n})=>(0,O.jsxs)(`div`,{className:`flex items-center justify-between py-3 border-b border-border/50`,children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,O.jsx)(ct,{size:12,className:`text-primary shrink-0`}),(0,O.jsx)(`span`,{className:`text-sm text-foreground`,children:e})]}),(0,O.jsx)(`div`,{className:`text-right`,children:(0,O.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})})]},e))})]})]})]})]})}function Bf(){return(0,O.jsxs)(`div`,{className:`min-h-[100dvh] flex flex-col w-full bg-background text-foreground`,children:[(0,O.jsx)(Wd,{}),(0,O.jsx)(`main`,{className:`flex-1 w-full flex flex-col`,children:(0,O.jsxs)(Pe,{children:[(0,O.jsx)(je,{path:`/`,component:hf}),(0,O.jsx)(je,{path:`/companions`,component:_f}),(0,O.jsx)(je,{path:`/companions/:id`,component:bf}),(0,O.jsx)(je,{path:`/services`,component:wf}),(0,O.jsx)(je,{path:`/reviews`,component:Of}),(0,O.jsx)(je,{path:`/safety`,component:Mf}),(0,O.jsx)(je,{path:`/about`,component:If}),(0,O.jsx)(je,{path:`/contact`,component:zf}),(0,O.jsx)(je,{component:Ie})]})}),(0,O.jsx)(Kd,{})]})}function Vf(){return(0,O.jsx)(Oe,{base:`/`.replace(/\/$/,``),children:(0,O.jsx)(Bf,{})})}(0,y.createRoot)(document.getElementById(`root`)).render((0,O.jsx)(Vf,{}));