From 51b733a683573342559302b4b5333a47c9f8a35f Mon Sep 17 00:00:00 2001 From: hardik Date: Mon, 29 Sep 2025 17:58:29 +0530 Subject: [PATCH] changed docker --- Dockerfile | 2 +- dist/assets/index-DQSe76my.js | 258 ++++++++++++++++++++++++++++++++++ dist/index.html | 15 ++ vite.config.ts | 5 +- 4 files changed, 276 insertions(+), 4 deletions(-) create mode 100644 dist/assets/index-DQSe76my.js create mode 100644 dist/index.html diff --git a/Dockerfile b/Dockerfile index 750214ef..91b470a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ WORKDIR /app RUN npm install -g serve # Copy build output from builder -COPY --from=builder /app/build . +COPY --from=builder /app/dist . EXPOSE 3000 CMD ["serve", "-s", ".", "-l", "3000"] \ No newline at end of file diff --git a/dist/assets/index-DQSe76my.js b/dist/assets/index-DQSe76my.js new file mode 100644 index 00000000..8adb1fc7 --- /dev/null +++ b/dist/assets/index-DQSe76my.js @@ -0,0 +1,258 @@ +function n1(t,r){for(var i=0;is[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();function Wg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vc={exports:{}},xo={},Fc={exports:{}},Ne={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fh;function r1(){if(Fh)return Ne;Fh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,k={};function N(R,B,oe){this.props=R,this.context=B,this.refs=k,this.updater=oe||b}N.prototype.isReactComponent={},N.prototype.setState=function(R,B){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,B,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function P(){}P.prototype=N.prototype;function A(R,B,oe){this.props=R,this.context=B,this.refs=k,this.updater=oe||b}var M=A.prototype=new P;M.constructor=A,T(M,N.prototype),M.isPureReactComponent=!0;var O=Array.isArray,V=Object.prototype.hasOwnProperty,U={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function F(R,B,oe){var ae,Se={},be=null,G=null;if(B!=null)for(ae in B.ref!==void 0&&(G=B.ref),B.key!==void 0&&(be=""+B.key),B)V.call(B,ae)&&!z.hasOwnProperty(ae)&&(Se[ae]=B[ae]);var ue=arguments.length-2;if(ue===1)Se.children=oe;else if(1>>1,B=I[R];if(0>>1;Rl(Se,Y))bel(G,Se)?(I[R]=G,I[be]=Y,R=be):(I[R]=Se,I[ae]=Y,R=ae);else if(bel(G,Y))I[R]=G,I[be]=Y,R=be;else break e}}return Q}function l(I,Q){var Y=I.sortIndex-Q.sortIndex;return Y!==0?Y:I.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,p=c.now();t.unstable_now=function(){return c.now()-p}}var m=[],g=[],y=1,v=null,w=3,b=!1,T=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(I){for(var Q=i(g);Q!==null;){if(Q.callback===null)s(g);else if(Q.startTime<=I)s(g),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=i(g)}}function O(I){if(k=!1,M(I),!T)if(i(m)!==null)T=!0,se(V);else{var Q=i(g);Q!==null&&q(O,Q.startTime-I)}}function V(I,Q){T=!1,k&&(k=!1,P(F),F=-1),b=!0;var Y=w;try{for(M(Q),v=i(m);v!==null&&(!(v.expirationTime>Q)||I&&!ye());){var R=v.callback;if(typeof R=="function"){v.callback=null,w=v.priorityLevel;var B=R(v.expirationTime<=Q);Q=t.unstable_now(),typeof B=="function"?v.callback=B:v===i(m)&&s(m),M(Q)}else s(m);v=i(m)}if(v!==null)var oe=!0;else{var ae=i(g);ae!==null&&q(O,ae.startTime-Q),oe=!1}return oe}finally{v=null,w=Y,b=!1}}var U=!1,z=null,F=-1,J=5,ce=-1;function ye(){return!(t.unstable_now()-ceI||125R?(I.sortIndex=Y,r(g,I),i(m)===null&&I===i(g)&&(k?(P(F),F=-1):k=!0,q(O,Y-R))):(I.sortIndex=B,r(m,I),T||b||(T=!0,se(V))),I},t.unstable_shouldYield=ye,t.unstable_wrapCallback=function(I){var Q=w;return function(){var Y=w;w=Q;try{return I.apply(this,arguments)}finally{w=Y}}}})(Hc)),Hc}var Wh;function a1(){return Wh||(Wh=1,Bc.exports=s1()),Bc.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var $h;function l1(){if($h)return kt;$h=1;var t=Zu(),r=a1();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},v={};function w(e){return m.call(v,e)?!0:m.call(y,e)?!1:g.test(e)?v[e]=!0:(y[e]=!0,!1)}function b(e,n,o,a){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,n,o,a){if(n===null||typeof n>"u"||b(e,n,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function k(e,n,o,a,d,h,x){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=h,this.removeEmptyString=x}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];N[n]=new k(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new k(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){N[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(P,A);N[n]=new k(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,n,o,a){var d=N.hasOwnProperty(n)?N[n]:null;(d!==null?d.type!==0:a||!(2C||d[x]!==h[C]){var j=` +`+d[x].replace(" at new "," at ");return e.displayName&&j.includes("")&&(j=j.replace("",e.displayName)),j}while(1<=x&&0<=C);break}}}finally{oe=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?B(e):""}function Se(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return""}}function be(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case U:return"Portal";case J:return"Profiler";case F:return"StrictMode";case me:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ye:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case xe:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case we:return n=e.displayName||null,n!==null?n:be(e.type)||"Memo";case se:n=e._payload,e=e._init;try{return be(e(n))}catch{}}return null}function G(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(n);case 8:return n===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ke(e){var n=ve(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return d.call(this)},set:function(x){a=""+x,h.call(this,x)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Te(e){e._valueTracker||(e._valueTracker=ke(e))}function Re(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),a="";return e&&(a=ve(e)?e.checked?"true":"false":e.value),e=a,e!==o?(n.setValue(e),!0):!1}function nt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wt(e,n){var o=n.checked;return Y({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Ir(e,n){var o=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;o=ue(n.value!=null?n.value:o),e._wrapperState={initialChecked:a,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Dr(e,n){n=n.checked,n!=null&&M(e,"checked",n,!1)}function ar(e,n){Dr(e,n);var o=ue(n.value),a=n.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ga(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ga(e,n.type,ue(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Gd(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Ga(e,n,o){(n!=="number"||nt(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Ii=Array.isArray;function Lr(e,n,o,a){if(e=e.options,n){n={};for(var d=0;d"+n.valueOf().toString()+"",n=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Di(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Li={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sx=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(e){sx.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Li[n]=Li[e]})});function Jd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Li.hasOwnProperty(e)&&Li[e]?(""+n).trim():n+"px"}function ef(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var a=o.indexOf("--")===0,d=Jd(o,n[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,d):e[o]=d}}var ax=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qa(e,n){if(n){if(ax[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function qa(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Za=null;function Ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,_r=null,Or=null;function tf(e){if(e=ro(e)){if(typeof el!="function")throw Error(i(280));var n=e.stateNode;n&&(n=vs(n),el(e.stateNode,e.type,n))}}function nf(e){_r?Or?Or.push(e):Or=[e]:_r=e}function rf(){if(_r){var e=_r,n=Or;if(Or=_r=null,tf(e),n)for(e=0;e>>=0,e===0?32:31-(vx(e)/xx|0)|0}var es=64,ts=4194304;function Fi(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ns(e,n){var o=e.pendingLanes;if(o===0)return 0;var a=0,d=e.suspendedLanes,h=e.pingedLanes,x=o&268435455;if(x!==0){var C=x&~d;C!==0?a=Fi(C):(h&=x,h!==0&&(a=Fi(h)))}else x=o&~d,x!==0?a=Fi(x):h!==0&&(a=Fi(h));if(a===0)return 0;if(n!==0&&n!==a&&(n&d)===0&&(d=a&-a,h=n&-n,d>=h||d===16&&(h&4194240)!==0))return n;if((a&4)!==0&&(a|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0o;o++)n.push(e);return n}function zi(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$t(n),e[n]=o}function bx(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0=Yi),Mf=" ",If=!1;function Df(e,n){switch(e){case"keyup":return qx.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zr=!1;function Jx(e,n){switch(e){case"compositionend":return Lf(n);case"keypress":return n.which!==32?null:(If=!0,Mf);case"textInput":return e=n.data,e===Mf&&If?null:e;default:return null}}function ew(e,n){if(zr)return e==="compositionend"||!vl&&Df(e,n)?(e=Tf(),as=fl=In=null,zr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:o,offset:n-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Hf(o)}}function Wf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Wf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $f(){for(var e=window,n=nt();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=nt(e.document)}return n}function Sl(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function cw(e){var n=$f(),o=e.focusedElem,a=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Wf(o.ownerDocument.documentElement,o)){if(a!==null&&Sl(o)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,h=Math.min(a.start,d);a=a.end===void 0?h:Math.min(a.end,d),!e.extend&&h>a&&(d=a,a=h,h=d),d=Uf(o,h);var x=Uf(o,a);d&&x&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==x.node||e.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),e.removeAllRanges(),h>a?(e.addRange(n),e.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o=document.documentMode,Br=null,kl=null,Zi=null,bl=!1;function Kf(e,n,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;bl||Br==null||Br!==nt(a)||(a=Br,"selectionStart"in a&&Sl(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zi&&qi(Zi,a)||(Zi=a,a=ms(kl,"onSelect"),0Kr||(e.current=Ll[Kr],Ll[Kr]=null,Kr--)}function Me(e,n){Kr++,Ll[Kr]=e.current,e.current=n}var On={},at=_n(On),yt=_n(!1),ur=On;function Gr(e,n){var o=e.type.contextTypes;if(!o)return On;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var d={},h;for(h in o)d[h]=n[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=d),d}function vt(e){return e=e.childContextTypes,e!=null}function xs(){De(yt),De(at)}function ap(e,n,o){if(at.current!==On)throw Error(i(168));Me(at,n),Me(yt,o)}function lp(e,n,o){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var d in a)if(!(d in n))throw Error(i(108,G(e)||"Unknown",d));return Y({},o,a)}function ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,ur=at.current,Me(at,e),Me(yt,yt.current),!0}function cp(e,n,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=lp(e,n,ur),a.__reactInternalMemoizedMergedChildContext=e,De(yt),De(at),Me(at,e)):De(yt),Me(yt,o)}var yn=null,Ss=!1,_l=!1;function up(e){yn===null?yn=[e]:yn.push(e)}function Sw(e){Ss=!0,up(e)}function Vn(){if(!_l&&yn!==null){_l=!0;var e=0,n=Ae;try{var o=yn;for(Ae=1;e>=x,d-=x,vn=1<<32-$t(n)+d|o<ge?(tt=fe,fe=null):tt=fe.sibling;var Pe=W(D,fe,L[ge],X);if(Pe===null){fe===null&&(fe=tt);break}e&&fe&&Pe.alternate===null&&n(D,fe),E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe,fe=tt}if(ge===L.length)return o(D,fe),Le&&fr(D,ge),le;if(fe===null){for(;gege?(tt=fe,fe=null):tt=fe.sibling;var Gn=W(D,fe,Pe.value,X);if(Gn===null){fe===null&&(fe=tt);break}e&&fe&&Gn.alternate===null&&n(D,fe),E=h(Gn,E,ge),de===null?le=Gn:de.sibling=Gn,de=Gn,fe=tt}if(Pe.done)return o(D,fe),Le&&fr(D,ge),le;if(fe===null){for(;!Pe.done;ge++,Pe=L.next())Pe=K(D,Pe.value,X),Pe!==null&&(E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe);return Le&&fr(D,ge),le}for(fe=a(D,fe);!Pe.done;ge++,Pe=L.next())Pe=Z(fe,D,ge,Pe.value,X),Pe!==null&&(e&&Pe.alternate!==null&&fe.delete(Pe.key===null?ge:Pe.key),E=h(Pe,E,ge),de===null?le=Pe:de.sibling=Pe,de=Pe);return e&&fe.forEach(function(t1){return n(D,t1)}),Le&&fr(D,ge),le}function We(D,E,L,X){if(typeof L=="object"&&L!==null&&L.type===z&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case V:e:{for(var le=L.key,de=E;de!==null;){if(de.key===le){if(le=L.type,le===z){if(de.tag===7){o(D,de.sibling),E=d(de,L.props.children),E.return=D,D=E;break e}}else if(de.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===se&&gp(le)===de.type){o(D,de.sibling),E=d(de,L.props),E.ref=io(D,de,L),E.return=D,D=E;break e}o(D,de);break}else n(D,de);de=de.sibling}L.type===z?(E=wr(L.props.children,D.mode,X,L.key),E.return=D,D=E):(X=Xs(L.type,L.key,L.props,null,D.mode,X),X.ref=io(D,E,L),X.return=D,D=X)}return x(D);case U:e:{for(de=L.key;E!==null;){if(E.key===de)if(E.tag===4&&E.stateNode.containerInfo===L.containerInfo&&E.stateNode.implementation===L.implementation){o(D,E.sibling),E=d(E,L.children||[]),E.return=D,D=E;break e}else{o(D,E);break}else n(D,E);E=E.sibling}E=Ic(L,D.mode,X),E.return=D,D=E}return x(D);case se:return de=L._init,We(D,E,de(L._payload),X)}if(Ii(L))return te(D,E,L,X);if(Q(L))return ie(D,E,L,X);Ns(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,E!==null&&E.tag===6?(o(D,E.sibling),E=d(E,L),E.return=D,D=E):(o(D,E),E=Mc(L,D.mode,X),E.return=D,D=E),x(D)):o(D,E)}return We}var qr=yp(!0),vp=yp(!1),Ts=_n(null),js=null,Zr=null,Hl=null;function Ul(){Hl=Zr=js=null}function Wl(e){var n=Ts.current;De(Ts),e._currentValue=n}function $l(e,n,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===o)break;e=e.return}}function Jr(e,n){js=e,Hl=Zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(xt=!0),e.firstContext=null)}function _t(e){var n=e._currentValue;if(Hl!==e)if(e={context:e,memoizedValue:n,next:null},Zr===null){if(js===null)throw Error(i(308));Zr=e,js.dependencies={lanes:0,firstContext:e}}else Zr=Zr.next=e;return n}var pr=null;function Kl(e){pr===null?pr=[e]:pr.push(e)}function xp(e,n,o,a){var d=n.interleaved;return d===null?(o.next=o,Kl(n)):(o.next=d.next,d.next=o),n.interleaved=o,wn(e,a)}function wn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Fn=!1;function Gl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Sn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function zn(e,n,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var d=a.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),a.pending=n,wn(e,o)}return d=a.interleaved,d===null?(n.next=n,Kl(a)):(n.next=d.next,d.next=n),a.interleaved=n,wn(e,o)}function Ps(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,al(e,o)}}function Sp(e,n){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var d=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var x={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};h===null?d=h=x:h=h.next=x,o=o.next}while(o!==null);h===null?d=h=n:h=h.next=n}else d=h=n;o={baseState:a.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function Es(e,n,o,a){var d=e.updateQueue;Fn=!1;var h=d.firstBaseUpdate,x=d.lastBaseUpdate,C=d.shared.pending;if(C!==null){d.shared.pending=null;var j=C,_=j.next;j.next=null,x===null?h=_:x.next=_,x=j;var $=e.alternate;$!==null&&($=$.updateQueue,C=$.lastBaseUpdate,C!==x&&(C===null?$.firstBaseUpdate=_:C.next=_,$.lastBaseUpdate=j))}if(h!==null){var K=d.baseState;x=0,$=_=j=null,C=h;do{var W=C.lane,Z=C.eventTime;if((a&W)===W){$!==null&&($=$.next={eventTime:Z,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var te=e,ie=C;switch(W=n,Z=o,ie.tag){case 1:if(te=ie.payload,typeof te=="function"){K=te.call(Z,K,W);break e}K=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ie.payload,W=typeof te=="function"?te.call(Z,K,W):te,W==null)break e;K=Y({},K,W);break e;case 2:Fn=!0}}C.callback!==null&&C.lane!==0&&(e.flags|=64,W=d.effects,W===null?d.effects=[C]:W.push(C))}else Z={eventTime:Z,lane:W,tag:C.tag,payload:C.payload,callback:C.callback,next:null},$===null?(_=$=Z,j=K):$=$.next=Z,x|=W;if(C=C.next,C===null){if(C=d.shared.pending,C===null)break;W=C,C=W.next,W.next=null,d.lastBaseUpdate=W,d.shared.pending=null}}while(!0);if($===null&&(j=K),d.baseState=j,d.firstBaseUpdate=_,d.lastBaseUpdate=$,n=d.shared.interleaved,n!==null){d=n;do x|=d.lane,d=d.next;while(d!==n)}else h===null&&(d.shared.lanes=0);gr|=x,e.lanes=x,e.memoizedState=K}}function kp(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;no?o:4,e(!0);var a=Zl.transition;Zl.transition={};try{e(!1),n()}finally{Ae=o,Zl.transition=a}}function Bp(){return Ot().memoizedState}function Nw(e,n,o){var a=Wn(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Hp(e))Up(n,o);else if(o=xp(e,n,o,a),o!==null){var d=mt();qt(o,e,a,d),Wp(o,n,a)}}function Tw(e,n,o){var a=Wn(e),d={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Hp(e))Up(n,d);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var x=n.lastRenderedState,C=h(x,o);if(d.hasEagerState=!0,d.eagerState=C,Kt(C,x)){var j=n.interleaved;j===null?(d.next=d,Kl(n)):(d.next=j.next,j.next=d),n.interleaved=d;return}}catch{}finally{}o=xp(e,n,d,a),o!==null&&(d=mt(),qt(o,e,a,d),Wp(o,n,a))}}function Hp(e){var n=e.alternate;return e===Ve||n!==null&&n===Ve}function Up(e,n){lo=Ms=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Wp(e,n,o){if((o&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,al(e,o)}}var Ls={readContext:_t,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useInsertionEffect:lt,useLayoutEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useMutableSource:lt,useSyncExternalStore:lt,useId:lt,unstable_isNewReconciler:!1},jw={readContext:_t,useCallback:function(e,n){return sn().memoizedState=[e,n===void 0?null:n],e},useContext:_t,useEffect:Ip,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Is(4194308,4,_p.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Is(4194308,4,e,n)},useInsertionEffect:function(e,n){return Is(4,2,e,n)},useMemo:function(e,n){var o=sn();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var a=sn();return n=o!==void 0?o(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Nw.bind(null,Ve,e),[a.memoizedState,e]},useRef:function(e){var n=sn();return e={current:e},n.memoizedState=e},useState:Rp,useDebugValue:oc,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=Rp(!1),n=e[0];return e=Cw.bind(null,e[1]),sn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var a=Ve,d=sn();if(Le){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),et===null)throw Error(i(349));(mr&30)!==0||Tp(a,n,o)}d.memoizedState=o;var h={value:o,getSnapshot:n};return d.queue=h,Ip(Pp.bind(null,a,h,e),[e]),a.flags|=2048,fo(9,jp.bind(null,a,h,o,n),void 0,null),o},useId:function(){var e=sn(),n=et.identifierPrefix;if(Le){var o=xn,a=vn;o=(a&~(1<<32-$t(a)-1)).toString(32)+o,n=":"+n+"R"+o,o=co++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=x.createElement(o,{is:a.is}):(e=x.createElement(o),o==="select"&&(x=e,a.multiple?x.multiple=!0:a.size&&(x.size=a.size))):e=x.createElementNS(e,o),e[rn]=n,e[no]=a,uh(e,n,!1,!1),n.stateNode=e;e:{switch(x=qa(o,a),o){case"dialog":Ie("cancel",e),Ie("close",e),d=a;break;case"iframe":case"object":case"embed":Ie("load",e),d=a;break;case"video":case"audio":for(d=0;dii&&(n.flags|=128,a=!0,po(h,!1),n.lanes=4194304)}else{if(!a)if(e=As(x),e!==null){if(n.flags|=128,a=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),po(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!Le)return ct(n),null}else 2*Ue()-h.renderingStartTime>ii&&o!==1073741824&&(n.flags|=128,a=!0,po(h,!1),n.lanes=4194304);h.isBackwards?(x.sibling=n.child,n.child=x):(o=h.last,o!==null?o.sibling=x:n.child=x,h.last=x)}return h.tail!==null?(n=h.tail,h.rendering=n,h.tail=n.sibling,h.renderingStartTime=Ue(),n.sibling=null,o=Oe.current,Me(Oe,a?o&1|2:o&1),n):(ct(n),null);case 22:case 23:return Ec(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(Et&1073741824)!==0&&(ct(n),n.subtreeFlags&6&&(n.flags|=8192)):ct(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Lw(e,n){switch(Vl(n),n.tag){case 1:return vt(n.type)&&xs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ei(),De(yt),De(at),ql(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Xl(n),null;case 13:if(De(Oe),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Qr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return De(Oe),null;case 4:return ei(),null;case 10:return Wl(n.type._context),null;case 22:case 23:return Ec(),null;case 24:return null;default:return null}}var Fs=!1,ut=!1,_w=typeof WeakSet=="function"?WeakSet:Set,ee=null;function ni(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Be(e,n,a)}else o.current=null}function yc(e,n,o){try{o()}catch(a){Be(e,n,a)}}var ph=!1;function Ow(e,n){if(El=os,e=$f(),Sl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var d=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{o.nodeType,h.nodeType}catch{o=null;break e}var x=0,C=-1,j=-1,_=0,$=0,K=e,W=null;t:for(;;){for(var Z;K!==o||d!==0&&K.nodeType!==3||(C=x+d),K!==h||a!==0&&K.nodeType!==3||(j=x+a),K.nodeType===3&&(x+=K.nodeValue.length),(Z=K.firstChild)!==null;)W=K,K=Z;for(;;){if(K===e)break t;if(W===o&&++_===d&&(C=x),W===h&&++$===a&&(j=x),(Z=K.nextSibling)!==null)break;K=W,W=K.parentNode}K=Z}o=C===-1||j===-1?null:{start:C,end:j}}else o=null}o=o||{start:0,end:0}}else o=null;for(Al={focusedElem:e,selectionRange:o},os=!1,ee=n;ee!==null;)if(n=ee,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ee=e;else for(;ee!==null;){n=ee;try{var te=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ie=te.memoizedProps,We=te.memoizedState,D=n.stateNode,E=D.getSnapshotBeforeUpdate(n.elementType===n.type?ie:Yt(n.type,ie),We);D.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var L=n.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(X){Be(n,n.return,X)}if(e=n.sibling,e!==null){e.return=n.return,ee=e;break}ee=n.return}return te=ph,ph=!1,te}function ho(e,n,o){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&e)===e){var h=d.destroy;d.destroy=void 0,h!==void 0&&yc(n,o,h)}d=d.next}while(d!==a)}}function zs(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==n)}}function vc(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function hh(e){var n=e.alternate;n!==null&&(e.alternate=null,hh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[rn],delete n[no],delete n[Dl],delete n[xw],delete n[ww])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mh(e){return e.tag===5||e.tag===3||e.tag===4}function gh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xc(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ys));else if(a!==4&&(e=e.child,e!==null))for(xc(e,n,o),e=e.sibling;e!==null;)xc(e,n,o),e=e.sibling}function wc(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(wc(e,n,o),e=e.sibling;e!==null;)wc(e,n,o),e=e.sibling}var rt=null,Xt=!1;function Bn(e,n,o){for(o=o.child;o!==null;)yh(e,n,o),o=o.sibling}function yh(e,n,o){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Jo,o)}catch{}switch(o.tag){case 5:ut||ni(o,n);case 6:var a=rt,d=Xt;rt=null,Bn(e,n,o),rt=a,Xt=d,rt!==null&&(Xt?(e=rt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):rt.removeChild(o.stateNode));break;case 18:rt!==null&&(Xt?(e=rt,o=o.stateNode,e.nodeType===8?Il(e.parentNode,o):e.nodeType===1&&Il(e,o),$i(e)):Il(rt,o.stateNode));break;case 4:a=rt,d=Xt,rt=o.stateNode.containerInfo,Xt=!0,Bn(e,n,o),rt=a,Xt=d;break;case 0:case 11:case 14:case 15:if(!ut&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){d=a=a.next;do{var h=d,x=h.destroy;h=h.tag,x!==void 0&&((h&2)!==0||(h&4)!==0)&&yc(o,n,x),d=d.next}while(d!==a)}Bn(e,n,o);break;case 1:if(!ut&&(ni(o,n),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){Be(o,n,C)}Bn(e,n,o);break;case 21:Bn(e,n,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Bn(e,n,o),ut=a):Bn(e,n,o);break;default:Bn(e,n,o)}}function vh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new _w),n.forEach(function(a){var d=Kw.bind(null,e,a);o.has(a)||(o.add(a),a.then(d,d))})}}function Qt(e,n){var o=n.deletions;if(o!==null)for(var a=0;ad&&(d=x),a&=~h}if(a=d,a=Ue()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Fw(a/1960))-a,10e?16:e,Un===null)var a=!1;else{if(e=Un,Un=null,$s=0,(je&6)!==0)throw Error(i(331));var d=je;for(je|=4,ee=e.current;ee!==null;){var h=ee,x=h.child;if((ee.flags&16)!==0){var C=h.deletions;if(C!==null){for(var j=0;jUe()-bc?vr(e,0):kc|=o),St(e,n)}function Rh(e,n){n===0&&((e.mode&1)===0?n=1:(n=ts,ts<<=1,(ts&130023424)===0&&(ts=4194304)));var o=mt();e=wn(e,n),e!==null&&(zi(e,n,o),St(e,o))}function $w(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Rh(e,o)}function Kw(e,n){var o=0;switch(e.tag){case 13:var a=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),Rh(e,o)}var Mh;Mh=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||yt.current)xt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return xt=!1,Iw(e,n,o);xt=(e.flags&131072)!==0}else xt=!1,Le&&(n.flags&1048576)!==0&&dp(n,bs,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;Vs(e,n),e=n.pendingProps;var d=Gr(n,at.current);Jr(n,o),d=ec(null,n,a,e,d,o);var h=tc();return n.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vt(a)?(h=!0,ws(n)):h=!1,n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Gl(n),d.updater=_s,n.stateNode=d,d._reactInternals=n,ac(n,a,e,o),n=dc(null,n,a,!0,h,o)):(n.tag=0,Le&&h&&Ol(n),ht(null,n,d,o),n=n.child),n;case 16:a=n.elementType;e:{switch(Vs(e,n),e=n.pendingProps,d=a._init,a=d(a._payload),n.type=a,d=n.tag=Yw(a),e=Yt(a,e),d){case 0:n=uc(null,n,a,e,o);break e;case 1:n=ih(null,n,a,e,o);break e;case 11:n=Jp(null,n,a,e,o);break e;case 14:n=eh(null,n,a,Yt(a.type,e),o);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),uc(e,n,a,d,o);case 1:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),ih(e,n,a,d,o);case 3:e:{if(oh(n),e===null)throw Error(i(387));a=n.pendingProps,h=n.memoizedState,d=h.element,wp(e,n),Es(n,a,null,o);var x=n.memoizedState;if(a=x.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){d=ti(Error(i(423)),n),n=sh(e,n,a,o,d);break e}else if(a!==d){d=ti(Error(i(424)),n),n=sh(e,n,a,o,d);break e}else for(Pt=Ln(n.stateNode.containerInfo.firstChild),jt=n,Le=!0,Gt=null,o=vp(n,null,a,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Qr(),a===d){n=kn(e,n,o);break e}ht(e,n,a,o)}n=n.child}return n;case 5:return bp(n),e===null&&zl(n),a=n.type,d=n.pendingProps,h=e!==null?e.memoizedProps:null,x=d.children,Rl(a,d)?x=null:h!==null&&Rl(a,h)&&(n.flags|=32),rh(e,n),ht(e,n,x,o),n.child;case 6:return e===null&&zl(n),null;case 13:return ah(e,n,o);case 4:return Yl(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=qr(n,null,a,o):ht(e,n,a,o),n.child;case 11:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),Jp(e,n,a,d,o);case 7:return ht(e,n,n.pendingProps,o),n.child;case 8:return ht(e,n,n.pendingProps.children,o),n.child;case 12:return ht(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(a=n.type._context,d=n.pendingProps,h=n.memoizedProps,x=d.value,Me(Ts,a._currentValue),a._currentValue=x,h!==null)if(Kt(h.value,x)){if(h.children===d.children&&!yt.current){n=kn(e,n,o);break e}}else for(h=n.child,h!==null&&(h.return=n);h!==null;){var C=h.dependencies;if(C!==null){x=h.child;for(var j=C.firstContext;j!==null;){if(j.context===a){if(h.tag===1){j=Sn(-1,o&-o),j.tag=2;var _=h.updateQueue;if(_!==null){_=_.shared;var $=_.pending;$===null?j.next=j:(j.next=$.next,$.next=j),_.pending=j}}h.lanes|=o,j=h.alternate,j!==null&&(j.lanes|=o),$l(h.return,o,n),C.lanes|=o;break}j=j.next}}else if(h.tag===10)x=h.type===n.type?null:h.child;else if(h.tag===18){if(x=h.return,x===null)throw Error(i(341));x.lanes|=o,C=x.alternate,C!==null&&(C.lanes|=o),$l(x,o,n),x=h.sibling}else x=h.child;if(x!==null)x.return=h;else for(x=h;x!==null;){if(x===n){x=null;break}if(h=x.sibling,h!==null){h.return=x.return,x=h;break}x=x.return}h=x}ht(e,n,d.children,o),n=n.child}return n;case 9:return d=n.type,a=n.pendingProps.children,Jr(n,o),d=_t(d),a=a(d),n.flags|=1,ht(e,n,a,o),n.child;case 14:return a=n.type,d=Yt(a,n.pendingProps),d=Yt(a.type,d),eh(e,n,a,d,o);case 15:return th(e,n,n.type,n.pendingProps,o);case 17:return a=n.type,d=n.pendingProps,d=n.elementType===a?d:Yt(a,d),Vs(e,n),n.tag=1,vt(a)?(e=!0,ws(n)):e=!1,Jr(n,o),Kp(n,a,d),ac(n,a,d,o),dc(null,n,a,!0,e,o);case 19:return ch(e,n,o);case 22:return nh(e,n,o)}throw Error(i(156,n.tag))};function Ih(e,n){return ff(e,n)}function Gw(e,n,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,n,o,a){return new Gw(e,n,o,a)}function Rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yw(e){if(typeof e=="function")return Rc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xe)return 11;if(e===we)return 14}return 2}function Kn(e,n){var o=e.alternate;return o===null?(o=Ft(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Xs(e,n,o,a,d,h){var x=2;if(a=e,typeof e=="function")Rc(e)&&(x=1);else if(typeof e=="string")x=5;else e:switch(e){case z:return wr(o.children,d,h,n);case F:x=8,d|=8;break;case J:return e=Ft(12,o,n,d|2),e.elementType=J,e.lanes=h,e;case me:return e=Ft(13,o,n,d),e.elementType=me,e.lanes=h,e;case pe:return e=Ft(19,o,n,d),e.elementType=pe,e.lanes=h,e;case q:return Qs(o,d,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:x=10;break e;case ye:x=9;break e;case xe:x=11;break e;case we:x=14;break e;case se:x=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Ft(x,o,n,d),n.elementType=e,n.type=a,n.lanes=h,n}function wr(e,n,o,a){return e=Ft(7,e,a,n),e.lanes=o,e}function Qs(e,n,o,a){return e=Ft(22,e,a,n),e.elementType=q,e.lanes=o,e.stateNode={isHidden:!1},e}function Mc(e,n,o){return e=Ft(6,e,null,n),e.lanes=o,e}function Ic(e,n,o){return n=Ft(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Xw(e,n,o,a,d){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sl(0),this.expirationTimes=sl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sl(0),this.identifierPrefix=a,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function Dc(e,n,o,a,d,h,x,C,j){return e=new Xw(e,n,o,C,j),n===1?(n=1,h===!0&&(n|=8)):n=0,h=Ft(3,null,null,n),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gl(h),e}function Qw(e,n,o){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),zc.exports=l1(),zc.exports}var Gh;function c1(){if(Gh)return ra;Gh=1;var t=$g();return ra.createRoot=t.createRoot,ra.hydrateRoot=t.hydrateRoot,ra}var u1=c1(),S=Zu();const Xn=Wg(S),Kg=n1({__proto__:null,default:Xn},[S]),Ju=S.createContext({});function ed(t){const r=S.useRef(null);return r.current===null&&(r.current=t()),r.current}const td=typeof window<"u",Gg=td?S.useLayoutEffect:S.useEffect,Ia=S.createContext(null);function nd(t,r){t.indexOf(r)===-1&&t.push(r)}function rd(t,r){const i=t.indexOf(r);i>-1&&t.splice(i,1)}const Nn=(t,r,i)=>i>r?r:i{};const Tn={},Yg=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Xg(t){return typeof t=="object"&&t!==null}const Qg=t=>/^0[^.\s]+$/u.test(t);function od(t){let r;return()=>(r===void 0&&(r=t()),r)}const Ut=t=>t,d1=(t,r)=>i=>r(t(i)),Uo=(...t)=>t.reduce(d1),Io=(t,r,i)=>{const s=r-t;return s===0?1:(i-t)/s};class sd{constructor(){this.subscriptions=[]}add(r){return nd(this.subscriptions,r),()=>rd(this.subscriptions,r)}notify(r,i,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](r,i,s);else for(let u=0;ut*1e3,Ht=t=>t/1e3;function qg(t,r){return r?t*(1e3/r):0}const Zg=(t,r,i)=>(((1-3*i+3*r)*t+(3*i-6*r))*t+3*r)*t,f1=1e-7,p1=12;function h1(t,r,i,s,l){let u,c,p=0;do c=r+(i-r)/2,u=Zg(c,s,l)-t,u>0?i=c:r=c;while(Math.abs(u)>f1&&++ph1(u,0,1,t,i);return u=>u===0||u===1?u:Zg(l(u),r,s)}const Jg=t=>r=>r<=.5?t(2*r)/2:(2-t(2*(1-r)))/2,ey=t=>r=>1-t(1-r),ty=Wo(.33,1.53,.69,.99),ad=ey(ty),ny=Jg(ad),ry=t=>(t*=2)<1?.5*ad(t):.5*(2-Math.pow(2,-10*(t-1))),ld=t=>1-Math.sin(Math.acos(t)),iy=ey(ld),oy=Jg(ld),m1=Wo(.42,0,1,1),g1=Wo(0,0,.58,1),sy=Wo(.42,0,.58,1),y1=t=>Array.isArray(t)&&typeof t[0]!="number",ay=t=>Array.isArray(t)&&typeof t[0]=="number",v1={linear:Ut,easeIn:m1,easeInOut:sy,easeOut:g1,circIn:ld,circInOut:oy,circOut:iy,backIn:ad,backInOut:ny,backOut:ty,anticipate:ry},x1=t=>typeof t=="string",Yh=t=>{if(ay(t)){id(t.length===4);const[r,i,s,l]=t;return Wo(r,i,s,l)}else if(x1(t))return v1[t];return t},ia=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w1(t,r){let i=new Set,s=new Set,l=!1,u=!1;const c=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function m(y){c.has(y)&&(g.schedule(y),t()),y(p)}const g={schedule:(y,v=!1,w=!1)=>{const T=w&&l?i:s;return v&&c.add(y),T.has(y)||T.add(y),y},cancel:y=>{s.delete(y),c.delete(y)},process:y=>{if(p=y,l){u=!0;return}l=!0,[i,s]=[s,i],i.forEach(m),i.clear(),l=!1,u&&(u=!1,g.process(y))}};return g}const S1=40;function ly(t,r){let i=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>i=!0,c=ia.reduce((M,O)=>(M[O]=w1(u),M),{}),{setup:p,read:m,resolveKeyframes:g,preUpdate:y,update:v,preRender:w,render:b,postRender:T}=c,k=()=>{const M=Tn.useManualTiming?l.timestamp:performance.now();i=!1,Tn.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(M-l.timestamp,S1),1)),l.timestamp=M,l.isProcessing=!0,p.process(l),m.process(l),g.process(l),y.process(l),v.process(l),w.process(l),b.process(l),T.process(l),l.isProcessing=!1,i&&r&&(s=!1,t(k))},N=()=>{i=!0,s=!0,l.isProcessing||t(k)};return{schedule:ia.reduce((M,O)=>{const V=c[O];return M[O]=(U,z=!1,F=!1)=>(i||N(),V.schedule(U,z,F)),M},{}),cancel:M=>{for(let O=0;O(ga===void 0&&Ct.set(ot.isProcessing||Tn.useManualTiming?ot.timestamp:performance.now()),ga),set:t=>{ga=t,queueMicrotask(k1)}},cy=t=>r=>typeof r=="string"&&r.startsWith(t),cd=cy("--"),b1=cy("var(--"),ud=t=>b1(t)?C1.test(t.split("/*")[0].trim()):!1,C1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bi={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Do={...bi,transform:t=>Nn(0,1,t)},oa={...bi,default:1},Po=t=>Math.round(t*1e5)/1e5,dd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N1(t){return t==null}const T1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fd=(t,r)=>i=>!!(typeof i=="string"&&T1.test(i)&&i.startsWith(t)||r&&!N1(i)&&Object.prototype.hasOwnProperty.call(i,r)),uy=(t,r,i)=>s=>{if(typeof s!="string")return s;const[l,u,c,p]=s.match(dd);return{[t]:parseFloat(l),[r]:parseFloat(u),[i]:parseFloat(c),alpha:p!==void 0?parseFloat(p):1}},j1=t=>Nn(0,255,t),Wc={...bi,transform:t=>Math.round(j1(t))},Cr={test:fd("rgb","red"),parse:uy("red","green","blue"),transform:({red:t,green:r,blue:i,alpha:s=1})=>"rgba("+Wc.transform(t)+", "+Wc.transform(r)+", "+Wc.transform(i)+", "+Po(Do.transform(s))+")"};function P1(t){let r="",i="",s="",l="";return t.length>5?(r=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),l=t.substring(7,9)):(r=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),l=t.substring(4,5),r+=r,i+=i,s+=s,l+=l),{red:parseInt(r,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const mu={test:fd("#"),parse:P1,transform:Cr.transform},$o=t=>({test:r=>typeof r=="string"&&r.endsWith(t)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${t}`}),Qn=$o("deg"),dn=$o("%"),he=$o("px"),E1=$o("vh"),A1=$o("vw"),Xh={...dn,parse:t=>dn.parse(t)/100,transform:t=>dn.transform(t*100)},ui={test:fd("hsl","hue"),parse:uy("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+dn.transform(Po(r))+", "+dn.transform(Po(i))+", "+Po(Do.transform(s))+")"},Ye={test:t=>Cr.test(t)||mu.test(t)||ui.test(t),parse:t=>Cr.test(t)?Cr.parse(t):ui.test(t)?ui.parse(t):mu.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Cr.transform(t):ui.transform(t),getAnimatableNone:t=>{const r=Ye.parse(t);return r.alpha=0,Ye.transform(r)}},R1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M1(t){return isNaN(t)&&typeof t=="string"&&(t.match(dd)?.length||0)+(t.match(R1)?.length||0)>0}const dy="number",fy="color",I1="var",D1="var(",Qh="${}",L1=/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 Lo(t){const r=t.toString(),i=[],s={color:[],number:[],var:[]},l=[];let u=0;const p=r.replace(L1,m=>(Ye.test(m)?(s.color.push(u),l.push(fy),i.push(Ye.parse(m))):m.startsWith(D1)?(s.var.push(u),l.push(I1),i.push(m)):(s.number.push(u),l.push(dy),i.push(parseFloat(m))),++u,Qh)).split(Qh);return{values:i,split:p,indexes:s,types:l}}function py(t){return Lo(t).values}function hy(t){const{split:r,types:i}=Lo(t),s=r.length;return l=>{let u="";for(let c=0;ctypeof t=="number"?0:Ye.test(t)?Ye.getAnimatableNone(t):t;function O1(t){const r=py(t);return hy(t)(r.map(_1))}const er={test:M1,parse:py,createTransformer:hy,getAnimatableNone:O1};function $c(t,r,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(r-t)*6*i:i<1/2?r:i<2/3?t+(r-t)*(2/3-i)*6:t}function V1({hue:t,saturation:r,lightness:i,alpha:s}){t/=360,r/=100,i/=100;let l=0,u=0,c=0;if(!r)l=u=c=i;else{const p=i<.5?i*(1+r):i+r-i*r,m=2*i-p;l=$c(m,p,t+1/3),u=$c(m,p,t),c=$c(m,p,t-1/3)}return{red:Math.round(l*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function ba(t,r){return i=>i>0?r:t}const Fe=(t,r,i)=>t+(r-t)*i,Kc=(t,r,i)=>{const s=t*t,l=i*(r*r-s)+s;return l<0?0:Math.sqrt(l)},F1=[mu,Cr,ui],z1=t=>F1.find(r=>r.test(t));function qh(t){const r=z1(t);if(!r)return!1;let i=r.parse(t);return r===ui&&(i=V1(i)),i}const Zh=(t,r)=>{const i=qh(t),s=qh(r);if(!i||!s)return ba(t,r);const l={...i};return u=>(l.red=Kc(i.red,s.red,u),l.green=Kc(i.green,s.green,u),l.blue=Kc(i.blue,s.blue,u),l.alpha=Fe(i.alpha,s.alpha,u),Cr.transform(l))},gu=new Set(["none","hidden"]);function B1(t,r){return gu.has(t)?i=>i<=0?t:r:i=>i>=1?r:t}function H1(t,r){return i=>Fe(t,r,i)}function pd(t){return typeof t=="number"?H1:typeof t=="string"?ud(t)?ba:Ye.test(t)?Zh:$1:Array.isArray(t)?my:typeof t=="object"?Ye.test(t)?Zh:U1:ba}function my(t,r){const i=[...t],s=i.length,l=t.map((u,c)=>pd(u)(u,r[c]));return u=>{for(let c=0;c{for(const u in s)i[u]=s[u](l);return i}}function W1(t,r){const i=[],s={color:0,var:0,number:0};for(let l=0;l{const i=er.createTransformer(r),s=Lo(t),l=Lo(r);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?gu.has(t)&&!l.values.length||gu.has(r)&&!s.values.length?B1(t,r):Uo(my(W1(s,l),l.values),i):ba(t,r)};function gy(t,r,i){return typeof t=="number"&&typeof r=="number"&&typeof i=="number"?Fe(t,r,i):pd(t)(t,r)}const K1=t=>{const r=({timestamp:i})=>t(i);return{start:(i=!0)=>_e.update(r,i),stop:()=>Jn(r),now:()=>ot.isProcessing?ot.timestamp:Ct.now()}},yy=(t,r,i=10)=>{let s="";const l=Math.max(Math.round(r/i),2);for(let u=0;u=Ca?1/0:r}function G1(t,r=100,i){const s=i({...t,keyframes:[0,r]}),l=Math.min(hd(s),Ca);return{type:"keyframes",ease:u=>s.next(l*u).value/r,duration:Ht(l)}}const Y1=5;function vy(t,r,i){const s=Math.max(r-Y1,0);return qg(i-t(s),r-s)}const He={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},Gc=.001;function X1({duration:t=He.duration,bounce:r=He.bounce,velocity:i=He.velocity,mass:s=He.mass}){let l,u,c=1-r;c=Nn(He.minDamping,He.maxDamping,c),t=Nn(He.minDuration,He.maxDuration,Ht(t)),c<1?(l=g=>{const y=g*c,v=y*t,w=y-i,b=yu(g,c),T=Math.exp(-v);return Gc-w/b*T},u=g=>{const v=g*c*t,w=v*i+i,b=Math.pow(c,2)*Math.pow(g,2)*t,T=Math.exp(-v),k=yu(Math.pow(g,2),c);return(-l(g)+Gc>0?-1:1)*((w-b)*T)/k}):(l=g=>{const y=Math.exp(-g*t),v=(g-i)*t+1;return-Gc+y*v},u=g=>{const y=Math.exp(-g*t),v=(i-g)*(t*t);return y*v});const p=5/t,m=q1(l,u,p);if(t=un(t),isNaN(m))return{stiffness:He.stiffness,damping:He.damping,duration:t};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:c*2*Math.sqrt(s*g),duration:t}}}const Q1=12;function q1(t,r,i){let s=i;for(let l=1;lt[i]!==void 0)}function eS(t){let r={velocity:He.velocity,stiffness:He.stiffness,damping:He.damping,mass:He.mass,isResolvedFromDuration:!1,...t};if(!Jh(t,J1)&&Jh(t,Z1))if(t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),l=s*s,u=2*Nn(.05,1,1-(t.bounce||0))*Math.sqrt(l);r={...r,mass:He.mass,stiffness:l,damping:u}}else{const i=X1(t);r={...r,...i,mass:He.mass},r.isResolvedFromDuration=!0}return r}function Na(t=He.visualDuration,r=He.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:r}:t;let{restSpeed:s,restDelta:l}=i;const u=i.keyframes[0],c=i.keyframes[i.keyframes.length-1],p={done:!1,value:u},{stiffness:m,damping:g,mass:y,duration:v,velocity:w,isResolvedFromDuration:b}=eS({...i,velocity:-Ht(i.velocity||0)}),T=w||0,k=g/(2*Math.sqrt(m*y)),N=c-u,P=Ht(Math.sqrt(m/y)),A=Math.abs(N)<5;s||(s=A?He.restSpeed.granular:He.restSpeed.default),l||(l=A?He.restDelta.granular:He.restDelta.default);let M;if(k<1){const V=yu(P,k);M=U=>{const z=Math.exp(-k*P*U);return c-z*((T+k*P*N)/V*Math.sin(V*U)+N*Math.cos(V*U))}}else if(k===1)M=V=>c-Math.exp(-P*V)*(N+(T+P*N)*V);else{const V=P*Math.sqrt(k*k-1);M=U=>{const z=Math.exp(-k*P*U),F=Math.min(V*U,300);return c-z*((T+k*P*N)*Math.sinh(F)+V*N*Math.cosh(F))/V}}const O={calculatedDuration:b&&v||null,next:V=>{const U=M(V);if(b)p.done=V>=v;else{let z=V===0?T:0;k<1&&(z=V===0?un(T):vy(M,V,U));const F=Math.abs(z)<=s,J=Math.abs(c-U)<=l;p.done=F&&J}return p.value=p.done?c:U,p},toString:()=>{const V=Math.min(hd(O),Ca),U=yy(z=>O.next(V*z).value,V,30);return V+"ms "+U},toTransition:()=>{}};return O}Na.applyToOptions=t=>{const r=G1(t,100,Na);return t.ease=r.ease,t.duration=un(r.duration),t.type="keyframes",t};function vu({keyframes:t,velocity:r=0,power:i=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:u=500,modifyTarget:c,min:p,max:m,restDelta:g=.5,restSpeed:y}){const v=t[0],w={done:!1,value:v},b=F=>p!==void 0&&Fm,T=F=>p===void 0?m:m===void 0||Math.abs(p-F)-k*Math.exp(-F/s),M=F=>P+A(F),O=F=>{const J=A(F),ce=M(F);w.done=Math.abs(J)<=g,w.value=w.done?P:ce};let V,U;const z=F=>{b(w.value)&&(V=F,U=Na({keyframes:[w.value,T(w.value)],velocity:vy(M,F,w.value),damping:l,stiffness:u,restDelta:g,restSpeed:y}))};return z(0),{calculatedDuration:null,next:F=>{let J=!1;return!U&&V===void 0&&(J=!0,O(F),z(F)),V!==void 0&&F>=V?U.next(F-V):(!J&&O(F),w)}}}function tS(t,r,i){const s=[],l=i||Tn.mix||gy,u=t.length-1;for(let c=0;cr[0];if(u===2&&r[0]===r[1])return()=>r[1];const c=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),r=[...r].reverse());const p=tS(r,s,l),m=p.length,g=y=>{if(c&&y1)for(;vg(Nn(t[0],t[u-1],y)):g}function rS(t,r){const i=t[t.length-1];for(let s=1;s<=r;s++){const l=Io(0,r,s);t.push(Fe(i,1,l))}}function iS(t){const r=[0];return rS(r,t.length-1),r}function oS(t,r){return t.map(i=>i*r)}function sS(t,r){return t.map(()=>r||sy).splice(0,t.length-1)}function Eo({duration:t=300,keyframes:r,times:i,ease:s="easeInOut"}){const l=y1(s)?s.map(Yh):Yh(s),u={done:!1,value:r[0]},c=oS(i&&i.length===r.length?i:iS(r),t),p=nS(c,r,{ease:Array.isArray(l)?l:sS(r,l)});return{calculatedDuration:t,next:m=>(u.value=p(m),u.done=m>=t,u)}}const aS=t=>t!==null;function md(t,{repeat:r,repeatType:i="loop"},s,l=1){const u=t.filter(aS),p=l<0||r&&i!=="loop"&&r%2===1?0:u.length-1;return!p||s===void 0?u[p]:s}const lS={decay:vu,inertia:vu,tween:Eo,keyframes:Eo,spring:Na};function xy(t){typeof t.type=="string"&&(t.type=lS[t.type])}class gd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,i){return this.finished.then(r,i)}}const cS=t=>t/100;class yd extends gd{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;xy(r);const{type:i=Eo,repeat:s=0,repeatDelay:l=0,repeatType:u,velocity:c=0}=r;let{keyframes:p}=r;const m=i||Eo;m!==Eo&&typeof p[0]!="number"&&(this.mixKeyframes=Uo(cS,gy(p[0],p[1])),p=[0,100]);const g=m({...r,keyframes:p});u==="mirror"&&(this.mirroredGenerator=m({...r,keyframes:[...p].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=hd(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=g}updateTime(r){const i=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(r,i=!1){const{generator:s,totalDuration:l,mixKeyframes:u,mirroredGenerator:c,resolvedDuration:p,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:b,type:T,onUpdate:k,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-l/this.speed,this.startTime)),i?this.currentTime=r:this.updateTime(r);const P=this.currentTime-g*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?P<0:P>l;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let M=this.currentTime,O=s;if(v){const F=Math.min(this.currentTime,l)/p;let J=Math.floor(F),ce=F%1;!ce&&F>=1&&(ce=1),ce===1&&J--,J=Math.min(J,v+1),!!(J%2)&&(w==="reverse"?(ce=1-ce,b&&(ce-=b/p)):w==="mirror"&&(O=c)),M=Nn(0,1,ce)*p}const V=A?{done:!1,value:y[0]}:O.next(M);u&&(V.value=u(V.value));let{done:U}=V;!A&&m!==null&&(U=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return z&&T!==vu&&(V.value=md(y,this.options,N,this.speed)),k&&k(V.value),z&&this.finish(),V}then(r,i){return this.finished.then(r,i)}get duration(){return Ht(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ht(r)}get time(){return Ht(this.currentTime)}set time(r){r=un(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(Ct.now());const i=this.playbackSpeed!==r;this.playbackSpeed=r,i&&(this.time=Ht(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=K1,startTime:i}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),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(Ct.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function uS(t){for(let r=1;rt*180/Math.PI,xu=t=>{const r=Nr(Math.atan2(t[1],t[0]));return wu(r)},dS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xu,rotateZ:xu,skewX:t=>Nr(Math.atan(t[1])),skewY:t=>Nr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},wu=t=>(t=t%360,t<0&&(t+=360),t),em=xu,tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),nm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),fS={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:nm,scale:t=>(tm(t)+nm(t))/2,rotateX:t=>wu(Nr(Math.atan2(t[6],t[5]))),rotateY:t=>wu(Nr(Math.atan2(-t[2],t[0]))),rotateZ:em,rotate:em,skewX:t=>Nr(Math.atan(t[4])),skewY:t=>Nr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Su(t){return t.includes("scale")?1:0}function ku(t,r){if(!t||t==="none")return Su(r);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(i)s=fS,l=i;else{const p=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=dS,l=p}if(!l)return Su(r);const u=s[r],c=l[1].split(",").map(hS);return typeof u=="function"?u(c):c[u]}const pS=(t,r)=>{const{transform:i="none"}=getComputedStyle(t);return ku(i,r)};function hS(t){return parseFloat(t.trim())}const Ci=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ni=new Set(Ci),rm=t=>t===bi||t===he,mS=new Set(["x","y","z"]),gS=Ci.filter(t=>!mS.has(t));function yS(t){const r=[];return gS.forEach(i=>{const s=t.getValue(i);s!==void 0&&(r.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),r}const Tr={width:({x:t},{paddingLeft:r="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(r)-parseFloat(i),height:({y:t},{paddingTop:r="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(r)-parseFloat(i),top:(t,{top:r})=>parseFloat(r),left:(t,{left:r})=>parseFloat(r),bottom:({y:t},{top:r})=>parseFloat(r)+(t.max-t.min),right:({x:t},{left:r})=>parseFloat(r)+(t.max-t.min),x:(t,{transform:r})=>ku(r,"x"),y:(t,{transform:r})=>ku(r,"y")};Tr.translateX=Tr.x;Tr.translateY=Tr.y;const jr=new Set;let bu=!1,Cu=!1,Nu=!1;function wy(){if(Cu){const t=Array.from(jr).filter(s=>s.needsMeasurement),r=new Set(t.map(s=>s.element)),i=new Map;r.forEach(s=>{const l=yS(s);l.length&&(i.set(s,l),s.render())}),t.forEach(s=>s.measureInitialState()),r.forEach(s=>{s.render();const l=i.get(s);l&&l.forEach(([u,c])=>{s.getValue(u)?.set(c)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Cu=!1,bu=!1,jr.forEach(t=>t.complete(Nu)),jr.clear()}function Sy(){jr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Cu=!0)})}function vS(){Nu=!0,Sy(),wy(),Nu=!1}class vd{constructor(r,i,s,l,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=i,this.name=s,this.motionValue=l,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(jr.add(this),bu||(bu=!0,_e.read(Sy),_e.resolveKeyframes(wy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:i,element:s,motionValue:l}=this;if(r[0]===null){const u=l?.get(),c=r[r.length-1];if(u!==void 0)r[0]=u;else if(s&&i){const p=s.readValue(i,c);p!=null&&(r[0]=p)}r[0]===void 0&&(r[0]=c),l&&u===void 0&&l.set(r[0])}uS(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),jr.delete(this)}cancel(){this.state==="scheduled"&&(jr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xS=t=>t.startsWith("--");function wS(t,r,i){xS(r)?t.style.setProperty(r,i):t.style[r]=i}const SS=od(()=>window.ScrollTimeline!==void 0),kS={};function bS(t,r){const i=od(t);return()=>kS[r]??i()}const ky=bS(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ko=([t,r,i,s])=>`cubic-bezier(${t}, ${r}, ${i}, ${s})`,im={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ko([0,.65,.55,1]),circOut:ko([.55,0,1,.45]),backIn:ko([.31,.01,.66,-.59]),backOut:ko([.33,1.53,.69,.99])};function by(t,r){if(t)return typeof t=="function"?ky()?yy(t,r):"ease-out":ay(t)?ko(t):Array.isArray(t)?t.map(i=>by(i,r)||im.easeOut):im[t]}function CS(t,r,i,{delay:s=0,duration:l=300,repeat:u=0,repeatType:c="loop",ease:p="easeOut",times:m}={},g=void 0){const y={[r]:i};m&&(y.offset=m);const v=by(p,l);Array.isArray(v)&&(y.easing=v);const w={delay:s,duration:l,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return g&&(w.pseudoElement=g),t.animate(y,w)}function Cy(t){return typeof t=="function"&&"applyToOptions"in t}function NS({type:t,...r}){return Cy(t)&&ky()?t.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class TS extends gd{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:i,name:s,keyframes:l,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:p,onComplete:m}=r;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=r,id(typeof r.type!="string");const g=NS(r);this.animation=CS(i,s,l,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const y=md(l,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):wS(i,s,y),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(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;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return Ht(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+Ht(r)}get time(){return Ht(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=un(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&SS()?(this.animation.timeline=r,Ut):i(this)}}const Ny={anticipate:ry,backInOut:ny,circInOut:oy};function jS(t){return t in Ny}function PS(t){typeof t.ease=="string"&&jS(t.ease)&&(t.ease=Ny[t.ease])}const om=10;class ES extends TS{constructor(r){PS(r),xy(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:i,onUpdate:s,onComplete:l,element:u,...c}=this.options;if(!i)return;if(r!==void 0){i.set(r);return}const p=new yd({...c,autoplay:!1}),m=un(this.finishedTime??this.time);i.setWithVelocity(p.sample(m-om).value,p.sample(m).value,om),p.stop()}}const sm=(t,r)=>r==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(er.test(t)||t==="0")&&!t.startsWith("url("));function AS(t){const r=t[0];if(t.length===1)return!0;for(let i=0;iObject.hasOwnProperty.call(Element.prototype,"animate"));function DS(t){const{motionValue:r,name:i,repeatDelay:s,repeatType:l,damping:u,type:c}=t;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=r.owner.getProps();return IS()&&i&&MS.has(i)&&(i!=="transform"||!g)&&!m&&!s&&l!=="mirror"&&u!==0&&c!=="inertia"}const LS=40;class _S extends gd{constructor({autoplay:r=!0,delay:i=0,type:s="keyframes",repeat:l=0,repeatDelay:u=0,repeatType:c="loop",keyframes:p,name:m,motionValue:g,element:y,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ct.now();const w={autoplay:r,delay:i,type:s,repeat:l,repeatDelay:u,repeatType:c,name:m,motionValue:g,element:y,...v},b=y?.KeyframeResolver||vd;this.keyframeResolver=new b(p,(T,k,N)=>this.onKeyframesResolved(T,k,w,!N),m,g,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,i,s,l){this.keyframeResolver=void 0;const{name:u,type:c,velocity:p,delay:m,isHandoff:g,onUpdate:y}=s;this.resolvedAt=Ct.now(),RS(r,u,c,p)||((Tn.instantAnimations||!m)&&y?.(md(r,s,i)),r[0]=r[r.length-1],Tu(s),s.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>LS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:r},b=!g&&DS(w)?new ES({...w,element:w.motionValue.owner.current}):new yd(w);b.finished.then(()=>this.notifyFinished()).catch(Ut),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(r,i){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const OS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function VS(t){const r=OS.exec(t);if(!r)return[,];const[,i,s,l]=r;return[`--${i??s}`,l]}function Ty(t,r,i=1){const[s,l]=VS(t);if(!s)return;const u=window.getComputedStyle(r).getPropertyValue(s);if(u){const c=u.trim();return Yg(c)?parseFloat(c):c}return ud(l)?Ty(l,r,i+1):l}function xd(t,r){return t?.[r]??t?.default??t}const jy=new Set(["width","height","top","left","right","bottom",...Ci]),FS={test:t=>t==="auto",parse:t=>t},Py=t=>r=>r.test(t),Ey=[bi,he,dn,Qn,A1,E1,FS],am=t=>Ey.find(Py(t));function zS(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Qg(t):!0}const BS=new Set(["brightness","contrast","saturate","opacity"]);function HS(t){const[r,i]=t.slice(0,-1).split("(");if(r==="drop-shadow")return t;const[s]=i.match(dd)||[];if(!s)return t;const l=i.replace(s,"");let u=BS.has(r)?1:0;return s!==i&&(u*=100),r+"("+u+l+")"}const US=/\b([a-z-]*)\(.*?\)/gu,ju={...er,getAnimatableNone:t=>{const r=t.match(US);return r?r.map(HS).join(" "):t}},lm={...bi,transform:Math.round},WS={rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:oa,scaleX:oa,scaleY:oa,scaleZ:oa,skew:Qn,skewX:Qn,skewY:Qn,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Do,originX:Xh,originY:Xh,originZ:he},wd={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he,...WS,zIndex:lm,fillOpacity:Do,strokeOpacity:Do,numOctaves:lm},$S={...wd,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:ju,WebkitFilter:ju},Ay=t=>$S[t];function Ry(t,r){let i=Ay(t);return i!==ju&&(i=er),i.getAnimatableNone?i.getAnimatableNone(r):void 0}const KS=new Set(["auto","none","0"]);function GS(t,r,i){let s=0,l;for(;s{r.getValue(p).set(m)}),this.resolveNoneKeyframes()}}function XS(t,r,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const l=i?.[t]??s.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t)}const My=(t,r)=>r&&typeof t=="number"?r.transform(t):t;function Iy(t){return Xg(t)&&"offsetHeight"in t}const cm=30,QS=t=>!isNaN(parseFloat(t));class qS{constructor(r,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const l=Ct.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=i.owner}setCurrent(r){this.current=r,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=QS(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,i){this.events[r]||(this.events[r]=new sd);const s=this.events[r].add(i);return r==="change"?()=>{s(),_e.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,i){this.passiveEffect=r,this.stopPassiveEffect=i}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-s}jump(r,i=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>cm)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,cm);return qg(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(r){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=r(i),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 wi(t,r){return new qS(t,r)}const{schedule:Sd}=ly(queueMicrotask,!1),Zt={x:!1,y:!1};function Dy(){return Zt.x||Zt.y}function ZS(t){return t==="x"||t==="y"?Zt[t]?null:(Zt[t]=!0,()=>{Zt[t]=!1}):Zt.x||Zt.y?null:(Zt.x=Zt.y=!0,()=>{Zt.x=Zt.y=!1})}function Ly(t,r){const i=XS(t),s=new AbortController,l={passive:!0,...r,signal:s.signal};return[i,l,()=>s.abort()]}function um(t){return!(t.pointerType==="touch"||Dy())}function JS(t,r,i={}){const[s,l,u]=Ly(t,i),c=p=>{if(!um(p))return;const{target:m}=p,g=r(m,p);if(typeof g!="function"||!m)return;const y=v=>{um(v)&&(g(v),m.removeEventListener("pointerleave",y))};m.addEventListener("pointerleave",y,l)};return s.forEach(p=>{p.addEventListener("pointerenter",c,l)}),u}const _y=(t,r)=>r?t===r?!0:_y(t,r.parentElement):!1,kd=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ek=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tk(t){return ek.has(t.tagName)||t.tabIndex!==-1}const ya=new WeakSet;function dm(t){return r=>{r.key==="Enter"&&t(r)}}function Yc(t,r){t.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const nk=(t,r)=>{const i=t.currentTarget;if(!i)return;const s=dm(()=>{if(ya.has(i))return;Yc(i,"down");const l=dm(()=>{Yc(i,"up")}),u=()=>Yc(i,"cancel");i.addEventListener("keyup",l,r),i.addEventListener("blur",u,r)});i.addEventListener("keydown",s,r),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),r)};function fm(t){return kd(t)&&!Dy()}function rk(t,r,i={}){const[s,l,u]=Ly(t,i),c=p=>{const m=p.currentTarget;if(!fm(p))return;ya.add(m);const g=r(m,p),y=(b,T)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),ya.has(m)&&ya.delete(m),fm(b)&&typeof g=="function"&&g(b,{success:T})},v=b=>{y(b,m===window||m===document||i.useGlobalTarget||_y(m,b.target))},w=b=>{y(b,!1)};window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",w,l)};return s.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",c,l),Iy(p)&&(p.addEventListener("focus",g=>nk(g,l)),!tk(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),u}function Oy(t){return Xg(t)&&"ownerSVGElement"in t}function ik(t){return Oy(t)&&t.tagName==="svg"}const dt=t=>!!(t&&t.getVelocity),ok=[...Ey,Ye,er],sk=t=>ok.find(Py(t)),bd=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function pm(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function ak(...t){return r=>{let i=!1;const s=t.map(l=>{const u=pm(l,r);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l{const{width:g,height:y,top:v,left:w,right:b}=c.current;if(r||!u.current||!g||!y)return;const T=i==="left"?`left: ${w}`:`right: ${b}`;u.current.dataset.motionPopId=l;const k=document.createElement("style");p&&(k.nonce=p);const N=s??document.head;return N.appendChild(k),k.sheet&&k.sheet.insertRule(` + [data-motion-pop-id="${l}"] { + position: absolute !important; + width: ${g}px !important; + height: ${y}px !important; + ${T}px !important; + top: ${v}px !important; + } + `),()=>{N.contains(k)&&N.removeChild(k)}},[r]),f.jsx(ck,{isPresent:r,childRef:u,sizeRef:c,children:S.cloneElement(t,{ref:m})})}const dk=({children:t,initial:r,isPresent:i,onExitComplete:s,custom:l,presenceAffectsLayout:u,mode:c,anchorX:p,root:m})=>{const g=ed(fk),y=S.useId();let v=!0,w=S.useMemo(()=>(v=!1,{id:y,initial:r,isPresent:i,custom:l,onExitComplete:b=>{g.set(b,!0);for(const T of g.values())if(!T)return;s&&s()},register:b=>(g.set(b,!1),()=>g.delete(b))}),[i,g,s]);return u&&v&&(w={...w}),S.useMemo(()=>{g.forEach((b,T)=>g.set(T,!1))},[i]),S.useEffect(()=>{!i&&!g.size&&s&&s()},[i]),c==="popLayout"&&(t=f.jsx(uk,{isPresent:i,anchorX:p,root:m,children:t})),f.jsx(Ia.Provider,{value:w,children:t})};function fk(){return new Map}function Vy(t=!0){const r=S.useContext(Ia);if(r===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:l}=r,u=S.useId();S.useEffect(()=>{if(t)return l(u)},[t]);const c=S.useCallback(()=>t&&s&&s(u),[u,s,t]);return!i&&s?[!1,c]:[!0]}const sa=t=>t.key||"";function hm(t){const r=[];return S.Children.forEach(t,i=>{S.isValidElement(i)&&r.push(i)}),r}const Pu=({children:t,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u="sync",propagate:c=!1,anchorX:p="left",root:m})=>{const[g,y]=Vy(c),v=S.useMemo(()=>hm(t),[t]),w=c&&!g?[]:v.map(sa),b=S.useRef(!0),T=S.useRef(v),k=ed(()=>new Map),[N,P]=S.useState(v),[A,M]=S.useState(v);Gg(()=>{b.current=!1,T.current=v;for(let U=0;U{const z=sa(U),F=c&&!g?!1:v===A||w.includes(z),J=()=>{if(k.has(z))k.set(z,!0);else return;let ce=!0;k.forEach(ye=>{ye||(ce=!1)}),ce&&(V?.(),M(T.current),c&&y?.(),s&&s())};return f.jsx(dk,{isPresent:F,initial:!b.current||i?void 0:!1,custom:r,presenceAffectsLayout:l,mode:u,root:m,onExitComplete:F?void 0:J,anchorX:p,children:U},z)})})},Fy=S.createContext({strict:!1}),mm={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"]},Si={};for(const t in mm)Si[t]={isEnabled:r=>mm[t].some(i=>!!r[i])};function pk(t){for(const r in t)Si[r]={...Si[r],...t[r]}}const hk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ta(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||hk.has(t)}let zy=t=>!Ta(t);function mk(t){typeof t=="function"&&(zy=r=>r.startsWith("on")?!Ta(r):t(r))}try{mk(require("@emotion/is-prop-valid").default)}catch{}function gk(t,r,i){const s={};for(const l in t)l==="values"&&typeof t.values=="object"||(zy(l)||i===!0&&Ta(l)||!r&&!Ta(l)||t.draggable&&l.startsWith("onDrag"))&&(s[l]=t[l]);return s}const Da=S.createContext({});function La(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function _o(t){return typeof t=="string"||Array.isArray(t)}const Cd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nd=["initial",...Cd];function _a(t){return La(t.animate)||Nd.some(r=>_o(t[r]))}function By(t){return!!(_a(t)||t.variants)}function yk(t,r){if(_a(t)){const{initial:i,animate:s}=t;return{initial:i===!1||_o(i)?i:void 0,animate:_o(s)?s:void 0}}return t.inherit!==!1?r:{}}function vk(t){const{initial:r,animate:i}=yk(t,S.useContext(Da));return S.useMemo(()=>({initial:r,animate:i}),[gm(r),gm(i)])}function gm(t){return Array.isArray(t)?t.join(" "):t}const Oo={};function xk(t){for(const r in t)Oo[r]=t[r],cd(r)&&(Oo[r].isCSSVariable=!0)}function Hy(t,{layout:r,layoutId:i}){return Ni.has(t)||t.startsWith("origin")||(r||i!==void 0)&&(!!Oo[t]||t==="opacity")}const wk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sk=Ci.length;function kk(t,r,i){let s="",l=!0;for(let u=0;u({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(t,r,i){for(const s in r)!dt(r[s])&&!Hy(s,i)&&(t[s]=r[s])}function bk({transformTemplate:t},r){return S.useMemo(()=>{const i=jd();return Td(i,r,t),Object.assign({},i.vars,i.style)},[r])}function Ck(t,r){const i=t.style||{},s={};return Uy(s,i,t),Object.assign(s,bk(t,r)),s}function Nk(t,r){const i={},s=Ck(t,r);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const Tk={offset:"stroke-dashoffset",array:"stroke-dasharray"},jk={offset:"strokeDashoffset",array:"strokeDasharray"};function Pk(t,r,i=1,s=0,l=!0){t.pathLength=1;const u=l?Tk:jk;t[u.offset]=he.transform(-s);const c=he.transform(r),p=he.transform(i);t[u.array]=`${c} ${p}`}function Wy(t,{attrX:r,attrY:i,attrScale:s,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...p},m,g,y){if(Td(t,p,g),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:w}=t;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=y?.transformBox??"fill-box",delete v.transformBox),r!==void 0&&(v.x=r),i!==void 0&&(v.y=i),s!==void 0&&(v.scale=s),l!==void 0&&Pk(v,l,u,c,!1)}const $y=()=>({...jd(),attrs:{}}),Ky=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ek(t,r,i,s){const l=S.useMemo(()=>{const u=$y();return Wy(u,r,Ky(s),t.transformTemplate,t.style),{...u.attrs,style:{...u.style}}},[r]);if(t.style){const u={};Uy(u,t.style,t),l.style={...u,...l.style}}return l}const Ak=["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 Pd(t){return typeof t!="string"||t.includes("-")?!1:!!(Ak.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rk(t,r,i,{latestValues:s},l,u=!1){const p=(Pd(t)?Ek:Nk)(r,s,l,t),m=gk(r,typeof t=="string",u),g=t!==S.Fragment?{...m,...p,ref:i}:{},{children:y}=r,v=S.useMemo(()=>dt(y)?y.get():y,[y]);return S.createElement(t,{...g,children:v})}function ym(t){const r=[{},{}];return t?.values.forEach((i,s)=>{r[0][s]=i.get(),r[1][s]=i.getVelocity()}),r}function Ed(t,r,i,s){if(typeof r=="function"){const[l,u]=ym(s);r=r(i!==void 0?i:t.custom,l,u)}if(typeof r=="string"&&(r=t.variants&&t.variants[r]),typeof r=="function"){const[l,u]=ym(s);r=r(i!==void 0?i:t.custom,l,u)}return r}function va(t){return dt(t)?t.get():t}function Mk({scrapeMotionValuesFromProps:t,createRenderState:r},i,s,l){return{latestValues:Ik(i,s,l,t),renderState:r()}}function Ik(t,r,i,s){const l={},u=s(t,{});for(const w in u)l[w]=va(u[w]);let{initial:c,animate:p}=t;const m=_a(t),g=By(t);r&&g&&!m&&t.inherit!==!1&&(c===void 0&&(c=r.initial),p===void 0&&(p=r.animate));let y=i?i.initial===!1:!1;y=y||c===!1;const v=y?p:c;if(v&&typeof v!="boolean"&&!La(v)){const w=Array.isArray(v)?v:[v];for(let b=0;b(r,i)=>{const s=S.useContext(Da),l=S.useContext(Ia),u=()=>Mk(t,r,s,l);return i?u():ed(u)};function Ad(t,r,i){const{style:s}=t,l={};for(const u in s)(dt(s[u])||r.style&&dt(r.style[u])||Hy(u,t)||i?.getValue(u)?.liveStyle!==void 0)&&(l[u]=s[u]);return l}const Dk=Gy({scrapeMotionValuesFromProps:Ad,createRenderState:jd});function Yy(t,r,i){const s=Ad(t,r,i);for(const l in t)if(dt(t[l])||dt(r[l])){const u=Ci.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[u]=t[l]}return s}const Lk=Gy({scrapeMotionValuesFromProps:Yy,createRenderState:$y}),_k=Symbol.for("motionComponentSymbol");function di(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ok(t,r,i){return S.useCallback(s=>{s&&t.onMount&&t.onMount(s),r&&(s?r.mount(s):r.unmount()),i&&(typeof i=="function"?i(s):di(i)&&(i.current=s))},[r])}const Rd=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vk="framerAppearId",Xy="data-"+Rd(Vk),Qy=S.createContext({});function Fk(t,r,i,s,l){const{visualElement:u}=S.useContext(Da),c=S.useContext(Fy),p=S.useContext(Ia),m=S.useContext(bd).reducedMotion,g=S.useRef(null);s=s||c.renderer,!g.current&&s&&(g.current=s(t,{visualState:r,parent:u,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:m}));const y=g.current,v=S.useContext(Qy);y&&!y.projection&&l&&(y.type==="html"||y.type==="svg")&&zk(g.current,i,l,v);const w=S.useRef(!1);S.useInsertionEffect(()=>{y&&w.current&&y.update(i,p)});const b=i[Xy],T=S.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Gg(()=>{y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),S.useEffect(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),T.current=!1),y.enteringChildren=void 0)}),y}function zk(t,r,i,s){const{layoutId:l,layout:u,drag:c,dragConstraints:p,layoutScroll:m,layoutRoot:g,layoutCrossfade:y}=r;t.projection=new i(t.latestValues,r["data-framer-portal-id"]?void 0:qy(t.parent)),t.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||p&&di(p),visualElement:t,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:y,layoutScroll:m,layoutRoot:g})}function qy(t){if(t)return t.options.allowProjection!==!1?t.projection:qy(t.parent)}function Xc(t,{forwardMotionProps:r=!1}={},i,s){i&&pk(i);const l=Pd(t)?Lk:Dk;function u(p,m){let g;const y={...S.useContext(bd),...p,layoutId:Bk(p)},{isStatic:v}=y,w=vk(p),b=l(p,v);if(!v&&td){Hk();const T=Uk(y);g=T.MeasureLayout,w.visualElement=Fk(t,b,y,s,T.ProjectionNode)}return f.jsxs(Da.Provider,{value:w,children:[g&&w.visualElement?f.jsx(g,{visualElement:w.visualElement,...y}):null,Rk(t,p,Ok(b,w.visualElement,m),b,v,r)]})}u.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(u);return c[_k]=t,c}function Bk({layoutId:t}){const r=S.useContext(Ju).id;return r&&t!==void 0?r+"-"+t:t}function Hk(t,r){S.useContext(Fy).strict}function Uk(t){const{drag:r,layout:i}=Si;if(!r&&!i)return{};const s={...r,...i};return{MeasureLayout:r?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Wk(t,r){if(typeof Proxy>"u")return Xc;const i=new Map,s=(u,c)=>Xc(u,c,t,r),l=(u,c)=>s(u,c);return new Proxy(l,{get:(u,c)=>c==="create"?s:(i.has(c)||i.set(c,Xc(c,void 0,t,r)),i.get(c))})}function Zy({top:t,left:r,right:i,bottom:s}){return{x:{min:r,max:i},y:{min:t,max:s}}}function $k({x:t,y:r}){return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function Kk(t,r){if(!r)return t;const i=r({x:t.left,y:t.top}),s=r({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Qc(t){return t===void 0||t===1}function Eu({scale:t,scaleX:r,scaleY:i}){return!Qc(t)||!Qc(r)||!Qc(i)}function br(t){return Eu(t)||Jy(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Jy(t){return vm(t.x)||vm(t.y)}function vm(t){return t&&t!=="0%"}function ja(t,r,i){const s=t-i,l=r*s;return i+l}function xm(t,r,i,s,l){return l!==void 0&&(t=ja(t,l,s)),ja(t,i,s)+r}function Au(t,r=0,i=1,s,l){t.min=xm(t.min,r,i,s,l),t.max=xm(t.max,r,i,s,l)}function ev(t,{x:r,y:i}){Au(t.x,r.translate,r.scale,r.originPoint),Au(t.y,i.translate,i.scale,i.originPoint)}const wm=.999999999999,Sm=1.0000000000001;function Gk(t,r,i,s=!1){const l=i.length;if(!l)return;r.x=r.y=1;let u,c;for(let p=0;pwm&&(r.x=1),r.ywm&&(r.y=1)}function fi(t,r){t.min=t.min+r,t.max=t.max+r}function km(t,r,i,s,l=.5){const u=Fe(t.min,t.max,l);Au(t,r,i,u,s)}function pi(t,r){km(t.x,r.x,r.scaleX,r.scale,r.originX),km(t.y,r.y,r.scaleY,r.scale,r.originY)}function tv(t,r){return Zy(Kk(t.getBoundingClientRect(),r))}function Yk(t,r,i){const s=tv(t,i),{scroll:l}=r;return l&&(fi(s.x,l.offset.x),fi(s.y,l.offset.y)),s}const bm=()=>({translate:0,scale:1,origin:0,originPoint:0}),hi=()=>({x:bm(),y:bm()}),Cm=()=>({min:0,max:0}),$e=()=>({x:Cm(),y:Cm()}),Ru={current:null},nv={current:!1};function Xk(){if(nv.current=!0,!!td)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),r=()=>Ru.current=t.matches;t.addEventListener("change",r),r()}else Ru.current=!1}const Qk=new WeakMap;function qk(t,r,i){for(const s in r){const l=r[s],u=i[s];if(dt(l))t.addValue(s,l);else if(dt(u))t.addValue(s,wi(l,{owner:t}));else if(u!==l)if(t.hasValue(s)){const c=t.getValue(s);c.liveStyle===!0?c.jump(l):c.hasAnimated||c.set(l)}else{const c=t.getStaticValue(s);t.addValue(s,wi(c!==void 0?c:l,{owner:t}))}}for(const s in i)r[s]===void 0&&t.removeValue(s);return r}const Nm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zk{scrapeMotionValuesFromProps(r,i,s){return{}}constructor({parent:r,props:i,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:u,visualState:c},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Ct.now();this.renderScheduledAtthis.bindToMotionValue(s,i)),nv.current||Xk(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ru.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Jn(this.notifyUpdate),Jn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const i=this.features[r];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,i){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const s=Ni.has(r);s&&this.onBindTransform&&this.onBindTransform();const l=i.on("change",c=>{this.latestValues[r]=c,this.props.onUpdate&&_e.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,r,i)),this.valueSubscriptions.set(r,()=>{l(),u&&u(),i.owner&&i.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Si){const i=Si[r];if(!i)continue;const{isEnabled:s,Feature:l}=i;if(!this.features[r]&&l&&s(this.props)&&(this.features[r]=new l(this)),this.features[r]){const u=this.features[r];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,i){this.latestValues[r]=i}update(r,i){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;si.variantChildren.delete(r)}addValue(r,i){const s=this.values.get(r);i!==s&&(s&&this.removeValue(r),this.bindToMotionValue(r,i),this.values.set(r,i),this.latestValues[r]=i.get())}removeValue(r){this.values.delete(r);const i=this.valueSubscriptions.get(r);i&&(i(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,i){if(this.props.values&&this.props.values[r])return this.props.values[r];let s=this.values.get(r);return s===void 0&&i!==void 0&&(s=wi(i===null?void 0:i,{owner:this}),this.addValue(r,s)),s}readValue(r,i){let s=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return s!=null&&(typeof s=="string"&&(Yg(s)||Qg(s))?s=parseFloat(s):!sk(s)&&er.test(i)&&(s=Ry(r,i)),this.setBaseTarget(r,dt(s)?s.get():s)),dt(s)?s.get():s}setBaseTarget(r,i){this.baseTarget[r]=i}getBaseTarget(r){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const u=Ed(this.props,i,this.presenceContext?.custom);u&&(s=u[r])}if(i&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,r);return l!==void 0&&!dt(l)?l:this.initialValues[r]!==void 0&&s===void 0?void 0:this.baseTarget[r]}on(r,i){return this.events[r]||(this.events[r]=new sd),this.events[r].add(i)}notify(r,...i){this.events[r]&&this.events[r].notify(...i)}scheduleRenderMicrotask(){Sd.render(this.render)}}class rv extends Zk{constructor(){super(...arguments),this.KeyframeResolver=YS}sortInstanceNodePosition(r,i){return r.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(r,i){return r.style?r.style[i]:void 0}removeValueFromRenderState(r,{vars:i,style:s}){delete i[r],delete s[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;dt(r)&&(this.childSubscription=r.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function iv(t,{style:r,vars:i},s,l){const u=t.style;let c;for(c in r)u[c]=r[c];l?.applyProjectionStyles(u,s);for(c in i)u.setProperty(c,i[c])}function Jk(t){return window.getComputedStyle(t)}class eb extends rv{constructor(){super(...arguments),this.type="html",this.renderInstance=iv}readValueFromInstance(r,i){if(Ni.has(i))return this.projection?.isProjecting?Su(i):pS(r,i);{const s=Jk(r),l=(cd(i)?s.getPropertyValue(i):s[i])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(r,{transformPagePoint:i}){return tv(r,i)}build(r,i,s){Td(r,i,s.transformTemplate)}scrapeMotionValuesFromProps(r,i,s){return Ad(r,i,s)}}const ov=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tb(t,r,i,s){iv(t,r,void 0,s);for(const l in r.attrs)t.setAttribute(ov.has(l)?l:Rd(l),r.attrs[l])}class nb extends rv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(r,i){return r[i]}readValueFromInstance(r,i){if(Ni.has(i)){const s=Ay(i);return s&&s.default||0}return i=ov.has(i)?i:Rd(i),r.getAttribute(i)}scrapeMotionValuesFromProps(r,i,s){return Yy(r,i,s)}build(r,i,s){Wy(r,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(r,i,s,l){tb(r,i,s,l)}mount(r){this.isSVGTag=Ky(r.tagName),super.mount(r)}}const rb=(t,r)=>Pd(t)?new nb(r):new eb(r,{allowProjection:t!==S.Fragment});function mi(t,r,i){const s=t.getProps();return Ed(s,r,i!==void 0?i:s.custom,t)}const Mu=t=>Array.isArray(t);function ib(t,r,i){t.hasValue(r)?t.getValue(r).set(i):t.addValue(r,wi(i))}function ob(t){return Mu(t)?t[t.length-1]||0:t}function sb(t,r){const i=mi(t,r);let{transitionEnd:s={},transition:l={},...u}=i||{};u={...u,...s};for(const c in u){const p=ob(u[c]);ib(t,c,p)}}function ab(t){return!!(dt(t)&&t.add)}function Iu(t,r){const i=t.getValue("willChange");if(ab(i))return i.add(r);if(!i&&Tn.WillChange){const s=new Tn.WillChange("auto");t.addValue("willChange",s),s.add(r)}}function sv(t){return t.props[Xy]}const lb=t=>t!==null;function cb(t,{repeat:r,repeatType:i="loop"},s){const l=t.filter(lb),u=r&&i!=="loop"&&r%2===1?0:l.length-1;return l[u]}const ub={type:"spring",stiffness:500,damping:25,restSpeed:10},db=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fb={type:"keyframes",duration:.8},pb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hb=(t,{keyframes:r})=>r.length>2?fb:Ni.has(t)?t.startsWith("scale")?db(r[1]):ub:pb;function mb({when:t,delay:r,delayChildren:i,staggerChildren:s,staggerDirection:l,repeat:u,repeatType:c,repeatDelay:p,from:m,elapsed:g,...y}){return!!Object.keys(y).length}const Md=(t,r,i,s={},l,u)=>c=>{const p=xd(s,t)||{},m=p.delay||s.delay||0;let{elapsed:g=0}=s;g=g-un(m);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:r.getVelocity(),...p,delay:-g,onUpdate:w=>{r.set(w),p.onUpdate&&p.onUpdate(w)},onComplete:()=>{c(),p.onComplete&&p.onComplete()},name:t,motionValue:r,element:u?void 0:l};mb(p)||Object.assign(y,hb(t,y)),y.duration&&(y.duration=un(y.duration)),y.repeatDelay&&(y.repeatDelay=un(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Tu(y),y.delay===0&&(v=!0)),(Tn.instantAnimations||Tn.skipAnimations)&&(v=!0,Tu(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!u&&r.get()!==void 0){const w=cb(y.keyframes,p);if(w!==void 0){_e.update(()=>{y.onUpdate(w),y.onComplete()});return}}return p.isSync?new yd(y):new _S(y)};function gb({protectedKeys:t,needsAnimating:r},i){const s=t.hasOwnProperty(i)&&r[i]!==!0;return r[i]=!1,s}function av(t,r,{delay:i=0,transitionOverride:s,type:l}={}){let{transition:u=t.getDefaultTransition(),transitionEnd:c,...p}=r;s&&(u=s);const m=[],g=l&&t.animationState&&t.animationState.getState()[l];for(const y in p){const v=t.getValue(y,t.latestValues[y]??null),w=p[y];if(w===void 0||g&&gb(g,y))continue;const b={delay:i,...xd(u||{},y)},T=v.get();if(T!==void 0&&!v.isAnimating&&!Array.isArray(w)&&w===T&&!b.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const P=sv(t);if(P){const A=window.MotionHandoffAnimation(P,y,_e);A!==null&&(b.startTime=A,k=!0)}}Iu(t,y),v.start(Md(y,v,w,t.shouldReduceMotion&&jy.has(y)?{type:!1}:b,t,k));const N=v.animation;N&&m.push(N)}return c&&Promise.all(m).then(()=>{_e.update(()=>{c&&sb(t,c)})}),m}function lv(t,r,i,s=0,l=1){const u=Array.from(t).sort((g,y)=>g.sortNodePosition(y)).indexOf(r),c=t.size,p=(c-1)*s;return typeof i=="function"?i(u,c):l===1?u*s:p-u*s}function Du(t,r,i={}){const s=mi(t,r,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(l=i.transitionOverride);const u=s?()=>Promise.all(av(t,s,i)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:v}=l;return yb(t,r,m,g,y,v,i)}:()=>Promise.resolve(),{when:p}=l;if(p){const[m,g]=p==="beforeChildren"?[u,c]:[c,u];return m().then(()=>g())}else return Promise.all([u(),c(i.delay)])}function yb(t,r,i=0,s=0,l=0,u=1,c){const p=[];for(const m of t.variantChildren)m.notify("AnimationStart",r),p.push(Du(m,r,{...c,delay:i+(typeof s=="function"?0:s)+lv(t.variantChildren,m,s,l,u)}).then(()=>m.notify("AnimationComplete",r)));return Promise.all(p)}function vb(t,r,i={}){t.notify("AnimationStart",r);let s;if(Array.isArray(r)){const l=r.map(u=>Du(t,u,i));s=Promise.all(l)}else if(typeof r=="string")s=Du(t,r,i);else{const l=typeof r=="function"?mi(t,r,i.custom):r;s=Promise.all(av(t,l,i))}return s.then(()=>{t.notify("AnimationComplete",r)})}function cv(t,r){if(!Array.isArray(r))return!1;const i=r.length;if(i!==t.length)return!1;for(let s=0;sPromise.all(r.map(({animation:i,options:s})=>vb(t,i,s)))}function bb(t){let r=kb(t),i=Tm(),s=!0;const l=m=>(g,y)=>{const v=mi(t,y,m==="exit"?t.presenceContext?.custom:void 0);if(v){const{transition:w,transitionEnd:b,...T}=v;g={...g,...T,...b}}return g};function u(m){r=m(t)}function c(m){const{props:g}=t,y=uv(t.parent)||{},v=[],w=new Set;let b={},T=1/0;for(let N=0;NT&&O,J=!1;const ce=Array.isArray(M)?M:[M];let ye=ce.reduce(l(P),{});V===!1&&(ye={});const{prevResolvedValues:xe={}}=A,me={...xe,...ye},pe=q=>{F=!0,w.has(q)&&(J=!0,w.delete(q)),A.needsAnimating[q]=!0;const I=t.getValue(q);I&&(I.liveStyle=!1)};for(const q in me){const I=ye[q],Q=xe[q];if(b.hasOwnProperty(q))continue;let Y=!1;Mu(I)&&Mu(Q)?Y=!cv(I,Q):Y=I!==Q,Y?I!=null?pe(q):w.add(q):I!==void 0&&w.has(q)?pe(q):A.protectedKeys[q]=!0}A.prevProp=M,A.prevResolvedValues=ye,A.isActive&&(b={...b,...ye}),s&&t.blockInitialAnimation&&(F=!1);const we=U&&z;F&&(!we||J)&&v.push(...ce.map(q=>{const I={type:P};if(typeof q=="string"&&s&&!we&&t.manuallyAnimateOnMount&&t.parent){const{parent:Q}=t,Y=mi(Q,q);if(Q.enteringChildren&&Y){const{delayChildren:R}=Y.transition||{};I.delay=lv(Q.enteringChildren,t,R)}}return{animation:q,options:I}}))}if(w.size){const N={};if(typeof g.initial!="boolean"){const P=mi(t,Array.isArray(g.initial)?g.initial[0]:g.initial);P&&P.transition&&(N.transition=P.transition)}w.forEach(P=>{const A=t.getBaseTarget(P),M=t.getValue(P);M&&(M.liveStyle=!0),N[P]=A??null}),v.push({animation:N})}let k=!!v.length;return s&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(k=!1),s=!1,k?r(v):Promise.resolve()}function p(m,g){if(i[m].isActive===g)return Promise.resolve();t.variantChildren?.forEach(v=>v.animationState?.setActive(m,g)),i[m].isActive=g;const y=c(m);for(const v in i)i[v].protectedKeys={};return y}return{animateChanges:c,setActive:p,setAnimateFunction:u,getState:()=>i,reset:()=>{i=Tm(),s=!0}}}function Cb(t,r){return typeof r=="string"?r!==t:Array.isArray(r)?!cv(r,t):!1}function Sr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tm(){return{animate:Sr(!0),whileInView:Sr(),whileHover:Sr(),whileTap:Sr(),whileDrag:Sr(),whileFocus:Sr(),exit:Sr()}}class ir{constructor(r){this.isMounted=!1,this.node=r}update(){}}class Nb extends ir{constructor(r){super(r),r.animationState||(r.animationState=bb(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();La(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:i}=this.node.prevProps||{};r!==i&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Tb=0;class jb extends ir{constructor(){super(...arguments),this.id=Tb++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===s)return;const l=this.node.animationState.setActive("exit",!r);i&&!r&&l.then(()=>{i(this.id)})}mount(){const{register:r,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const Pb={animation:{Feature:Nb},exit:{Feature:jb}};function Vo(t,r,i,s={passive:!0}){return t.addEventListener(r,i,s),()=>t.removeEventListener(r,i)}function Ko(t){return{point:{x:t.pageX,y:t.pageY}}}const Eb=t=>r=>kd(r)&&t(r,Ko(r));function Ao(t,r,i,s){return Vo(t,r,Eb(i),s)}const dv=1e-4,Ab=1-dv,Rb=1+dv,fv=.01,Mb=0-fv,Ib=0+fv;function gt(t){return t.max-t.min}function Db(t,r,i){return Math.abs(t-r)<=i}function jm(t,r,i,s=.5){t.origin=s,t.originPoint=Fe(r.min,r.max,t.origin),t.scale=gt(i)/gt(r),t.translate=Fe(i.min,i.max,t.origin)-t.originPoint,(t.scale>=Ab&&t.scale<=Rb||isNaN(t.scale))&&(t.scale=1),(t.translate>=Mb&&t.translate<=Ib||isNaN(t.translate))&&(t.translate=0)}function Ro(t,r,i,s){jm(t.x,r.x,i.x,s?s.originX:void 0),jm(t.y,r.y,i.y,s?s.originY:void 0)}function Pm(t,r,i){t.min=i.min+r.min,t.max=t.min+gt(r)}function Lb(t,r,i){Pm(t.x,r.x,i.x),Pm(t.y,r.y,i.y)}function Em(t,r,i){t.min=r.min-i.min,t.max=t.min+gt(r)}function Mo(t,r,i){Em(t.x,r.x,i.x),Em(t.y,r.y,i.y)}function Bt(t){return[t("x"),t("y")]}const pv=({current:t})=>t?t.ownerDocument.defaultView:null,Am=(t,r)=>Math.abs(t-r);function _b(t,r){const i=Am(t.x,r.x),s=Am(t.y,r.y);return Math.sqrt(i**2+s**2)}class hv{constructor(r,i,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:u=!1,distanceThreshold:c=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Zc(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,T=_b(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!T)return;const{point:k}=w,{timestamp:N}=ot;this.history.push({...k,timestamp:N});const{onStart:P,onMove:A}=this.handlers;b||(P&&P(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,w)},this.handlePointerMove=(w,b)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=qc(b,this.transformPagePoint),_e.update(this.updatePoint,!0)},this.handlePointerUp=(w,b)=>{this.end();const{onEnd:T,onSessionEnd:k,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Zc(w.type==="pointercancel"?this.lastMoveEventInfo:qc(b,this.transformPagePoint),this.history);this.startEvent&&T&&T(w,P),k&&k(w,P)},!kd(r))return;this.dragSnapToOrigin=u,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=l||window;const p=Ko(r),m=qc(p,this.transformPagePoint),{point:g}=m,{timestamp:y}=ot;this.history=[{...g,timestamp:y}];const{onSessionStart:v}=i;v&&v(r,Zc(m,this.history)),this.removeListeners=Uo(Ao(this.contextWindow,"pointermove",this.handlePointerMove),Ao(this.contextWindow,"pointerup",this.handlePointerUp),Ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),Jn(this.updatePoint)}}function qc(t,r){return r?{point:r(t.point)}:t}function Rm(t,r){return{x:t.x-r.x,y:t.y-r.y}}function Zc({point:t},r){return{point:t,delta:Rm(t,mv(r)),offset:Rm(t,Ob(r)),velocity:Vb(r,.1)}}function Ob(t){return t[0]}function mv(t){return t[t.length-1]}function Vb(t,r){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const l=mv(t);for(;i>=0&&(s=t[i],!(l.timestamp-s.timestamp>un(r)));)i--;if(!s)return{x:0,y:0};const u=Ht(l.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(l.x-s.x)/u,y:(l.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Fb(t,{min:r,max:i},s){return r!==void 0&&ti&&(t=s?Fe(i,t,s.max):Math.min(t,i)),t}function Mm(t,r,i){return{min:r!==void 0?t.min+r:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function zb(t,{top:r,left:i,bottom:s,right:l}){return{x:Mm(t.x,i,l),y:Mm(t.y,r,s)}}function Im(t,r){let i=r.min-t.min,s=r.max-t.max;return r.max-r.mins?i=Io(r.min,r.max-s,t.min):s>l&&(i=Io(t.min,t.max-l,r.min)),Nn(0,1,i)}function Ub(t,r){const i={};return r.min!==void 0&&(i.min=r.min-t.min),r.max!==void 0&&(i.max=r.max-t.min),i}const Lu=.35;function Wb(t=Lu){return t===!1?t=0:t===!0&&(t=Lu),{x:Dm(t,"left","right"),y:Dm(t,"top","bottom")}}function Dm(t,r,i){return{min:Lm(t,r),max:Lm(t,i)}}function Lm(t,r){return typeof t=="number"?t:t[r]||0}const $b=new WeakMap;class Kb{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const u=v=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Ko(v).point)},c=(v,w)=>{const{drag:b,dragPropagation:T,onDragStart:k}=this.getProps();if(b&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZS(b),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bt(P=>{let A=this.getAxisMotionValue(P).get()||0;if(dn.test(A)){const{projection:M}=this.visualElement;if(M&&M.layout){const O=M.layout.layoutBox[P];O&&(A=gt(O)*(parseFloat(A)/100))}}this.originPoint[P]=A}),k&&_e.postRender(()=>k(v,w)),Iu(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},p=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:b,dragDirectionLock:T,onDirectionLock:k,onDrag:N}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:P}=w;if(T&&this.currentDirection===null){this.currentDirection=Gb(P),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",w.point,P),this.updateAxis("y",w.point,P),this.visualElement.render(),N&&N(v,w)},m=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Bt(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new hv(r,{onSessionStart:u,onStart:c,onMove:p,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:pv(this.visualElement)})}stop(r,i){const s=r||this.latestPointerEvent,l=i||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!l||!s)return;const{velocity:c}=l;this.startAnimation(c);const{onDragEnd:p}=this.getProps();p&&_e.postRender(()=>p(s,l))}cancel(){this.isDragging=!1;const{projection:r,animationState:i}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(r,i,s){const{drag:l}=this.getProps();if(!s||!aa(r,l,this.currentDirection))return;const u=this.getAxisMotionValue(r);let c=this.originPoint[r]+s[r];this.constraints&&this.constraints[r]&&(c=Fb(c,this.constraints[r],this.elastic[r])),u.set(c)}resolveConstraints(){const{dragConstraints:r,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;r&&di(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=zb(s.layoutBox,r):this.constraints=!1,this.elastic=Wb(i),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Bt(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Ub(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:i}=this.getProps();if(!r||!di(r))return!1;const s=r.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const u=Yk(s,l.root,this.visualElement.getTransformPagePoint());let c=Bb(l.layout.layoutBox,u);if(i){const p=i($k(c));this.hasMutatedConstraints=!!p,p&&(c=Zy(p))}return c}startAnimation(r){const{drag:i,dragMomentum:s,dragElastic:l,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=Bt(y=>{if(!aa(y,i,this.currentDirection))return;let v=m&&m[y]||{};c&&(v={min:0,max:0});const w=l?200:1e6,b=l?40:1e7,T={type:"inertia",velocity:s?r[y]:0,bounceStiffness:w,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(y,T)});return Promise.all(g).then(p)}startAxisValueAnimation(r,i){const s=this.getAxisMotionValue(r);return Iu(this.visualElement,r),s.start(Md(r,s,0,i,this.visualElement,!1))}stopAnimation(){Bt(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Bt(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const i=`_drag${r.toUpperCase()}`,s=this.visualElement.getProps(),l=s[i];return l||this.visualElement.getValue(r,(s.initial?s.initial[r]:void 0)||0)}snapToCursor(r){Bt(i=>{const{drag:s}=this.getProps();if(!aa(i,s,this.currentDirection))return;const{projection:l}=this.visualElement,u=this.getAxisMotionValue(i);if(l&&l.layout){const{min:c,max:p}=l.layout.layoutBox[i];u.set(r[i]-Fe(c,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!di(i)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Bt(c=>{const p=this.getAxisMotionValue(c);if(p&&this.constraints!==!1){const m=p.get();l[c]=Hb({min:m,max:m},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Bt(c=>{if(!aa(c,r,null))return;const p=this.getAxisMotionValue(c),{min:m,max:g}=this.constraints[c];p.set(Fe(m,g,l[c]))})}addListeners(){if(!this.visualElement.current)return;$b.set(this.visualElement,this);const r=this.visualElement.current,i=Ao(r,"pointerdown",m=>{const{drag:g,dragListener:y=!0}=this.getProps();g&&y&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();di(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,u=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),_e.read(s);const c=Vo(window,"resize",()=>this.scalePositionWithinConstraints()),p=l.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(Bt(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=m[y].translate,v.set(v.get()+m[y].translate))}),this.visualElement.render())}));return()=>{c(),i(),u(),p&&p()}}getProps(){const r=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:u=!1,dragElastic:c=Lu,dragMomentum:p=!0}=r;return{...r,drag:i,dragDirectionLock:s,dragPropagation:l,dragConstraints:u,dragElastic:c,dragMomentum:p}}}function aa(t,r,i){return(r===!0||r===t)&&(i===null||i===t)}function Gb(t,r=10){let i=null;return Math.abs(t.y)>r?i="y":Math.abs(t.x)>r&&(i="x"),i}class Yb extends ir{constructor(r){super(r),this.removeGroupControls=Ut,this.removeListeners=Ut,this.controls=new Kb(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const _m=t=>(r,i)=>{t&&_e.postRender(()=>t(r,i))};class Xb extends ir{constructor(){super(...arguments),this.removePointerDownListener=Ut}onPointerDown(r){this.session=new hv(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:pv(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:i,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:_m(r),onStart:_m(i),onMove:s,onEnd:(u,c)=>{delete this.session,l&&_e.postRender(()=>l(u,c))}}}mount(){this.removePointerDownListener=Ao(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Om(t,r){return r.max===r.min?0:t/(r.max-r.min)*100}const wo={correct:(t,r)=>{if(!r.target)return t;if(typeof t=="string")if(he.test(t))t=parseFloat(t);else return t;const i=Om(t,r.target.x),s=Om(t,r.target.y);return`${i}% ${s}%`}},Qb={correct:(t,{treeScale:r,projectionDelta:i})=>{const s=t,l=er.parse(t);if(l.length>5)return s;const u=er.createTransformer(t),c=typeof l[0]!="number"?1:0,p=i.x.scale*r.x,m=i.y.scale*r.y;l[0+c]/=p,l[1+c]/=m;const g=Fe(p,m,.5);return typeof l[2+c]=="number"&&(l[2+c]/=g),typeof l[3+c]=="number"&&(l[3+c]/=g),u(l)}};let Jc=!1;class qb extends S.Component{componentDidMount(){const{visualElement:r,layoutGroup:i,switchLayoutGroup:s,layoutId:l}=this.props,{projection:u}=r;xk(Zb),u&&(i.group&&i.group.add(u),s&&s.register&&l&&s.register(u),Jc&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),xa.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:i,visualElement:s,drag:l,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,Jc=!0,l||r.layoutDependency!==i||i===void 0||r.isPresent!==u?c.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?c.promote():c.relegate()||_e.postRender(()=>{const p=c.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),Sd.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:l}=r;Jc=!0,l&&(l.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function gv(t){const[r,i]=Vy(),s=S.useContext(Ju);return f.jsx(qb,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Qy),isPresent:r,safeToRemove:i})}const Zb={borderRadius:{...wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wo,borderTopRightRadius:wo,borderBottomLeftRadius:wo,borderBottomRightRadius:wo,boxShadow:Qb};function Jb(t,r,i){const s=dt(t)?t:wi(t);return s.start(Md("",s,r,i)),s.animation}const eC=(t,r)=>t.depth-r.depth;class tC{constructor(){this.children=[],this.isDirty=!1}add(r){nd(this.children,r),this.isDirty=!0}remove(r){rd(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(eC),this.isDirty=!1,this.children.forEach(r)}}function nC(t,r){const i=Ct.now(),s=({timestamp:l})=>{const u=l-i;u>=r&&(Jn(s),t(u-r))};return _e.setup(s,!0),()=>Jn(s)}const yv=["TopLeft","TopRight","BottomLeft","BottomRight"],rC=yv.length,Vm=t=>typeof t=="string"?parseFloat(t):t,Fm=t=>typeof t=="number"||he.test(t);function iC(t,r,i,s,l,u){l?(t.opacity=Fe(0,i.opacity??1,oC(s)),t.opacityExit=Fe(r.opacity??1,0,sC(s))):u&&(t.opacity=Fe(r.opacity??1,i.opacity??1,s));for(let c=0;csr?1:i(Io(t,r,s))}function Bm(t,r){t.min=r.min,t.max=r.max}function zt(t,r){Bm(t.x,r.x),Bm(t.y,r.y)}function Hm(t,r){t.translate=r.translate,t.scale=r.scale,t.originPoint=r.originPoint,t.origin=r.origin}function Um(t,r,i,s,l){return t-=r,t=ja(t,1/i,s),l!==void 0&&(t=ja(t,1/l,s)),t}function aC(t,r=0,i=1,s=.5,l,u=t,c=t){if(dn.test(r)&&(r=parseFloat(r),r=Fe(c.min,c.max,r/100)-c.min),typeof r!="number")return;let p=Fe(u.min,u.max,s);t===u&&(p-=r),t.min=Um(t.min,r,i,p,l),t.max=Um(t.max,r,i,p,l)}function Wm(t,r,[i,s,l],u,c){aC(t,r[i],r[s],r[l],r.scale,u,c)}const lC=["x","scaleX","originX"],cC=["y","scaleY","originY"];function $m(t,r,i,s){Wm(t.x,r,lC,i?i.x:void 0,s?s.x:void 0),Wm(t.y,r,cC,i?i.y:void 0,s?s.y:void 0)}function Km(t){return t.translate===0&&t.scale===1}function xv(t){return Km(t.x)&&Km(t.y)}function Gm(t,r){return t.min===r.min&&t.max===r.max}function uC(t,r){return Gm(t.x,r.x)&&Gm(t.y,r.y)}function Ym(t,r){return Math.round(t.min)===Math.round(r.min)&&Math.round(t.max)===Math.round(r.max)}function wv(t,r){return Ym(t.x,r.x)&&Ym(t.y,r.y)}function Xm(t){return gt(t.x)/gt(t.y)}function Qm(t,r){return t.translate===r.translate&&t.scale===r.scale&&t.originPoint===r.originPoint}class dC{constructor(){this.members=[]}add(r){nd(this.members,r),r.scheduleRender()}remove(r){if(rd(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(r){const i=this.members.findIndex(l=>r===l);if(i===0)return!1;let s;for(let l=i;l>=0;l--){const u=this.members[l];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(r,i){const s=this.lead;if(r!==s&&(this.prevLead=s,this.lead=r,r.show(),s)){s.instance&&s.scheduleRender(),r.scheduleRender(),r.resumeFrom=s,i&&(r.resumeFrom.preserveOpacity=!0),s.snapshot&&(r.snapshot=s.snapshot,r.snapshot.latestValues=s.animationValues||s.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:l}=r.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:i,resumingFrom:s}=r;i.onExitComplete&&i.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fC(t,r,i){let s="";const l=t.x.translate/r.x,u=t.y.translate/r.y,c=i?.z||0;if((l||u||c)&&(s=`translate3d(${l}px, ${u}px, ${c}px) `),(r.x!==1||r.y!==1)&&(s+=`scale(${1/r.x}, ${1/r.y}) `),i){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:w,skewX:b,skewY:T}=i;g&&(s=`perspective(${g}px) ${s}`),y&&(s+=`rotate(${y}deg) `),v&&(s+=`rotateX(${v}deg) `),w&&(s+=`rotateY(${w}deg) `),b&&(s+=`skewX(${b}deg) `),T&&(s+=`skewY(${T}deg) `)}const p=t.x.scale*r.x,m=t.y.scale*r.y;return(p!==1||m!==1)&&(s+=`scale(${p}, ${m})`),s||"none"}const eu=["","X","Y","Z"],pC=1e3;let hC=0;function tu(t,r,i,s){const{latestValues:l}=r;l[t]&&(i[t]=l[t],r.setStaticValue(t,0),s&&(s[t]=0))}function Sv(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:r}=t.options;if(!r)return;const i=sv(r);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:l,layoutId:u}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",_e,!(l||u))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Sv(s)}function kv({attachResizeListener:t,defaultParent:r,measureScroll:i,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(c={},p=r?.()){this.id=hC++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yC),this.nodes.forEach(SC),this.nodes.forEach(kC),this.nodes.forEach(vC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;mthis.root.updateBlockedByResize=!1;_e.read(()=>{v=window.innerWidth}),t(c,()=>{const b=window.innerWidth;b!==v&&(v=b,this.root.updateBlockedByResize=!0,y&&y(),y=nC(w,250),xa.hasAnimatedSinceResize&&(xa.hasAnimatedSinceResize=!1,this.nodes.forEach(Jm)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||g.getDefaultTransition()||jC,{onLayoutAnimationStart:k,onLayoutAnimationComplete:N}=g.getProps(),P=!this.targetLayout||!wv(this.targetLayout,b),A=!v&&w;if(this.options.layoutRoot||this.resumeFrom||A||v&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...xd(T,"layout"),onPlay:k,onComplete:N};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,A)}else v||Jm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Jn(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(bC),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!gt(this.snapshot.measuredBox.x)&&!gt(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 m=0;m{const V=O/1e3;eg(v.x,c.x,V),eg(v.y,c.y,V),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NC(this.relativeTarget,this.relativeTargetOrigin,w,V),M&&uC(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=$e()),zt(M,this.relativeTarget)),k&&(this.animationValues=y,iC(y,g,this.latestValues,V,A,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{xa.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wi(0)),this.currentAnimation=Jb(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),c.onUpdate&&c.onUpdate(p)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:y}=c;if(!(!p||!m||!g)){if(this!==c&&this.layout&&g&&bv(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||$e();const v=gt(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+v;const w=gt(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+w}zt(p,m),pi(p,y),Ro(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(c,p){this.sharedNodes.has(c)||this.sharedNodes.set(c,new dC),this.sharedNodes.get(c).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let p=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&tu("z",c,g,this.animationValues);for(let y=0;yc.currentAnimation?.stop()),this.root.nodes.forEach(qm),this.root.sharedNodes.clear()}}}function mC(t){t.updateLayout()}function gC(t){const r=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:l}=t.options,u=r.source!==t.layout.source;l==="size"?Bt(y=>{const v=u?r.measuredBox[y]:r.layoutBox[y],w=gt(v);v.min=i[y].min,v.max=v.min+w}):bv(l,r.layoutBox,i)&&Bt(y=>{const v=u?r.measuredBox[y]:r.layoutBox[y],w=gt(i[y]);v.max=v.min+w,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+w)});const c=hi();Ro(c,i,r.layoutBox);const p=hi();u?Ro(p,t.applyTransform(s,!0),r.measuredBox):Ro(p,i,r.layoutBox);const m=!xv(c);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:v,layout:w}=y;if(v&&w){const b=$e();Mo(b,r.layoutBox,v.layoutBox);const T=$e();Mo(T,i,w.layoutBox),wv(b,T)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=T,t.relativeTargetOrigin=b,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:p,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function yC(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function vC(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function xC(t){t.clearSnapshot()}function qm(t){t.clearMeasurements()}function Zm(t){t.isLayoutDirty=!1}function wC(t){const{visualElement:r}=t.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),t.resetTransform()}function Jm(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function SC(t){t.resolveTargetDelta()}function kC(t){t.calcProjection()}function bC(t){t.resetSkewAndRotation()}function CC(t){t.removeLeadSnapshot()}function eg(t,r,i){t.translate=Fe(r.translate,0,i),t.scale=Fe(r.scale,1,i),t.origin=r.origin,t.originPoint=r.originPoint}function tg(t,r,i,s){t.min=Fe(r.min,i.min,s),t.max=Fe(r.max,i.max,s)}function NC(t,r,i,s){tg(t.x,r.x,i.x,s),tg(t.y,r.y,i.y,s)}function TC(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const jC={duration:.45,ease:[.4,0,.1,1]},ng=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rg=ng("applewebkit/")&&!ng("chrome/")?Math.round:Ut;function ig(t){t.min=rg(t.min),t.max=rg(t.max)}function PC(t){ig(t.x),ig(t.y)}function bv(t,r,i){return t==="position"||t==="preserve-aspect"&&!Db(Xm(r),Xm(i),.2)}function EC(t){return t!==t.root&&t.scroll?.wasRoot}const AC=kv({attachResizeListener:(t,r)=>Vo(t,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nu={current:void 0},Cv=kv({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nu.current){const t=new AC({});t.mount(window),t.setOptions({layoutScroll:!0}),nu.current=t}return nu.current},resetTransform:(t,r)=>{t.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),RC={pan:{Feature:Xb},drag:{Feature:Yb,ProjectionNode:Cv,MeasureLayout:gv}};function og(t,r,i){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",i==="Start");const l="onHover"+i,u=s[l];u&&_e.postRender(()=>u(r,Ko(r)))}class MC extends ir{mount(){const{current:r}=this.node;r&&(this.unmount=JS(r,(i,s)=>(og(this.node,s,"Start"),l=>og(this.node,l,"End"))))}unmount(){}}class IC extends ir{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!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=Uo(Vo(this.node.current,"focus",()=>this.onFocus()),Vo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sg(t,r,i){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",i==="Start");const l="onTap"+(i==="End"?"":i),u=s[l];u&&_e.postRender(()=>u(r,Ko(r)))}class DC extends ir{mount(){const{current:r}=this.node;r&&(this.unmount=rk(r,(i,s)=>(sg(this.node,s,"Start"),(l,{success:u})=>sg(this.node,l,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _u=new WeakMap,ru=new WeakMap,LC=t=>{const r=_u.get(t.target);r&&r(t)},_C=t=>{t.forEach(LC)};function OC({root:t,...r}){const i=t||document;ru.has(i)||ru.set(i,{});const s=ru.get(i),l=JSON.stringify(r);return s[l]||(s[l]=new IntersectionObserver(_C,{root:t,...r})),s[l]}function VC(t,r,i){const s=OC(r);return _u.set(t,i),s.observe(t),()=>{_u.delete(t),s.unobserve(t)}}const FC={some:0,all:1};class zC extends ir{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:i,margin:s,amount:l="some",once:u}=r,c={root:i?i.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:FC[l]},p=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),w=g?y:v;w&&w(m)};return VC(this.node.current,c,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:i}=this.node;["amount","margin","root"].some(BC(r,i))&&this.startObserver()}unmount(){}}function BC({viewport:t={}},{viewport:r={}}={}){return i=>t[i]!==r[i]}const HC={inView:{Feature:zC},tap:{Feature:DC},focus:{Feature:IC},hover:{Feature:MC}},UC={layout:{ProjectionNode:Cv,MeasureLayout:gv}},WC={...Pb,...HC,...RC,...UC},H=Wk(WC,rb);function ag(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Nv(...t){return r=>{let i=!1;const s=t.map(l=>{const u=ag(l,r);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let l=0;l{const{children:u,...c}=s,p=S.Children.toArray(u),m=p.find(GC);if(m){const g=m.props.children,y=p.map(v=>v===m?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:v);return f.jsx(r,{...c,ref:l,children:S.isValidElement(g)?S.cloneElement(g,void 0,y):null})}return f.jsx(r,{...c,ref:l,children:u})});return i.displayName=`${t}.Slot`,i}var Tv=Fo("Slot");function $C(t){const r=S.forwardRef((i,s)=>{const{children:l,...u}=i;if(S.isValidElement(l)){const c=XC(l),p=YC(u,l.props);return l.type!==S.Fragment&&(p.ref=s?Nv(s,c):c),S.cloneElement(l,p)}return S.Children.count(l)>1?S.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var KC=Symbol("radix.slottable");function GC(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===KC}function YC(t,r){const i={...r};for(const s in r){const l=t[s],u=r[s];/^on[A-Z]/.test(s)?l&&u?i[s]=(...p)=>{const m=u(...p);return l(...p),m}:l&&(i[s]=l):s==="style"?i[s]={...l,...u}:s==="className"&&(i[s]=[l,u].filter(Boolean).join(" "))}return{...t,...i}}function XC(t){let r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?t.ref:(r=Object.getOwnPropertyDescriptor(t,"ref")?.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}function jv(t){var r,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(r=0;rtypeof t=="boolean"?`${t}`:t===0?"0":t,cg=Pv,Ev=(t,r)=>i=>{var s;if(r?.variants==null)return cg(t,i?.class,i?.className);const{variants:l,defaultVariants:u}=r,c=Object.keys(l).map(g=>{const y=i?.[g],v=u?.[g];if(y===null)return null;const w=lg(y)||lg(v);return l[g][w]}),p=i&&Object.entries(i).reduce((g,y)=>{let[v,w]=y;return w===void 0||(g[v]=w),g},{}),m=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:v,className:w,...b}=y;return Object.entries(b).every(T=>{let[k,N]=T;return Array.isArray(N)?N.includes({...u,...p}[k]):{...u,...p}[k]===N})?[...g,v,w]:g},[]);return cg(t,c,m,i?.class,i?.className)},Id="-",QC=t=>{const r=ZC(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:c=>{const p=c.split(Id);return p[0]===""&&p.length!==1&&p.shift(),Av(p,r)||qC(c)},getConflictingClassGroupIds:(c,p)=>{const m=i[c]||[];return p&&s[c]?[...m,...s[c]]:m}}},Av=(t,r)=>{if(t.length===0)return r.classGroupId;const i=t[0],s=r.nextPart.get(i),l=s?Av(t.slice(1),s):void 0;if(l)return l;if(r.validators.length===0)return;const u=t.join(Id);return r.validators.find(({validator:c})=>c(u))?.classGroupId},ug=/^\[(.+)\]$/,qC=t=>{if(ug.test(t)){const r=ug.exec(t)[1],i=r?.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},ZC=t=>{const{theme:r,classGroups:i}=t,s={nextPart:new Map,validators:[]};for(const l in i)Ou(i[l],s,l,r);return s},Ou=(t,r,i,s)=>{t.forEach(l=>{if(typeof l=="string"){const u=l===""?r:dg(r,l);u.classGroupId=i;return}if(typeof l=="function"){if(JC(l)){Ou(l(s),r,i,s);return}r.validators.push({validator:l,classGroupId:i});return}Object.entries(l).forEach(([u,c])=>{Ou(c,dg(r,u),i,s)})})},dg=(t,r)=>{let i=t;return r.split(Id).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},JC=t=>t.isThemeGetter,e2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,s=new Map;const l=(u,c)=>{i.set(u,c),r++,r>t&&(r=0,s=i,i=new Map)};return{get(u){let c=i.get(u);if(c!==void 0)return c;if((c=s.get(u))!==void 0)return l(u,c),c},set(u,c){i.has(u)?i.set(u,c):l(u,c)}}},Vu="!",Fu=":",t2=Fu.length,n2=t=>{const{prefix:r,experimentalParseClassName:i}=t;let s=l=>{const u=[];let c=0,p=0,m=0,g;for(let T=0;Tm?g-m:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:b}};if(r){const l=r+Fu,u=s;s=c=>c.startsWith(l)?u(c.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(i){const l=s;s=u=>i({className:u,parseClassName:l})}return s},r2=t=>t.endsWith(Vu)?t.substring(0,t.length-1):t.startsWith(Vu)?t.substring(1):t,i2=t=>{const r=Object.fromEntries(t.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const l=[];let u=[];return s.forEach(c=>{c[0]==="["||r[c]?(l.push(...u.sort(),c),u=[]):u.push(c)}),l.push(...u.sort()),l}},o2=t=>({cache:e2(t.cacheSize),parseClassName:n2(t),sortModifiers:i2(t),...QC(t)}),s2=/\s+/,a2=(t,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u}=r,c=[],p=t.trim().split(s2);let m="";for(let g=p.length-1;g>=0;g-=1){const y=p[g],{isExternal:v,modifiers:w,hasImportantModifier:b,baseClassName:T,maybePostfixModifierPosition:k}=i(y);if(v){m=y+(m.length>0?" "+m:m);continue}let N=!!k,P=s(N?T.substring(0,k):T);if(!P){if(!N){m=y+(m.length>0?" "+m:m);continue}if(P=s(T),!P){m=y+(m.length>0?" "+m:m);continue}N=!1}const A=u(w).join(":"),M=b?A+Vu:A,O=M+P;if(c.includes(O))continue;c.push(O);const V=l(P,N);for(let U=0;U0?" "+m:m)}return m};function l2(){let t=0,r,i,s="";for(;t{if(typeof t=="string")return t;let r,i="";for(let s=0;sv(y),t());return i=o2(g),s=i.cache.get,l=i.cache.set,u=p,p(m)}function p(m){const g=s(m);if(g)return g;const y=a2(m,i);return l(m,y),y}return function(){return u(l2.apply(null,arguments))}}const Ze=t=>{const r=i=>i[t]||[];return r.isThemeGetter=!0,r},Mv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,u2=/^\d+\/\d+$/,d2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,h2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,si=t=>u2.test(t),Ce=t=>!!t&&!Number.isNaN(Number(t)),Yn=t=>!!t&&Number.isInteger(Number(t)),iu=t=>t.endsWith("%")&&Ce(t.slice(0,-1)),Cn=t=>d2.test(t),g2=()=>!0,y2=t=>f2.test(t)&&!p2.test(t),Dv=()=>!1,v2=t=>h2.test(t),x2=t=>m2.test(t),w2=t=>!ne(t)&&!re(t),S2=t=>Ti(t,Ov,Dv),ne=t=>Mv.test(t),kr=t=>Ti(t,Vv,y2),ou=t=>Ti(t,T2,Ce),fg=t=>Ti(t,Lv,Dv),k2=t=>Ti(t,_v,x2),la=t=>Ti(t,Fv,v2),re=t=>Iv.test(t),So=t=>ji(t,Vv),b2=t=>ji(t,j2),pg=t=>ji(t,Lv),C2=t=>ji(t,Ov),N2=t=>ji(t,_v),ca=t=>ji(t,Fv,!0),Ti=(t,r,i)=>{const s=Mv.exec(t);return s?s[1]?r(s[1]):i(s[2]):!1},ji=(t,r,i=!1)=>{const s=Iv.exec(t);return s?s[1]?r(s[1]):i:!1},Lv=t=>t==="position"||t==="percentage",_v=t=>t==="image"||t==="url",Ov=t=>t==="length"||t==="size"||t==="bg-size",Vv=t=>t==="length",T2=t=>t==="number",j2=t=>t==="family-name",Fv=t=>t==="shadow",P2=()=>{const t=Ze("color"),r=Ze("font"),i=Ze("text"),s=Ze("font-weight"),l=Ze("tracking"),u=Ze("leading"),c=Ze("breakpoint"),p=Ze("container"),m=Ze("spacing"),g=Ze("radius"),y=Ze("shadow"),v=Ze("inset-shadow"),w=Ze("text-shadow"),b=Ze("drop-shadow"),T=Ze("blur"),k=Ze("perspective"),N=Ze("aspect"),P=Ze("ease"),A=Ze("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...O(),re,ne],U=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],F=()=>[re,ne,m],J=()=>[si,"full","auto",...F()],ce=()=>[Yn,"none","subgrid",re,ne],ye=()=>["auto",{span:["full",Yn,re,ne]},Yn,re,ne],xe=()=>[Yn,"auto",re,ne],me=()=>["auto","min","max","fr",re,ne],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],se=()=>["auto",...F()],q=()=>[si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],I=()=>[t,re,ne],Q=()=>[...O(),pg,fg,{position:[re,ne]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",C2,S2,{size:[re,ne]}],B=()=>[iu,So,kr],oe=()=>["","none","full",g,re,ne],ae=()=>["",Ce,So,kr],Se=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Ce,iu,pg,fg],ue=()=>["","none",T,re,ne],ve=()=>["none",Ce,re,ne],ke=()=>["none",Ce,re,ne],Te=()=>[Ce,re,ne],Re=()=>[si,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Cn],breakpoint:[Cn],color:[g2],container:[Cn],"drop-shadow":[Cn],ease:["in","out","in-out"],font:[w2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Cn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Cn],shadow:[Cn],spacing:["px",Ce],text:[Cn],"text-shadow":[Cn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",si,ne,re,N]}],container:["container"],columns:[{columns:[Ce,ne,re,p]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Yn,"auto",re,ne]}],basis:[{basis:[si,"full","auto",p,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,si,"auto","initial","none",ne]}],grow:[{grow:["",Ce,re,ne]}],shrink:[{shrink:["",Ce,re,ne]}],order:[{order:[Yn,"first","last","none",re,ne]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":xe()}],"col-end":[{"col-end":xe()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":xe()}],"row-end":[{"row-end":xe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[p,"screen",...q()]}],"min-w":[{"min-w":[p,"screen","none",...q()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",i,So,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,re,ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iu,ne]}],"font-family":[{font:[b2,ne,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,re,ne]}],"line-clamp":[{"line-clamp":[Ce,"none",re,ou]}],leading:[{leading:[u,...F()]}],"list-image":[{"list-image":["none",re,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",re,kr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Ce,"auto",re,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,re,ne],radial:["",re,ne],conic:[Yn,re,ne]},N2,k2]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,re,ne]}],"outline-w":[{outline:["",Ce,So,kr]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",y,ca,la]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",v,ca,la]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Ce,kr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",w,ca,la]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Ce,re,ne]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[re,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ne]}],filter:[{filter:["","none",re,ne]}],blur:[{blur:ue()}],brightness:[{brightness:[Ce,re,ne]}],contrast:[{contrast:[Ce,re,ne]}],"drop-shadow":[{"drop-shadow":["","none",b,ca,la]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Ce,re,ne]}],"hue-rotate":[{"hue-rotate":[Ce,re,ne]}],invert:[{invert:["",Ce,re,ne]}],saturate:[{saturate:[Ce,re,ne]}],sepia:[{sepia:["",Ce,re,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ne]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,re,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,re,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,re,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,re,ne]}],"backdrop-invert":[{"backdrop-invert":["",Ce,re,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,re,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,re,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,re,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",re,ne]}],ease:[{ease:["linear","initial",P,re,ne]}],delay:[{delay:[Ce,re,ne]}],animate:[{animate:["none",A,re,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,re,ne]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[re,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re,ne]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Ce,So,kr,ou]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},E2=c2(P2);function pt(...t){return E2(Pv(t))}const A2=Ev("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function ft({className:t,variant:r,size:i,asChild:s=!1,...l}){const u=s?Tv:"button";return f.jsx(u,{"data-slot":"button",className:pt(A2({variant:r,size:i,className:t})),...l})}/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R2=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M2=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.toUpperCase():i.toLowerCase()),hg=t=>{const r=M2(t);return r.charAt(0).toUpperCase()+r.slice(1)},zv=(...t)=>t.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var I2={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"};/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D2=S.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:l="",children:u,iconNode:c,...p},m)=>S.createElement("svg",{ref:m,...I2,width:r,height:r,stroke:t,strokeWidth:s?Number(i)*24/Number(r):i,className:zv("lucide",l),...p},[...c.map(([g,y])=>S.createElement(g,y)),...Array.isArray(u)?u:[u]]));/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ee=(t,r)=>{const i=S.forwardRef(({className:s,...l},u)=>S.createElement(D2,{ref:u,iconNode:r,className:zv(`lucide-${R2(hg(t))}`,`lucide-${t}`,s),...l}));return i.displayName=hg(t),i};/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const L2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Bv=Ee("arrow-left",L2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _2=[["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"}]],O2=Ee("award",_2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const V2=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],F2=Ee("building",V2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Hv=Ee("calendar",z2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B2=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Pi=Ee("car",B2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],U2=Ee("check",H2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uv=Ee("chevron-down",W2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],K2=Ee("chevron-up",$2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Wv=Ee("circle-check-big",G2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],X2=Ee("circle-check",Y2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Mr=Ee("clock",Q2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q2=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Z2=Ee("facebook",q2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J2=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],eN=Ee("gift",J2);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tN=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],nN=Ee("instagram",tN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rN=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],iN=Ee("linkedin",rN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],sN=Ee("loader-circle",oN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const aN=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Oa=Ee("mail",aN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lN=[["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"}]],tr=Ee("map-pin",lN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cN=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],uN=Ee("menu",cN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dN=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],pn=Ee("phone",dN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fN=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],pN=Ee("plane",fN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],mg=Ee("send",hN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mN=[["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"}]],Dd=Ee("shield",mN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gN=[["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"}]],Va=Ee("star",gN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yN=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],vN=Ee("truck",yN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xN=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],wN=Ee("twitter",xN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const SN=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],$v=Ee("user",SN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kN=[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Ei=Ee("users",kN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gg=Ee("x",bN);/** + * @license lucide-react v0.487.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CN=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],NN=Ee("zap",CN);function TN({onClick:t}){return f.jsx(H.button,{onClick:t,className:"flex items-center hover:opacity-80 transition-opacity",whileHover:{scale:1.05},whileTap:{scale:.95},initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6,ease:"easeOut"},children:f.jsx(H.img,{alt:"Sangwari Taxi Logo",className:"h-10 w-auto object-contain",animate:{scale:[1,1.02,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}})})}function jN({currentPage:t,onNavigate:r}){const[i,s]=S.useState(!1),l=[{id:"home",label:"Home"},{id:"services",label:"Services"},{id:"about",label:"About"},{id:"contact",label:"Contact"}],u=c=>{r(c),s(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(H.header,{className:"border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:"easeOut"},children:f.jsxs("div",{className:"container mx-auto px-4 h-14 sm:h-16 flex items-center justify-between",children:[f.jsx(TN,{onClick:()=>u("home")}),f.jsx("nav",{className:"hidden md:flex items-center gap-4 lg:gap-6",children:l.map((c,p)=>f.jsxs(H.button,{onClick:()=>u(c.id),className:`relative transition-colors text-sm lg:text-base ${t===c.id?"text-foreground font-medium":"text-muted-foreground hover:text-foreground"}`,whileHover:{y:-2},whileTap:{y:0},initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:p*.1+.3},children:[c.label,t===c.id&&f.jsx(H.div,{className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-primary rounded-full",layoutId:"activeTab",transition:{duration:.3}})]},c.id))}),f.jsxs(H.div,{className:"flex items-center gap-2",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:[f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"hidden sm:block",children:f.jsxs(ft,{variant:"outline",size:"sm",className:"bg-primary/5 border-primary/20 hover:bg-primary hover:text-primary-foreground text-xs lg:text-sm px-2 lg:px-3",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"h-3 w-3 lg:h-4 lg:w-4 mr-1 lg:mr-2"}),f.jsx("span",{className:"hidden lg:inline",children:"7477247488"}),f.jsx("span",{className:"lg:hidden",children:"Call"})]})}),f.jsx(H.div,{whileHover:{scale:1.1},whileTap:{scale:.9},children:f.jsx(ft,{variant:"ghost",size:"sm",className:"md:hidden p-2",onClick:()=>s(!i),children:i?f.jsx(gg,{className:"h-4 w-4"}):f.jsx(uN,{className:"h-4 w-4"})})})]})]})}),f.jsx(Pu,{children:i&&f.jsxs(H.div,{className:"fixed inset-0 z-50 md:hidden",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[f.jsx(H.div,{className:"absolute inset-0 bg-black/50",onClick:()=>s(!1)}),f.jsx(H.div,{className:"absolute top-0 right-0 h-full w-72 max-w-[80vw] bg-background border-l shadow-xl",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:300},children:f.jsxs("div",{className:"p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-8",children:[f.jsx("h2",{className:"text-lg font-semibold",children:"Menu"}),f.jsx(ft,{variant:"ghost",size:"sm",onClick:()=>s(!1),className:"p-2",children:f.jsx(gg,{className:"h-4 w-4"})})]}),f.jsx("nav",{className:"space-y-4",children:l.map((c,p)=>f.jsx(H.button,{onClick:()=>u(c.id),className:`block w-full text-left py-3 px-4 rounded-lg transition-colors ${t===c.id?"bg-primary text-primary-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:p*.1},children:c.label},c.id))}),f.jsx(H.div,{className:"mt-8 pt-6 border-t",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:f.jsxs(ft,{className:"w-full bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white",onClick:()=>{window.open("tel:+91-7477247488","_self"),s(!1)},children:[f.jsx(pn,{className:"h-4 w-4 mr-2"}),"Call Sangwari Taxi"]})})]})})]})})]})}var Go=$g();const PN=Wg(Go);var EN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=EN.reduce((t,r)=>{const i=Fo(`Primitive.${r}`),s=S.forwardRef((l,u)=>{const{asChild:c,...p}=l,m=c?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(m,{...p,ref:u})});return s.displayName=`Primitive.${r}`,{...t,[r]:s}},{});function AN(t,r){t&&Go.flushSync(()=>t.dispatchEvent(r))}var RN="Separator",yg="horizontal",MN=["horizontal","vertical"],Kv=S.forwardRef((t,r)=>{const{decorative:i,orientation:s=yg,...l}=t,u=IN(s)?s:yg,p=i?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return f.jsx(ze.div,{"data-orientation":u,...p,...l,ref:r})});Kv.displayName=RN;function IN(t){return MN.includes(t)}var DN=Kv;function zu({className:t,orientation:r="horizontal",decorative:i=!0,...s}){return f.jsx(DN,{"data-slot":"separator-root",decorative:i,orientation:r,className:pt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...s})}function LN({onNavigate:t}){const r=new Date().getFullYear(),i={company:[{label:"About Us",action:()=>t("about")},{label:"Services",action:()=>t("services")},{label:"Contact",action:()=>t("contact")},{label:"Careers",action:()=>{}}],support:[{label:"Help Center",action:()=>{}},{label:"Safety",action:()=>{}},{label:"Terms of Service",action:()=>{}},{label:"Privacy Policy",action:()=>{}}],services:[{label:"City Rides",action:()=>t("services")},{label:"Airport Taxi",action:()=>t("services")},{label:"Corporate Services",action:()=>t("services")}]},s=[{icon:Z2,href:"#",label:"Facebook"},{icon:wN,href:"#",label:"Twitter"},{icon:nN,href:"#",label:"Instagram"},{icon:iN,href:"#",label:"LinkedIn"}];return f.jsxs("footer",{className:"bg-muted/30 border-t",children:[f.jsx("div",{className:"bg-primary text-primary-foreground",children:f.jsx("div",{className:"container mx-auto px-4 py-6 sm:py-8",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h3",{className:"text-xl sm:text-2xl font-semibold mb-2",children:"Need a Ride Right Now?"}),f.jsx("p",{className:"text-sm sm:text-base text-primary-foreground/80 mb-4 px-4",children:"Call us directly for immediate booking and assistance"}),f.jsxs(ft,{size:"lg",variant:"secondary",className:"bg-white text-primary hover:bg-white/90 h-11 sm:h-12 text-sm sm:text-base",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"mr-2 h-4 w-4 sm:h-5 sm:w-5"}),"Call Sangwari Taxi"]})]})})}),f.jsxs("div",{className:"container mx-auto px-4 py-8 sm:py-12",children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-6 sm:gap-8",children:[f.jsxs("div",{className:"lg:col-span-2 sm:col-span-2",children:[f.jsx("div",{className:"flex items-center mb-4",children:f.jsx("img",{alt:"Sangwari Taxi Logo",className:"h-6 sm:h-8 w-auto object-contain"})}),f.jsx("p",{className:"text-muted-foreground mb-4 sm:mb-6 max-w-md text-sm sm:text-base",children:"Your trusted transportation partner. Safe, reliable, and convenient rides available 24/7 in over 25 cities."}),f.jsxs("div",{className:"space-y-2 mb-4 sm:mb-6",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs sm:text-sm",children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0"}),f.jsx("button",{onClick:()=>window.open("tel:+91-7477247488","_self"),className:"hover:text-primary transition-colors",children:"7477247488"})]}),f.jsxs("div",{className:"flex items-center gap-2 text-xs sm:text-sm",children:[f.jsx(Oa,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0"}),f.jsx("span",{className:"break-all",children:"bookme@sangwaritaxi.com"})]}),f.jsxs("div",{className:"flex items-start gap-2 text-xs sm:text-sm",children:[f.jsx(tr,{className:"h-3 w-3 sm:h-4 sm:w-4 text-primary flex-shrink-0 mt-0.5"}),f.jsx("span",{className:"leading-tight",children:"Commercial complex second floor Nehru Nagar east Bhilai beside state bank Pin 490020"})]})]}),f.jsx("div",{className:"flex gap-1 sm:gap-2",children:s.map((l,u)=>f.jsxs(ft,{variant:"ghost",size:"sm",className:"p-1.5 sm:p-2",children:[f.jsx(l.icon,{className:"h-3 w-3 sm:h-4 sm:w-4"}),f.jsx("span",{className:"sr-only",children:l.label})]},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Company"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.company.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Support"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.support.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-medium mb-3 sm:mb-4 text-sm sm:text-base",children:"Services"}),f.jsx("ul",{className:"space-y-1.5 sm:space-y-2",children:i.services.map((l,u)=>f.jsx("li",{children:f.jsx("button",{onClick:l.action,className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors text-left",children:l.label})},u))})]})]}),f.jsx(zu,{className:"my-6 sm:my-8"}),f.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-center gap-3 sm:gap-4",children:[f.jsxs("p",{className:"text-xs sm:text-sm text-muted-foreground text-center sm:text-left",children:["© ",r," Sangwari Taxi. All rights reserved."]}),f.jsxs("div",{className:"flex gap-4 sm:gap-6",children:[f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Terms"}),f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Privacy"}),f.jsx("button",{className:"text-xs sm:text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Cookies"})]})]})]})]})}function _N(){return f.jsx(H.div,{className:"fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-50",initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:1,type:"spring",stiffness:200,damping:20},whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsxs("div",{className:"relative bg-gradient-to-r from-green-500 to-green-600 rounded-full shadow-xl border-2 sm:border-4 border-white/30",children:[f.jsxs(ft,{size:"lg",className:"bg-transparent hover:bg-white/10 border-0 px-3 py-2 sm:px-4 sm:py-2 h-auto rounded-full",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx("div",{className:"mr-1 sm:mr-2",children:f.jsx(pn,{className:"h-4 w-4 sm:h-5 sm:w-5 text-white"})}),f.jsxs("div",{className:"text-white",children:[f.jsx("div",{className:"text-xs sm:text-sm font-bold",children:"Call to Book"}),f.jsx("div",{className:"text-xs opacity-90",children:"7477247488"})]})]}),f.jsx(H.div,{className:"absolute inset-0 rounded-full bg-green-400/50",animate:{scale:[1,1.5,1],opacity:[.7,0,.7]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}})]})})}function Rt({className:t,...r}){return f.jsx("div",{"data-slot":"card",className:pt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border",t),...r})}function gi({className:t,...r}){return f.jsx("div",{"data-slot":"card-header",className:pt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function yi({className:t,...r}){return f.jsx("h4",{"data-slot":"card-title",className:pt("leading-none",t),...r})}function Mt({className:t,...r}){return f.jsx("div",{"data-slot":"card-content",className:pt("px-6 [&:last-child]:pb-6",t),...r})}const ON=Ev("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function zo({className:t,variant:r,asChild:i=!1,...s}){const l=i?Tv:"span";return f.jsx(l,{"data-slot":"badge",className:pt(ON({variant:r}),t),...s})}const VN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";function Ld(t){const[r,i]=S.useState(!1),s=()=>{i(!0)},{src:l,alt:u,style:c,className:p,...m}=t;return r?f.jsx("div",{className:`inline-block bg-gray-100 text-center align-middle ${p??""}`,style:c,children:f.jsx("div",{className:"flex items-center justify-center w-full h-full",children:f.jsx("img",{src:VN,alt:"Error loading image",...m,"data-original-url":l})})}):f.jsx("img",{src:l,alt:u,className:p,style:c,...m,onError:s})}const FN=[{icon:Pi,title:"City Rides",description:"Quick and reliable transportation within the city. Perfect for daily commutes, shopping trips, and short-distance travel.",features:["24/7 availability","Real-time tracking","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1675258333361-939f49c707c3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjaXR5JTIwdGF4aSUyMHVyYmFuJTIwdHJhbnNwb3J0fGVufDF8fHx8MTc1NTYwMDc5OXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Yellow taxi in busy city street"},{icon:pN,title:"Airport Taxi",description:"Comfortable and punctual airport taxi services. Never miss a flight with our dedicated airport service.",features:["Flight monitoring","Meet & greet service","Fixed rate ₹1099"],price:"₹1099",image:"https://images.unsplash.com/photo-1733222012917-e9e74636080c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxhaXJwb3J0JTIwdHJhbnNmZXIlMjBjYXIlMjBzZXJ2aWNlfGVufDF8fHx8MTc1NTYwMDgwM3ww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Premium car at airport terminal"},{icon:tr,title:"Outstation",description:"Long-distance travel services for intercity trips. Comfortable rides for outstation journeys across India.",features:["All India coverage","Experienced drivers","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1677475718181-dc19b4e12c5a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxvdXRzdGF0aW9uJTIwdHJhdmVsJTIwY2FyJTIwaGlnaHdheXxlbnwxfHx8fDE3NTY1Mzc1NjN8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Car on highway for outstation travel"},{icon:vN,title:"Mover and Packer",description:"Professional moving and packing services. Safe and secure transportation of your belongings with expert handling.",features:["Professional packing","Safe transportation","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1707407087163-7ab35bca9ffc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxtb3ZpbmclMjB0cnVjayUyMHBhY2tlciUyMHNlcnZpY2V8ZW58MXx8fHwxNzU2NTM3NTY2fDA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Moving truck and packing services"},{icon:F2,title:"Corporate Services",description:"Professional transportation solutions for businesses. Reliable service for meetings, events, and client visits.",features:["Corporate accounts","Invoicing","Customize price"],price:"Customize Price",image:"https://images.unsplash.com/photo-1748493536747-9af61d8b440a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb3Jwb3JhdGUlMjBidXNpbmVzcyUyMGNhciUyMGV4ZWN1dGl2ZXxlbnwxfHx8fDE3NTU2MDA4MDZ8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",imageAlt:"Executive business car for corporate services"}],zN=[{icon:Mr,title:"Scheduled Rides",description:"Book your rides in advance for important appointments and events."},{icon:Dd,title:"Premium Protection",description:"Enhanced safety features and insurance coverage for peace of mind."}],BN={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},HN={hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}};function Gv(){return f.jsx("div",{className:"py-8 sm:py-12 lg:py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(H.div,{className:"text-center mb-8 sm:mb-10 lg:mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[f.jsx("h1",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl font-normal font-bold",children:"Our Services"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-3xl mx-auto px-4",children:"From daily commutes to special occasions, we provide reliable transportation solutions tailored to your needs with professional drivers and well-maintained vehicles."})]}),f.jsx(H.div,{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 sm:gap-6 lg:gap-8 mb-8 sm:mb-10 lg:mb-12",variants:BN,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:FN.map((t,r)=>f.jsx(H.div,{variants:HN,whileHover:{y:-8,transition:{duration:.3}},children:f.jsxs(Rt,{className:"h-full overflow-hidden group hover:shadow-xl transition-all duration-300",children:[f.jsxs("div",{className:"relative h-40 sm:h-44 lg:h-48 overflow-hidden",children:[f.jsx(H.div,{className:"absolute inset-0",whileHover:{scale:1.1},transition:{duration:.4},children:f.jsx(Ld,{src:t.image,alt:t.imageAlt,className:"w-full h-full object-cover"})}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),f.jsx(H.div,{className:"absolute bottom-4 left-4",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:!0},transition:{delay:r*.2+.5},children:f.jsx("div",{className:"w-12 h-12 bg-white/90 backdrop-blur-sm rounded-lg flex items-center justify-center",children:f.jsx(H.div,{animate:{rotate:[0,10,-10,0],scale:[1,1.1,1]},transition:{duration:4,repeat:1/0,ease:"easeInOut"},children:f.jsx(t.icon,{className:"h-6 w-6 text-primary"})})})}),f.jsx(H.div,{className:"absolute top-4 right-4",initial:{x:50,opacity:0},whileInView:{x:0,opacity:1},viewport:{once:!0},transition:{delay:r*.2+.3},children:f.jsx(zo,{className:"bg-white/90 text-foreground backdrop-blur-sm",children:t.price})})]}),f.jsx(gi,{children:f.jsx(H.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.2+.4},children:f.jsx(yi,{className:"group-hover:text-primary transition-colors font-bold",children:t.title})})}),f.jsxs(Mt,{className:"pt-0 px-4 sm:px-6",children:[f.jsx(H.p,{className:"text-muted-foreground mb-3 sm:mb-4 text-sm sm:text-base",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{delay:r*.2+.5},children:t.description}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.2+.6},children:[f.jsx("h4",{children:"Features:"}),f.jsx("ul",{className:"space-y-1",children:t.features.map((i,s)=>f.jsxs(H.li,{className:"flex items-center gap-2 text-sm text-muted-foreground",initial:{opacity:0,x:-10},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:r*.2+.7+s*.1},children:[f.jsx(H.div,{className:"w-1.5 h-1.5 bg-primary rounded-full",animate:{scale:[1,1.5,1],opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0,delay:s*.3}}),i]},s))})]})]})]})},r))}),f.jsxs(H.div,{className:"bg-muted/50 rounded-lg p-8",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:[f.jsx(H.h2,{className:"mb-6 text-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},children:"Additional Services"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:zN.map((t,r)=>f.jsxs(H.div,{className:"flex items-center gap-4 p-4 rounded-lg hover:bg-background/50 transition-colors group",initial:{opacity:0,x:r%2===0?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.4+r*.1},whileHover:{x:5},children:[f.jsx(H.div,{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",animate:{rotate:[0,360]},transition:{duration:20,repeat:1/0,ease:"linear"},children:f.jsx(t.icon,{className:"h-5 w-5 text-primary"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-1 group-hover:text-primary transition-colors",children:t.title}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]})]},r))})]}),f.jsxs(H.div,{className:"mt-12 text-center",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[f.jsx(H.h2,{className:"mb-6",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.5},children:"Service Areas"}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-2xl mx-auto",children:["Downtown","Airport","Suburbs","Business District","Universities","Shopping Centers","Hotels","Event Venues"].map((t,r)=>f.jsx(H.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.6+r*.05},whileHover:{scale:1.05,transition:{duration:.2}},children:f.jsx(zo,{variant:"outline",className:"py-2 justify-center hover:bg-primary hover:text-primary-foreground transition-colors",children:t})},r))})]})]})})}const UN=[{icon:Ei,number:"50,000+",label:"Happy Customers"},{icon:O2,number:"4.8/5",label:"Average Rating"},{icon:tr,number:"25+",label:"Cities Served"},{icon:Mr,number:"24/7",label:"Service Available"}],WN=[{title:"Safety First",description:"All our drivers undergo thorough background checks and vehicle inspections are conducted regularly."},{title:"Reliability",description:"We pride ourselves on punctuality and dependable service, ensuring you reach your destination on time."},{title:"Customer Focus",description:"Your comfort and satisfaction are our top priorities. We continuously improve based on your feedback."},{title:"Technology",description:"Using cutting-edge technology to provide seamless booking, tracking, and payment experiences."}],$N=[{name:"Sarah Johnson",role:"CEO & Founder",description:"15+ years in transportation industry"},{name:"Michael Chen",role:"Head of Operations",description:"Expert in logistics and fleet management"},{name:"Emily Davis",role:"Customer Success Manager",description:"Dedicated to exceptional customer experience"}];function KN(){return f.jsx("div",{className:"py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs("div",{className:"text-center mb-16",children:[f.jsx("h1",{className:"mb-6 font-bold text-[40px]",children:"About Sangwari Taxi"}),f.jsx("div",{className:"max-w-4xl mx-auto mb-8",children:f.jsx("p",{className:"text-xl text-muted-foreground mb-6",children:"Welcome to Sangwari Taxi, where your safety, comfort, and convenience are our top priorities. Whether it’s a quick city ride, an outstation trip, or an airport transfer, we make every journey smooth, reliable, and stress-free."})}),f.jsx("div",{className:"relative h-64 md:h-96 rounded-lg overflow-hidden mb-8",children:f.jsx(Ld,{src:"https://images.unsplash.com/photo-1556075798-4825dfaaf498?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjb21wYW55JTIwdGVhbSUyMG9mZmljZXxlbnwxfHx8fDE3NTU1OTk5NTV8MA&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",alt:"Sangwari Taxi team",className:"w-full h-full object-cover"})})]}),f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-16",children:UN.map((t,r)=>f.jsx(Rt,{className:"text-center",children:f.jsxs(Mt,{className:"p-6",children:[f.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mx-auto mb-3",children:f.jsx(t.icon,{className:"h-6 w-6 text-primary"})}),f.jsx("div",{className:"text-2xl font-semibold mb-1",children:t.number}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.label})]})},r))}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:[f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-8",children:[f.jsx("h2",{className:"mb-4",children:"Our Mission"}),f.jsx("p",{className:"text-muted-foreground",children:"To provide safe, reliable, and affordable transportation solutions that connect communities and enhance quality of life. We strive to make every journey comfortable, secure, and convenient for our customers."})]})}),f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-8",children:[f.jsx("h2",{className:"mb-4",children:"Our Vision"}),f.jsx("p",{className:"text-muted-foreground",children:"To be the leading transportation platform that transforms how people move around cities. We envision a future where getting from point A to point B is seamless, sustainable, and accessible to everyone."})]})})]}),f.jsxs("div",{className:"mb-16",children:[f.jsx("h2",{className:"text-center mb-8",children:"Our Values"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:WN.map((t,r)=>f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"w-2 h-2 bg-primary rounded-full mt-3 flex-shrink-0"}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-2",children:t.title}),f.jsx("p",{className:"text-muted-foreground",children:t.description})]})]},r))})]}),f.jsxs("div",{className:"text-center",children:[f.jsx("h2",{className:"mb-8",children:"Leadership Team"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:$N.map((t,r)=>f.jsx(Rt,{children:f.jsxs(Mt,{className:"p-6 text-center",children:[f.jsx("div",{className:"w-20 h-20 bg-muted rounded-full mx-auto mb-4 flex items-center justify-center",children:f.jsx(Ei,{className:"h-10 w-10 text-muted-foreground"})}),f.jsx("h3",{className:"mb-1",children:t.name}),f.jsx(zo,{variant:"secondary",className:"mb-3",children:t.role}),f.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]})},r))})]})]})})}function Zn({className:t,type:r,...i}){return f.jsx("input",{type:r,"data-slot":"input",className:pt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i})}var GN="Label",Yv=S.forwardRef((t,r)=>f.jsx(ze.label,{...t,ref:r,onMouseDown:i=>{i.target.closest("button, input, select, textarea")||(t.onMouseDown?.(i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));Yv.displayName=GN;var YN=Yv;function bt({className:t,...r}){return f.jsx(YN,{"data-slot":"label",className:pt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}function XN({className:t,...r}){return f.jsx("textarea",{"data-slot":"textarea",className:pt("resize-none border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-input-background px-3 py-2 text-base transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...r})}function vg(t,[r,i]){return Math.min(i,Math.max(r,t))}function Xe(t,r,{checkForDefaultPrevented:i=!0}={}){return function(l){if(t?.(l),i===!1||!l.defaultPrevented)return r?.(l)}}function _d(t,r=[]){let i=[];function s(u,c){const p=S.createContext(c),m=i.length;i=[...i,c];const g=v=>{const{scope:w,children:b,...T}=v,k=w?.[t]?.[m]||p,N=S.useMemo(()=>T,Object.values(T));return f.jsx(k.Provider,{value:N,children:b})};g.displayName=u+"Provider";function y(v,w){const b=w?.[t]?.[m]||p,T=S.useContext(b);if(T)return T;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${u}\``)}return[g,y]}const l=()=>{const u=i.map(c=>S.createContext(c));return function(p){const m=p?.[t]||u;return S.useMemo(()=>({[`__scope${t}`]:{...p,[t]:m}}),[p,m])}};return l.scopeName=t,[s,QN(l,...r)]}function QN(...t){const r=t[0];if(t.length===1)return r;const i=()=>{const s=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const c=s.reduce((p,{useScope:m,scopeName:g})=>{const v=m(u)[`__scope${g}`];return{...p,...v}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])}};return i.scopeName=r.scopeName,i}function qN(t){const r=t+"CollectionProvider",[i,s]=_d(r),[l,u]=i(r,{collectionRef:{current:null},itemMap:new Map}),c=k=>{const{scope:N,children:P}=k,A=Xn.useRef(null),M=Xn.useRef(new Map).current;return f.jsx(l,{scope:N,itemMap:M,collectionRef:A,children:P})};c.displayName=r;const p=t+"CollectionSlot",m=Fo(p),g=Xn.forwardRef((k,N)=>{const{scope:P,children:A}=k,M=u(p,P),O=st(N,M.collectionRef);return f.jsx(m,{ref:O,children:A})});g.displayName=p;const y=t+"CollectionItemSlot",v="data-radix-collection-item",w=Fo(y),b=Xn.forwardRef((k,N)=>{const{scope:P,children:A,...M}=k,O=Xn.useRef(null),V=st(N,O),U=u(y,P);return Xn.useEffect(()=>(U.itemMap.set(O,{ref:O,...M}),()=>void U.itemMap.delete(O))),f.jsx(w,{[v]:"",ref:V,children:A})});b.displayName=y;function T(k){const N=u(t+"CollectionConsumer",k);return Xn.useCallback(()=>{const A=N.collectionRef.current;if(!A)return[];const M=Array.from(A.querySelectorAll(`[${v}]`));return Array.from(N.itemMap.values()).sort((U,z)=>M.indexOf(U.ref.current)-M.indexOf(z.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:c,Slot:g,ItemSlot:b},T,s]}var ZN=S.createContext(void 0);function JN(t){const r=S.useContext(ZN);return t||r||"ltr"}function Pr(t){const r=S.useRef(t);return S.useEffect(()=>{r.current=t}),S.useMemo(()=>(...i)=>r.current?.(...i),[])}function eT(t,r=globalThis?.document){const i=Pr(t);S.useEffect(()=>{const s=l=>{l.key==="Escape"&&i(l)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[i,r])}var tT="DismissableLayer",Bu="dismissableLayer.update",nT="dismissableLayer.pointerDownOutside",rT="dismissableLayer.focusOutside",xg,Xv=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=S.forwardRef((t,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:p,...m}=t,g=S.useContext(Xv),[y,v]=S.useState(null),w=y?.ownerDocument??globalThis?.document,[,b]=S.useState({}),T=st(r,z=>v(z)),k=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),P=k.indexOf(N),A=y?k.indexOf(y):-1,M=g.layersWithOutsidePointerEventsDisabled.size>0,O=A>=P,V=sT(z=>{const F=z.target,J=[...g.branches].some(ce=>ce.contains(F));!O||J||(l?.(z),c?.(z),z.defaultPrevented||p?.())},w),U=aT(z=>{const F=z.target;[...g.branches].some(ce=>ce.contains(F))||(u?.(z),c?.(z),z.defaultPrevented||p?.())},w);return eT(z=>{A===g.layers.size-1&&(s?.(z),!z.defaultPrevented&&p&&(z.preventDefault(),p()))},w),S.useEffect(()=>{if(y)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(xg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),wg(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=xg)}},[y,w,i,g]),S.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),wg())},[y,g]),S.useEffect(()=>{const z=()=>b({});return document.addEventListener(Bu,z),()=>document.removeEventListener(Bu,z)},[]),f.jsx(ze.div,{...m,ref:T,style:{pointerEvents:M?O?"auto":"none":void 0,...t.style},onFocusCapture:Xe(t.onFocusCapture,U.onFocusCapture),onBlurCapture:Xe(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Xe(t.onPointerDownCapture,V.onPointerDownCapture)})});Qv.displayName=tT;var iT="DismissableLayerBranch",oT=S.forwardRef((t,r)=>{const i=S.useContext(Xv),s=S.useRef(null),l=st(r,s);return S.useEffect(()=>{const u=s.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),f.jsx(ze.div,{...t,ref:l})});oT.displayName=iT;function sT(t,r=globalThis?.document){const i=Pr(t),s=S.useRef(!1),l=S.useRef(()=>{});return S.useEffect(()=>{const u=p=>{if(p.target&&!s.current){let m=function(){qv(nT,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",l.current),l.current=m,r.addEventListener("click",l.current,{once:!0})):m()}else r.removeEventListener("click",l.current);s.current=!1},c=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),r.removeEventListener("pointerdown",u),r.removeEventListener("click",l.current)}},[r,i]),{onPointerDownCapture:()=>s.current=!0}}function aT(t,r=globalThis?.document){const i=Pr(t),s=S.useRef(!1);return S.useEffect(()=>{const l=u=>{u.target&&!s.current&&qv(rT,i,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",l),()=>r.removeEventListener("focusin",l)},[r,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function wg(){const t=new CustomEvent(Bu);document.dispatchEvent(t)}function qv(t,r,i,{discrete:s}){const l=i.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});r&&l.addEventListener(t,r,{once:!0}),s?AN(l,u):l.dispatchEvent(u)}var su=0;function lT(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Sg()),document.body.insertAdjacentElement("beforeend",t[1]??Sg()),su++,()=>{su===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),su--}},[])}function Sg(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var au="focusScope.autoFocusOnMount",lu="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},cT="FocusScope",Zv=S.forwardRef((t,r)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[p,m]=S.useState(null),g=Pr(l),y=Pr(u),v=S.useRef(null),w=st(r,k=>m(k)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(s){let k=function(M){if(b.paused||!p)return;const O=M.target;p.contains(O)?v.current=O:qn(v.current,{select:!0})},N=function(M){if(b.paused||!p)return;const O=M.relatedTarget;O!==null&&(p.contains(O)||qn(v.current,{select:!0}))},P=function(M){if(document.activeElement===document.body)for(const V of M)V.removedNodes.length>0&&qn(p)};document.addEventListener("focusin",k),document.addEventListener("focusout",N);const A=new MutationObserver(P);return p&&A.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",N),A.disconnect()}}},[s,p,b.paused]),S.useEffect(()=>{if(p){Cg.add(b);const k=document.activeElement;if(!p.contains(k)){const P=new CustomEvent(au,kg);p.addEventListener(au,g),p.dispatchEvent(P),P.defaultPrevented||(uT(mT(Jv(p)),{select:!0}),document.activeElement===k&&qn(p))}return()=>{p.removeEventListener(au,g),setTimeout(()=>{const P=new CustomEvent(lu,kg);p.addEventListener(lu,y),p.dispatchEvent(P),P.defaultPrevented||qn(k??document.body,{select:!0}),p.removeEventListener(lu,y),Cg.remove(b)},0)}}},[p,g,y,b]);const T=S.useCallback(k=>{if(!i&&!s||b.paused)return;const N=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,P=document.activeElement;if(N&&P){const A=k.currentTarget,[M,O]=dT(A);M&&O?!k.shiftKey&&P===O?(k.preventDefault(),i&&qn(M,{select:!0})):k.shiftKey&&P===M&&(k.preventDefault(),i&&qn(O,{select:!0})):P===A&&k.preventDefault()}},[i,s,b.paused]);return f.jsx(ze.div,{tabIndex:-1,...c,ref:w,onKeyDown:T})});Zv.displayName=cT;function uT(t,{select:r=!1}={}){const i=document.activeElement;for(const s of t)if(qn(s,{select:r}),document.activeElement!==i)return}function dT(t){const r=Jv(t),i=bg(r,t),s=bg(r.reverse(),t);return[i,s]}function Jv(t){const r=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function bg(t,r){for(const i of t)if(!fT(i,{upTo:r}))return i}function fT(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function pT(t){return t instanceof HTMLInputElement&&"select"in t}function qn(t,{select:r=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&pT(t)&&r&&t.select()}}var Cg=hT();function hT(){let t=[];return{add(r){const i=t[0];r!==i&&i?.pause(),t=Ng(t,r),t.unshift(r)},remove(r){t=Ng(t,r),t[0]?.resume()}}}function Ng(t,r){const i=[...t],s=i.indexOf(r);return s!==-1&&i.splice(s,1),i}function mT(t){return t.filter(r=>r.tagName!=="A")}var Nt=globalThis?.document?S.useLayoutEffect:()=>{},gT=Kg[" useId ".trim().toString()]||(()=>{}),yT=0;function Od(t){const[r,i]=S.useState(gT());return Nt(()=>{i(s=>s??String(yT++))},[t]),t||(r?`radix-${r}`:"")}const vT=["top","right","bottom","left"],nr=Math.min,At=Math.max,Pa=Math.round,ua=Math.floor,fn=t=>({x:t,y:t}),xT={left:"right",right:"left",bottom:"top",top:"bottom"},wT={start:"end",end:"start"};function Hu(t,r,i){return At(t,nr(r,i))}function jn(t,r){return typeof t=="function"?t(r):t}function Pn(t){return t.split("-")[0]}function Ai(t){return t.split("-")[1]}function Vd(t){return t==="x"?"y":"x"}function Fd(t){return t==="y"?"height":"width"}const ST=new Set(["top","bottom"]);function cn(t){return ST.has(Pn(t))?"y":"x"}function zd(t){return Vd(cn(t))}function kT(t,r,i){i===void 0&&(i=!1);const s=Ai(t),l=zd(t),u=Fd(l);let c=l==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=Ea(c)),[c,Ea(c)]}function bT(t){const r=Ea(t);return[Uu(t),r,Uu(r)]}function Uu(t){return t.replace(/start|end/g,r=>wT[r])}const Tg=["left","right"],jg=["right","left"],CT=["top","bottom"],NT=["bottom","top"];function TT(t,r,i){switch(t){case"top":case"bottom":return i?r?jg:Tg:r?Tg:jg;case"left":case"right":return r?CT:NT;default:return[]}}function jT(t,r,i,s){const l=Ai(t);let u=TT(Pn(t),i==="start",s);return l&&(u=u.map(c=>c+"-"+l),r&&(u=u.concat(u.map(Uu)))),u}function Ea(t){return t.replace(/left|right|bottom|top/g,r=>xT[r])}function PT(t){return{top:0,right:0,bottom:0,left:0,...t}}function e0(t){return typeof t!="number"?PT(t):{top:t,right:t,bottom:t,left:t}}function Aa(t){const{x:r,y:i,width:s,height:l}=t;return{width:s,height:l,top:i,left:r,right:r+s,bottom:i+l,x:r,y:i}}function Pg(t,r,i){let{reference:s,floating:l}=t;const u=cn(r),c=zd(r),p=Fd(c),m=Pn(r),g=u==="y",y=s.x+s.width/2-l.width/2,v=s.y+s.height/2-l.height/2,w=s[p]/2-l[p]/2;let b;switch(m){case"top":b={x:y,y:s.y-l.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:v};break;case"left":b={x:s.x-l.width,y:v};break;default:b={x:s.x,y:s.y}}switch(Ai(r)){case"start":b[c]-=w*(i&&g?-1:1);break;case"end":b[c]+=w*(i&&g?-1:1);break}return b}const ET=async(t,r,i)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:c}=i,p=u.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(r));let g=await c.getElementRects({reference:t,floating:r,strategy:l}),{x:y,y:v}=Pg(g,s,m),w=s,b={},T=0;for(let k=0;k({name:"arrow",options:t,async fn(r){const{x:i,y:s,placement:l,rects:u,platform:c,elements:p,middlewareData:m}=r,{element:g,padding:y=0}=jn(t,r)||{};if(g==null)return{};const v=e0(y),w={x:i,y:s},b=zd(l),T=Fd(b),k=await c.getDimensions(g),N=b==="y",P=N?"top":"left",A=N?"bottom":"right",M=N?"clientHeight":"clientWidth",O=u.reference[T]+u.reference[b]-w[b]-u.floating[T],V=w[b]-u.reference[b],U=await(c.getOffsetParent==null?void 0:c.getOffsetParent(g));let z=U?U[M]:0;(!z||!await(c.isElement==null?void 0:c.isElement(U)))&&(z=p.floating[M]||u.floating[T]);const F=O/2-V/2,J=z/2-k[T]/2-1,ce=nr(v[P],J),ye=nr(v[A],J),xe=ce,me=z-k[T]-ye,pe=z/2-k[T]/2+F,we=Hu(xe,pe,me),se=!m.arrow&&Ai(l)!=null&&pe!==we&&u.reference[T]/2-(pepe<=0)){var ye,xe;const pe=(((ye=u.flip)==null?void 0:ye.index)||0)+1,we=z[pe];if(we&&(!(v==="alignment"?A!==cn(we):!1)||ce.every(I=>cn(I.placement)===A?I.overflows[0]>0:!0)))return{data:{index:pe,overflows:ce},reset:{placement:we}};let se=(xe=ce.filter(q=>q.overflows[0]<=0).sort((q,I)=>q.overflows[1]-I.overflows[1])[0])==null?void 0:xe.placement;if(!se)switch(b){case"bestFit":{var me;const q=(me=ce.filter(I=>{if(U){const Q=cn(I.placement);return Q===A||Q==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(Q=>Q>0).reduce((Q,Y)=>Q+Y,0)]).sort((I,Q)=>I[1]-Q[1])[0])==null?void 0:me[0];q&&(se=q);break}case"initialPlacement":se=p;break}if(l!==se)return{reset:{placement:se}}}return{}}}};function Eg(t,r){return{top:t.top-r.height,right:t.right-r.width,bottom:t.bottom-r.height,left:t.left-r.width}}function Ag(t){return vT.some(r=>t[r]>=0)}const MT=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(r){const{rects:i}=r,{strategy:s="referenceHidden",...l}=jn(t,r);switch(s){case"referenceHidden":{const u=await Bo(r,{...l,elementContext:"reference"}),c=Eg(u,i.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ag(c)}}}case"escaped":{const u=await Bo(r,{...l,altBoundary:!0}),c=Eg(u,i.floating);return{data:{escapedOffsets:c,escaped:Ag(c)}}}default:return{}}}}},t0=new Set(["left","top"]);async function IT(t,r){const{placement:i,platform:s,elements:l}=t,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),c=Pn(i),p=Ai(i),m=cn(i)==="y",g=t0.has(c)?-1:1,y=u&&m?-1:1,v=jn(r,t);let{mainAxis:w,crossAxis:b,alignmentAxis:T}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return p&&typeof T=="number"&&(b=p==="end"?T*-1:T),m?{x:b*y,y:w*g}:{x:w*g,y:b*y}}const DT=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var i,s;const{x:l,y:u,placement:c,middlewareData:p}=r,m=await IT(r,t);return c===((i=p.offset)==null?void 0:i.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:l+m.x,y:u+m.y,data:{...m,placement:c}}}}},LT=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:i,y:s,placement:l}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:p={fn:N=>{let{x:P,y:A}=N;return{x:P,y:A}}},...m}=jn(t,r),g={x:i,y:s},y=await Bo(r,m),v=cn(Pn(l)),w=Vd(v);let b=g[w],T=g[v];if(u){const N=w==="y"?"top":"left",P=w==="y"?"bottom":"right",A=b+y[N],M=b-y[P];b=Hu(A,b,M)}if(c){const N=v==="y"?"top":"left",P=v==="y"?"bottom":"right",A=T+y[N],M=T-y[P];T=Hu(A,T,M)}const k=p.fn({...r,[w]:b,[v]:T});return{...k,data:{x:k.x-i,y:k.y-s,enabled:{[w]:u,[v]:c}}}}}},_T=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:i,y:s,placement:l,rects:u,middlewareData:c}=r,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=jn(t,r),y={x:i,y:s},v=cn(l),w=Vd(v);let b=y[w],T=y[v];const k=jn(p,r),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const M=w==="y"?"height":"width",O=u.reference[w]-u.floating[M]+N.mainAxis,V=u.reference[w]+u.reference[M]-N.mainAxis;bV&&(b=V)}if(g){var P,A;const M=w==="y"?"width":"height",O=t0.has(Pn(l)),V=u.reference[v]-u.floating[M]+(O&&((P=c.offset)==null?void 0:P[v])||0)+(O?0:N.crossAxis),U=u.reference[v]+u.reference[M]+(O?0:((A=c.offset)==null?void 0:A[v])||0)-(O?N.crossAxis:0);TU&&(T=U)}return{[w]:b,[v]:T}}}},OT=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var i,s;const{placement:l,rects:u,platform:c,elements:p}=r,{apply:m=()=>{},...g}=jn(t,r),y=await Bo(r,g),v=Pn(l),w=Ai(l),b=cn(l)==="y",{width:T,height:k}=u.floating;let N,P;v==="top"||v==="bottom"?(N=v,P=w===(await(c.isRTL==null?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(P=v,N=w==="end"?"top":"bottom");const A=k-y.top-y.bottom,M=T-y.left-y.right,O=nr(k-y[N],A),V=nr(T-y[P],M),U=!r.middlewareData.shift;let z=O,F=V;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(F=M),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(z=A),U&&!w){const ce=At(y.left,0),ye=At(y.right,0),xe=At(y.top,0),me=At(y.bottom,0);b?F=T-2*(ce!==0||ye!==0?ce+ye:At(y.left,y.right)):z=k-2*(xe!==0||me!==0?xe+me:At(y.top,y.bottom))}await m({...r,availableWidth:F,availableHeight:z});const J=await c.getDimensions(p.floating);return T!==J.width||k!==J.height?{reset:{rects:!0}}:{}}}};function Fa(){return typeof window<"u"}function Ri(t){return n0(t)?(t.nodeName||"").toLowerCase():"#document"}function It(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function mn(t){var r;return(r=(n0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function n0(t){return Fa()?t instanceof Node||t instanceof It(t).Node:!1}function en(t){return Fa()?t instanceof Element||t instanceof It(t).Element:!1}function hn(t){return Fa()?t instanceof HTMLElement||t instanceof It(t).HTMLElement:!1}function Rg(t){return!Fa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof It(t).ShadowRoot}const VT=new Set(["inline","contents"]);function Yo(t){const{overflow:r,overflowX:i,overflowY:s,display:l}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(r+s+i)&&!VT.has(l)}const FT=new Set(["table","td","th"]);function zT(t){return FT.has(Ri(t))}const BT=[":popover-open",":modal"];function za(t){return BT.some(r=>{try{return t.matches(r)}catch{return!1}})}const HT=["transform","translate","scale","rotate","perspective"],UT=["transform","translate","scale","rotate","perspective","filter"],WT=["paint","layout","strict","content"];function Bd(t){const r=Hd(),i=en(t)?tn(t):t;return HT.some(s=>i[s]?i[s]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||UT.some(s=>(i.willChange||"").includes(s))||WT.some(s=>(i.contain||"").includes(s))}function $T(t){let r=rr(t);for(;hn(r)&&!ki(r);){if(Bd(r))return r;if(za(r))return null;r=rr(r)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KT=new Set(["html","body","#document"]);function ki(t){return KT.has(Ri(t))}function tn(t){return It(t).getComputedStyle(t)}function Ba(t){return en(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function rr(t){if(Ri(t)==="html")return t;const r=t.assignedSlot||t.parentNode||Rg(t)&&t.host||mn(t);return Rg(r)?r.host:r}function r0(t){const r=rr(t);return ki(r)?t.ownerDocument?t.ownerDocument.body:t.body:hn(r)&&Yo(r)?r:r0(r)}function Ho(t,r,i){var s;r===void 0&&(r=[]),i===void 0&&(i=!0);const l=r0(t),u=l===((s=t.ownerDocument)==null?void 0:s.body),c=It(l);if(u){const p=Wu(c);return r.concat(c,c.visualViewport||[],Yo(l)?l:[],p&&i?Ho(p):[])}return r.concat(l,Ho(l,[],i))}function Wu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function i0(t){const r=tn(t);let i=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const l=hn(t),u=l?t.offsetWidth:i,c=l?t.offsetHeight:s,p=Pa(i)!==u||Pa(s)!==c;return p&&(i=u,s=c),{width:i,height:s,$:p}}function Ud(t){return en(t)?t:t.contextElement}function vi(t){const r=Ud(t);if(!hn(r))return fn(1);const i=r.getBoundingClientRect(),{width:s,height:l,$:u}=i0(r);let c=(u?Pa(i.width):i.width)/s,p=(u?Pa(i.height):i.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}const GT=fn(0);function o0(t){const r=It(t);return!Hd()||!r.visualViewport?GT:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YT(t,r,i){return r===void 0&&(r=!1),!i||r&&i!==It(t)?!1:r}function Er(t,r,i,s){r===void 0&&(r=!1),i===void 0&&(i=!1);const l=t.getBoundingClientRect(),u=Ud(t);let c=fn(1);r&&(s?en(s)&&(c=vi(s)):c=vi(t));const p=YT(u,i,s)?o0(u):fn(0);let m=(l.left+p.x)/c.x,g=(l.top+p.y)/c.y,y=l.width/c.x,v=l.height/c.y;if(u){const w=It(u),b=s&&en(s)?It(s):s;let T=w,k=Wu(T);for(;k&&s&&b!==T;){const N=vi(k),P=k.getBoundingClientRect(),A=tn(k),M=P.left+(k.clientLeft+parseFloat(A.paddingLeft))*N.x,O=P.top+(k.clientTop+parseFloat(A.paddingTop))*N.y;m*=N.x,g*=N.y,y*=N.x,v*=N.y,m+=M,g+=O,T=It(k),k=Wu(T)}}return Aa({width:y,height:v,x:m,y:g})}function Ha(t,r){const i=Ba(t).scrollLeft;return r?r.left+i:Er(mn(t)).left+i}function s0(t,r){const i=t.getBoundingClientRect(),s=i.left+r.scrollLeft-Ha(t,i),l=i.top+r.scrollTop;return{x:s,y:l}}function XT(t){let{elements:r,rect:i,offsetParent:s,strategy:l}=t;const u=l==="fixed",c=mn(s),p=r?za(r.floating):!1;if(s===c||p&&u)return i;let m={scrollLeft:0,scrollTop:0},g=fn(1);const y=fn(0),v=hn(s);if((v||!v&&!u)&&((Ri(s)!=="body"||Yo(c))&&(m=Ba(s)),hn(s))){const b=Er(s);g=vi(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const w=c&&!v&&!u?s0(c,m):fn(0);return{width:i.width*g.x,height:i.height*g.y,x:i.x*g.x-m.scrollLeft*g.x+y.x+w.x,y:i.y*g.y-m.scrollTop*g.y+y.y+w.y}}function QT(t){return Array.from(t.getClientRects())}function qT(t){const r=mn(t),i=Ba(t),s=t.ownerDocument.body,l=At(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),u=At(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let c=-i.scrollLeft+Ha(t);const p=-i.scrollTop;return tn(s).direction==="rtl"&&(c+=At(r.clientWidth,s.clientWidth)-l),{width:l,height:u,x:c,y:p}}const Mg=25;function ZT(t,r){const i=It(t),s=mn(t),l=i.visualViewport;let u=s.clientWidth,c=s.clientHeight,p=0,m=0;if(l){u=l.width,c=l.height;const y=Hd();(!y||y&&r==="fixed")&&(p=l.offsetLeft,m=l.offsetTop)}const g=Ha(s);if(g<=0){const y=s.ownerDocument,v=y.body,w=getComputedStyle(v),b=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,T=Math.abs(s.clientWidth-v.clientWidth-b);T<=Mg&&(u-=T)}else g<=Mg&&(u+=g);return{width:u,height:c,x:p,y:m}}const JT=new Set(["absolute","fixed"]);function ej(t,r){const i=Er(t,!0,r==="fixed"),s=i.top+t.clientTop,l=i.left+t.clientLeft,u=hn(t)?vi(t):fn(1),c=t.clientWidth*u.x,p=t.clientHeight*u.y,m=l*u.x,g=s*u.y;return{width:c,height:p,x:m,y:g}}function Ig(t,r,i){let s;if(r==="viewport")s=ZT(t,i);else if(r==="document")s=qT(mn(t));else if(en(r))s=ej(r,i);else{const l=o0(t);s={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height}}return Aa(s)}function a0(t,r){const i=rr(t);return i===r||!en(i)||ki(i)?!1:tn(i).position==="fixed"||a0(i,r)}function tj(t,r){const i=r.get(t);if(i)return i;let s=Ho(t,[],!1).filter(p=>en(p)&&Ri(p)!=="body"),l=null;const u=tn(t).position==="fixed";let c=u?rr(t):t;for(;en(c)&&!ki(c);){const p=tn(c),m=Bd(c);!m&&p.position==="fixed"&&(l=null),(u?!m&&!l:!m&&p.position==="static"&&!!l&&JT.has(l.position)||Yo(c)&&!m&&a0(t,c))?s=s.filter(y=>y!==c):l=p,c=rr(c)}return r.set(t,s),s}function nj(t){let{element:r,boundary:i,rootBoundary:s,strategy:l}=t;const c=[...i==="clippingAncestors"?za(r)?[]:tj(r,this._c):[].concat(i),s],p=c[0],m=c.reduce((g,y)=>{const v=Ig(r,y,l);return g.top=At(v.top,g.top),g.right=nr(v.right,g.right),g.bottom=nr(v.bottom,g.bottom),g.left=At(v.left,g.left),g},Ig(r,p,l));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function rj(t){const{width:r,height:i}=i0(t);return{width:r,height:i}}function ij(t,r,i){const s=hn(r),l=mn(r),u=i==="fixed",c=Er(t,!0,u,r);let p={scrollLeft:0,scrollTop:0};const m=fn(0);function g(){m.x=Ha(l)}if(s||!s&&!u)if((Ri(r)!=="body"||Yo(l))&&(p=Ba(r)),s){const b=Er(r,!0,u,r);m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}else l&&g();u&&!s&&l&&g();const y=l&&!s&&!u?s0(l,p):fn(0),v=c.left+p.scrollLeft-m.x-y.x,w=c.top+p.scrollTop-m.y-y.y;return{x:v,y:w,width:c.width,height:c.height}}function cu(t){return tn(t).position==="static"}function Dg(t,r){if(!hn(t)||tn(t).position==="fixed")return null;if(r)return r(t);let i=t.offsetParent;return mn(t)===i&&(i=i.ownerDocument.body),i}function l0(t,r){const i=It(t);if(za(t))return i;if(!hn(t)){let l=rr(t);for(;l&&!ki(l);){if(en(l)&&!cu(l))return l;l=rr(l)}return i}let s=Dg(t,r);for(;s&&zT(s)&&cu(s);)s=Dg(s,r);return s&&ki(s)&&cu(s)&&!Bd(s)?i:s||$T(t)||i}const oj=async function(t){const r=this.getOffsetParent||l0,i=this.getDimensions,s=await i(t.floating);return{reference:ij(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function sj(t){return tn(t).direction==="rtl"}const aj={convertOffsetParentRelativeRectToViewportRelativeRect:XT,getDocumentElement:mn,getClippingRect:nj,getOffsetParent:l0,getElementRects:oj,getClientRects:QT,getDimensions:rj,getScale:vi,isElement:en,isRTL:sj};function c0(t,r){return t.x===r.x&&t.y===r.y&&t.width===r.width&&t.height===r.height}function lj(t,r){let i=null,s;const l=mn(t);function u(){var p;clearTimeout(s),(p=i)==null||p.disconnect(),i=null}function c(p,m){p===void 0&&(p=!1),m===void 0&&(m=1),u();const g=t.getBoundingClientRect(),{left:y,top:v,width:w,height:b}=g;if(p||r(),!w||!b)return;const T=ua(v),k=ua(l.clientWidth-(y+w)),N=ua(l.clientHeight-(v+b)),P=ua(y),M={rootMargin:-T+"px "+-k+"px "+-N+"px "+-P+"px",threshold:At(0,nr(1,m))||1};let O=!0;function V(U){const z=U[0].intersectionRatio;if(z!==m){if(!O)return c();z?c(!1,z):s=setTimeout(()=>{c(!1,1e-7)},1e3)}z===1&&!c0(g,t.getBoundingClientRect())&&c(),O=!1}try{i=new IntersectionObserver(V,{...M,root:l.ownerDocument})}catch{i=new IntersectionObserver(V,M)}i.observe(t)}return c(!0),u}function cj(t,r,i,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,g=Ud(t),y=l||u?[...g?Ho(g):[],...Ho(r)]:[];y.forEach(P=>{l&&P.addEventListener("scroll",i,{passive:!0}),u&&P.addEventListener("resize",i)});const v=g&&p?lj(g,i):null;let w=-1,b=null;c&&(b=new ResizeObserver(P=>{let[A]=P;A&&A.target===g&&b&&(b.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=b)==null||M.observe(r)})),i()}),g&&!m&&b.observe(g),b.observe(r));let T,k=m?Er(t):null;m&&N();function N(){const P=Er(t);k&&!c0(k,P)&&i(),k=P,T=requestAnimationFrame(N)}return i(),()=>{var P;y.forEach(A=>{l&&A.removeEventListener("scroll",i),u&&A.removeEventListener("resize",i)}),v?.(),(P=b)==null||P.disconnect(),b=null,m&&cancelAnimationFrame(T)}}const uj=DT,dj=LT,fj=RT,pj=OT,hj=MT,Lg=AT,mj=_T,gj=(t,r,i)=>{const s=new Map,l={platform:aj,...i},u={...l.platform,_c:s};return ET(t,r,{...l,platform:u})};var yj=typeof document<"u",vj=function(){},wa=yj?S.useLayoutEffect:vj;function Ra(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let i,s,l;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(i=t.length,i!==r.length)return!1;for(s=i;s--!==0;)if(!Ra(t[s],r[s]))return!1;return!0}if(l=Object.keys(t),i=l.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(r,l[s]))return!1;for(s=i;s--!==0;){const u=l[s];if(!(u==="_owner"&&t.$$typeof)&&!Ra(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}function u0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function _g(t,r){const i=u0(t);return Math.round(r*i)/i}function uu(t){const r=S.useRef(t);return wa(()=>{r.current=t}),r}function xj(t){t===void 0&&(t={});const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:c}={},transform:p=!0,whileElementsMounted:m,open:g}=t,[y,v]=S.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[w,b]=S.useState(s);Ra(w,s)||b(s);const[T,k]=S.useState(null),[N,P]=S.useState(null),A=S.useCallback(I=>{I!==U.current&&(U.current=I,k(I))},[]),M=S.useCallback(I=>{I!==z.current&&(z.current=I,P(I))},[]),O=u||T,V=c||N,U=S.useRef(null),z=S.useRef(null),F=S.useRef(y),J=m!=null,ce=uu(m),ye=uu(l),xe=uu(g),me=S.useCallback(()=>{if(!U.current||!z.current)return;const I={placement:r,strategy:i,middleware:w};ye.current&&(I.platform=ye.current),gj(U.current,z.current,I).then(Q=>{const Y={...Q,isPositioned:xe.current!==!1};pe.current&&!Ra(F.current,Y)&&(F.current=Y,Go.flushSync(()=>{v(Y)}))})},[w,r,i,ye,xe]);wa(()=>{g===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(I=>({...I,isPositioned:!1})))},[g]);const pe=S.useRef(!1);wa(()=>(pe.current=!0,()=>{pe.current=!1}),[]),wa(()=>{if(O&&(U.current=O),V&&(z.current=V),O&&V){if(ce.current)return ce.current(O,V,me);me()}},[O,V,me,ce,J]);const we=S.useMemo(()=>({reference:U,floating:z,setReference:A,setFloating:M}),[A,M]),se=S.useMemo(()=>({reference:O,floating:V}),[O,V]),q=S.useMemo(()=>{const I={position:i,left:0,top:0};if(!se.floating)return I;const Q=_g(se.floating,y.x),Y=_g(se.floating,y.y);return p?{...I,transform:"translate("+Q+"px, "+Y+"px)",...u0(se.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:Q,top:Y}},[i,p,se.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:me,refs:we,elements:se,floatingStyles:q}),[y,me,we,se,q])}const wj=t=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){const{element:s,padding:l}=typeof t=="function"?t(i):t;return s&&r(s)?s.current!=null?Lg({element:s.current,padding:l}).fn(i):{}:s?Lg({element:s,padding:l}).fn(i):{}}}},Sj=(t,r)=>({...uj(t),options:[t,r]}),kj=(t,r)=>({...dj(t),options:[t,r]}),bj=(t,r)=>({...mj(t),options:[t,r]}),Cj=(t,r)=>({...fj(t),options:[t,r]}),Nj=(t,r)=>({...pj(t),options:[t,r]}),Tj=(t,r)=>({...hj(t),options:[t,r]}),jj=(t,r)=>({...wj(t),options:[t,r]});var Pj="Arrow",d0=S.forwardRef((t,r)=>{const{children:i,width:s=10,height:l=5,...u}=t;return f.jsx(ze.svg,{...u,ref:r,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?i:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});d0.displayName=Pj;var Ej=d0;function Aj(t){const[r,i]=S.useState(void 0);return Nt(()=>{if(t){i({width:t.offsetWidth,height:t.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let c,p;if("borderBoxSize"in u){const m=u.borderBoxSize,g=Array.isArray(m)?m[0]:m;c=g.inlineSize,p=g.blockSize}else c=t.offsetWidth,p=t.offsetHeight;i({width:c,height:p})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else i(void 0)},[t]),r}var Wd="Popper",[f0,p0]=_d(Wd),[Rj,h0]=f0(Wd),m0=t=>{const{__scopePopper:r,children:i}=t,[s,l]=S.useState(null);return f.jsx(Rj,{scope:r,anchor:s,onAnchorChange:l,children:i})};m0.displayName=Wd;var g0="PopperAnchor",y0=S.forwardRef((t,r)=>{const{__scopePopper:i,virtualRef:s,...l}=t,u=h0(g0,i),c=S.useRef(null),p=st(r,c),m=S.useRef(null);return S.useEffect(()=>{const g=m.current;m.current=s?.current||c.current,g!==m.current&&u.onAnchorChange(m.current)}),s?null:f.jsx(ze.div,{...l,ref:p})});y0.displayName=g0;var $d="PopperContent",[Mj,Ij]=f0($d),v0=S.forwardRef((t,r)=>{const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:b="optimized",onPlaced:T,...k}=t,N=h0($d,i),[P,A]=S.useState(null),M=st(r,G=>A(G)),[O,V]=S.useState(null),U=Aj(O),z=U?.width??0,F=U?.height??0,J=s+(u!=="center"?"-"+u:""),ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ye=Array.isArray(g)?g:[g],xe=ye.length>0,me={padding:ce,boundary:ye.filter(Lj),altBoundary:xe},{refs:pe,floatingStyles:we,placement:se,isPositioned:q,middlewareData:I}=xj({strategy:"fixed",placement:J,whileElementsMounted:(...G)=>cj(...G,{animationFrame:b==="always"}),elements:{reference:N.anchor},middleware:[Sj({mainAxis:l+F,alignmentAxis:c}),m&&kj({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?bj():void 0,...me}),m&&Cj({...me}),Nj({...me,apply:({elements:G,rects:ue,availableWidth:ve,availableHeight:ke})=>{const{width:Te,height:Re}=ue.reference,nt=G.floating.style;nt.setProperty("--radix-popper-available-width",`${ve}px`),nt.setProperty("--radix-popper-available-height",`${ke}px`),nt.setProperty("--radix-popper-anchor-width",`${Te}px`),nt.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),O&&jj({element:O,padding:p}),_j({arrowWidth:z,arrowHeight:F}),w&&Tj({strategy:"referenceHidden",...me})]}),[Q,Y]=S0(se),R=Pr(T);Nt(()=>{q&&R?.()},[q,R]);const B=I.arrow?.x,oe=I.arrow?.y,ae=I.arrow?.centerOffset!==0,[Se,be]=S.useState();return Nt(()=>{P&&be(window.getComputedStyle(P).zIndex)},[P]),f.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...we,transform:q?we.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(Mj,{scope:i,placedSide:Q,onArrowChange:V,arrowX:B,arrowY:oe,shouldHideArrow:ae,children:f.jsx(ze.div,{"data-side":Q,"data-align":Y,...k,ref:M,style:{...k.style,animation:q?void 0:"none"}})})})});v0.displayName=$d;var x0="PopperArrow",Dj={top:"bottom",right:"left",bottom:"top",left:"right"},w0=S.forwardRef(function(r,i){const{__scopePopper:s,...l}=r,u=Ij(x0,s),c=Dj[u.placedSide];return f.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:f.jsx(Ej,{...l,ref:i,style:{...l.style,display:"block"}})})});w0.displayName=x0;function Lj(t){return t!==null}var _j=t=>({name:"transformOrigin",options:t,fn(r){const{placement:i,rects:s,middlewareData:l}=r,c=l.arrow?.centerOffset!==0,p=c?0:t.arrowWidth,m=c?0:t.arrowHeight,[g,y]=S0(i),v={start:"0%",center:"50%",end:"100%"}[y],w=(l.arrow?.x??0)+p/2,b=(l.arrow?.y??0)+m/2;let T="",k="";return g==="bottom"?(T=c?v:`${w}px`,k=`${-m}px`):g==="top"?(T=c?v:`${w}px`,k=`${s.floating.height+m}px`):g==="right"?(T=`${-m}px`,k=c?v:`${b}px`):g==="left"&&(T=`${s.floating.width+m}px`,k=c?v:`${b}px`),{data:{x:T,y:k}}}});function S0(t){const[r,i="center"]=t.split("-");return[r,i]}var Oj=m0,Vj=y0,Fj=v0,zj=w0,Bj="Portal",k0=S.forwardRef((t,r)=>{const{container:i,...s}=t,[l,u]=S.useState(!1);Nt(()=>u(!0),[]);const c=i||l&&globalThis?.document?.body;return c?PN.createPortal(f.jsx(ze.div,{...s,ref:r}),c):null});k0.displayName=Bj;var Hj=Kg[" useInsertionEffect ".trim().toString()]||Nt;function Og({prop:t,defaultProp:r,onChange:i=()=>{},caller:s}){const[l,u,c]=Uj({defaultProp:r,onChange:i}),p=t!==void 0,m=p?t:l;{const y=S.useRef(t!==void 0);S.useEffect(()=>{const v=y.current;v!==p&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=p},[p,s])}const g=S.useCallback(y=>{if(p){const v=Wj(y)?y(t):y;v!==t&&c.current?.(v)}else u(y)},[p,t,u,c]);return[m,g]}function Uj({defaultProp:t,onChange:r}){const[i,s]=S.useState(t),l=S.useRef(i),u=S.useRef(r);return Hj(()=>{u.current=r},[r]),S.useEffect(()=>{l.current!==i&&(u.current?.(i),l.current=i)},[i,l]),[i,s,u]}function Wj(t){return typeof t=="function"}function $j(t){const r=S.useRef({value:t,previous:t});return S.useMemo(()=>(r.current.value!==t&&(r.current.previous=r.current.value,r.current.value=t),r.current.previous),[t])}var b0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Kj="VisuallyHidden",Gj=S.forwardRef((t,r)=>f.jsx(ze.span,{...t,ref:r,style:{...b0,...t.style}}));Gj.displayName=Kj;var Yj=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ai=new WeakMap,da=new WeakMap,fa={},du=0,C0=function(t){return t&&(t.host||C0(t.parentNode))},Xj=function(t,r){return r.map(function(i){if(t.contains(i))return i;var s=C0(i);return s&&t.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},Qj=function(t,r,i,s){var l=Xj(r,Array.isArray(t)?t:[t]);fa[i]||(fa[i]=new WeakMap);var u=fa[i],c=[],p=new Set,m=new Set(l),g=function(v){!v||p.has(v)||(p.add(v),g(v.parentNode))};l.forEach(g);var y=function(v){!v||m.has(v)||Array.prototype.forEach.call(v.children,function(w){if(p.has(w))y(w);else try{var b=w.getAttribute(s),T=b!==null&&b!=="false",k=(ai.get(w)||0)+1,N=(u.get(w)||0)+1;ai.set(w,k),u.set(w,N),c.push(w),k===1&&T&&da.set(w,!0),N===1&&w.setAttribute(i,"true"),T||w.setAttribute(s,"true")}catch(P){console.error("aria-hidden: cannot operate on ",w,P)}})};return y(r),p.clear(),du++,function(){c.forEach(function(v){var w=ai.get(v)-1,b=u.get(v)-1;ai.set(v,w),u.set(v,b),w||(da.has(v)||v.removeAttribute(s),da.delete(v)),b||v.removeAttribute(i)}),du--,du||(ai=new WeakMap,ai=new WeakMap,da=new WeakMap,fa={})}},qj=function(t,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),l=Yj(t);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),Qj(s,l,i,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(r){for(var i,s=1,l=arguments.length;s"u")return hP;var r=mP(t),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},yP=P0(),xi="data-scroll-locked",vP=function(t,r,i,s){var l=t.left,u=t.top,c=t.right,p=t.gap;return i===void 0&&(i="margin"),` + .`.concat(Jj,` { + overflow: hidden `).concat(s,`; + padding-right: `).concat(p,"px ").concat(s,`; + } + body[`).concat(xi,`] { + overflow: hidden `).concat(s,`; + overscroll-behavior: contain; + `).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&` + padding-left: `.concat(l,`px; + padding-top: `).concat(u,`px; + padding-right: `).concat(c,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(p,"px ").concat(s,`; + `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),` + } + + .`).concat(Sa,` { + right: `).concat(p,"px ").concat(s,`; + } + + .`).concat(ka,` { + margin-right: `).concat(p,"px ").concat(s,`; + } + + .`).concat(Sa," .").concat(Sa,` { + right: 0 `).concat(s,`; + } + + .`).concat(ka," .").concat(ka,` { + margin-right: 0 `).concat(s,`; + } + + body[`).concat(xi,`] { + `).concat(eP,": ").concat(p,`px; + } +`)},Fg=function(){var t=parseInt(document.body.getAttribute(xi)||"0",10);return isFinite(t)?t:0},xP=function(){S.useEffect(function(){return document.body.setAttribute(xi,(Fg()+1).toString()),function(){var t=Fg()-1;t<=0?document.body.removeAttribute(xi):document.body.setAttribute(xi,t.toString())}},[])},wP=function(t){var r=t.noRelative,i=t.noImportant,s=t.gapMode,l=s===void 0?"margin":s;xP();var u=S.useMemo(function(){return gP(l)},[l]);return S.createElement(yP,{styles:vP(u,!r,l,i?"":"!important")})},$u=!1;if(typeof window<"u")try{var pa=Object.defineProperty({},"passive",{get:function(){return $u=!0,!0}});window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{$u=!1}var li=$u?{passive:!1}:!1,SP=function(t){return t.tagName==="TEXTAREA"},E0=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!SP(t)&&i[r]==="visible")},kP=function(t){return E0(t,"overflowY")},bP=function(t){return E0(t,"overflowX")},zg=function(t,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=A0(t,s);if(l){var u=R0(t,s),c=u[1],p=u[2];if(c>p)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},CP=function(t){var r=t.scrollTop,i=t.scrollHeight,s=t.clientHeight;return[r,i,s]},NP=function(t){var r=t.scrollLeft,i=t.scrollWidth,s=t.clientWidth;return[r,i,s]},A0=function(t,r){return t==="v"?kP(r):bP(r)},R0=function(t,r){return t==="v"?CP(r):NP(r)},TP=function(t,r){return t==="h"&&r==="rtl"?-1:1},jP=function(t,r,i,s,l){var u=TP(t,window.getComputedStyle(r).direction),c=u*s,p=i.target,m=r.contains(p),g=!1,y=c>0,v=0,w=0;do{if(!p)break;var b=R0(t,p),T=b[0],k=b[1],N=b[2],P=k-N-u*T;(T||P)&&A0(t,p)&&(v+=P,w+=T);var A=p.parentNode;p=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!m&&p!==document.body||m&&(r.contains(p)||r===p));return(y&&Math.abs(v)<1||!y&&Math.abs(w)<1)&&(g=!0),g},ha=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Bg=function(t){return[t.deltaX,t.deltaY]},Hg=function(t){return t&&"current"in t?t.current:t},PP=function(t,r){return t[0]===r[0]&&t[1]===r[1]},EP=function(t){return` + .block-interactivity-`.concat(t,` {pointer-events: none;} + .allow-interactivity-`).concat(t,` {pointer-events: all;} +`)},AP=0,ci=[];function RP(t){var r=S.useRef([]),i=S.useRef([0,0]),s=S.useRef(),l=S.useState(AP++)[0],u=S.useState(P0)[0],c=S.useRef(t);S.useEffect(function(){c.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var k=Zj([t.lockRef.current],(t.shards||[]).map(Hg),!0).filter(Boolean);return k.forEach(function(N){return N.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),k.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var p=S.useCallback(function(k,N){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!c.current.allowPinchZoom;var P=ha(k),A=i.current,M="deltaX"in k?k.deltaX:A[0]-P[0],O="deltaY"in k?k.deltaY:A[1]-P[1],V,U=k.target,z=Math.abs(M)>Math.abs(O)?"h":"v";if("touches"in k&&z==="h"&&U.type==="range")return!1;var F=zg(z,U);if(!F)return!0;if(F?V=z:(V=z==="v"?"h":"v",F=zg(z,U)),!F)return!1;if(!s.current&&"changedTouches"in k&&(M||O)&&(s.current=V),!V)return!0;var J=s.current||V;return jP(J,N,k,J==="h"?M:O)},[]),m=S.useCallback(function(k){var N=k;if(!(!ci.length||ci[ci.length-1]!==u)){var P="deltaY"in N?Bg(N):ha(N),A=r.current.filter(function(V){return V.name===N.type&&(V.target===N.target||N.target===V.shadowParent)&&PP(V.delta,P)})[0];if(A&&A.should){N.cancelable&&N.preventDefault();return}if(!A){var M=(c.current.shards||[]).map(Hg).filter(Boolean).filter(function(V){return V.contains(N.target)}),O=M.length>0?p(N,M[0]):!c.current.noIsolation;O&&N.cancelable&&N.preventDefault()}}},[]),g=S.useCallback(function(k,N,P,A){var M={name:k,delta:N,target:P,should:A,shadowParent:MP(P)};r.current.push(M),setTimeout(function(){r.current=r.current.filter(function(O){return O!==M})},1)},[]),y=S.useCallback(function(k){i.current=ha(k),s.current=void 0},[]),v=S.useCallback(function(k){g(k.type,Bg(k),k.target,p(k,t.lockRef.current))},[]),w=S.useCallback(function(k){g(k.type,ha(k),k.target,p(k,t.lockRef.current))},[]);S.useEffect(function(){return ci.push(u),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",m,li),document.addEventListener("touchmove",m,li),document.addEventListener("touchstart",y,li),function(){ci=ci.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,li),document.removeEventListener("touchmove",m,li),document.removeEventListener("touchstart",y,li)}},[]);var b=t.removeScrollBar,T=t.inert;return S.createElement(S.Fragment,null,T?S.createElement(u,{styles:EP(l)}):null,b?S.createElement(wP,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function MP(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const IP=aP(j0,RP);var M0=S.forwardRef(function(t,r){return S.createElement(Ua,ln({},t,{ref:r,sideCar:IP}))});M0.classNames=Ua.classNames;var DP=[" ","Enter","ArrowUp","ArrowDown"],LP=[" ","Enter"],Ar="Select",[Wa,$a,_P]=qN(Ar),[Mi]=_d(Ar,[_P,p0]),Ka=p0(),[OP,or]=Mi(Ar),[VP,FP]=Mi(Ar),I0=t=>{const{__scopeSelect:r,children:i,open:s,defaultOpen:l,onOpenChange:u,value:c,defaultValue:p,onValueChange:m,dir:g,name:y,autoComplete:v,disabled:w,required:b,form:T}=t,k=Ka(r),[N,P]=S.useState(null),[A,M]=S.useState(null),[O,V]=S.useState(!1),U=JN(g),[z,F]=Og({prop:s,defaultProp:l??!1,onChange:u,caller:Ar}),[J,ce]=Og({prop:c,defaultProp:p,onChange:m,caller:Ar}),ye=S.useRef(null),xe=N?T||!!N.closest("form"):!0,[me,pe]=S.useState(new Set),we=Array.from(me).map(se=>se.props.value).join(";");return f.jsx(Oj,{...k,children:f.jsxs(OP,{required:b,scope:r,trigger:N,onTriggerChange:P,valueNode:A,onValueNodeChange:M,valueNodeHasChildren:O,onValueNodeHasChildrenChange:V,contentId:Od(),value:J,onValueChange:ce,open:z,onOpenChange:F,dir:U,triggerPointerDownPosRef:ye,disabled:w,children:[f.jsx(Wa.Provider,{scope:r,children:f.jsx(VP,{scope:t.__scopeSelect,onNativeOptionAdd:S.useCallback(se=>{pe(q=>new Set(q).add(se))},[]),onNativeOptionRemove:S.useCallback(se=>{pe(q=>{const I=new Set(q);return I.delete(se),I})},[]),children:i})}),xe?f.jsxs(tx,{"aria-hidden":!0,required:b,tabIndex:-1,name:y,autoComplete:v,value:J,onChange:se=>ce(se.target.value),disabled:w,form:T,children:[J===void 0?f.jsx("option",{value:""}):null,Array.from(me)]},we):null]})})};I0.displayName=Ar;var D0="SelectTrigger",L0=S.forwardRef((t,r)=>{const{__scopeSelect:i,disabled:s=!1,...l}=t,u=Ka(i),c=or(D0,i),p=c.disabled||s,m=st(r,c.onTriggerChange),g=$a(i),y=S.useRef("touch"),[v,w,b]=rx(k=>{const N=g().filter(M=>!M.disabled),P=N.find(M=>M.value===c.value),A=ix(N,k,P);A!==void 0&&c.onValueChange(A.value)}),T=k=>{p||(c.onOpenChange(!0),b()),k&&(c.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return f.jsx(Vj,{asChild:!0,...u,children:f.jsx(ze.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":nx(c.value)?"":void 0,...l,ref:m,onClick:Xe(l.onClick,k=>{k.currentTarget.focus(),y.current!=="mouse"&&T(k)}),onPointerDown:Xe(l.onPointerDown,k=>{y.current=k.pointerType;const N=k.target;N.hasPointerCapture(k.pointerId)&&N.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(T(k),k.preventDefault())}),onKeyDown:Xe(l.onKeyDown,k=>{const N=v.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&w(k.key),!(N&&k.key===" ")&&DP.includes(k.key)&&(T(),k.preventDefault())})})})});L0.displayName=D0;var _0="SelectValue",O0=S.forwardRef((t,r)=>{const{__scopeSelect:i,className:s,style:l,children:u,placeholder:c="",...p}=t,m=or(_0,i),{onValueNodeHasChildrenChange:g}=m,y=u!==void 0,v=st(r,m.onValueNodeChange);return Nt(()=>{g(y)},[g,y]),f.jsx(ze.span,{...p,ref:v,style:{pointerEvents:"none"},children:nx(m.value)?f.jsx(f.Fragment,{children:c}):u})});O0.displayName=_0;var zP="SelectIcon",V0=S.forwardRef((t,r)=>{const{__scopeSelect:i,children:s,...l}=t;return f.jsx(ze.span,{"aria-hidden":!0,...l,ref:r,children:s||"▼"})});V0.displayName=zP;var BP="SelectPortal",F0=t=>f.jsx(k0,{asChild:!0,...t});F0.displayName=BP;var Rr="SelectContent",z0=S.forwardRef((t,r)=>{const i=or(Rr,t.__scopeSelect),[s,l]=S.useState();if(Nt(()=>{l(new DocumentFragment)},[]),!i.open){const u=s;return u?Go.createPortal(f.jsx(B0,{scope:t.__scopeSelect,children:f.jsx(Wa.Slot,{scope:t.__scopeSelect,children:f.jsx("div",{children:t.children})})}),u):null}return f.jsx(H0,{...t,ref:r})});z0.displayName=Rr;var Jt=10,[B0,sr]=Mi(Rr),HP="SelectContentImpl",UP=Fo("SelectContent.RemoveScroll"),H0=S.forwardRef((t,r)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:p,sideOffset:m,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:T,hideWhenDetached:k,avoidCollisions:N,...P}=t,A=or(Rr,i),[M,O]=S.useState(null),[V,U]=S.useState(null),z=st(r,G=>O(G)),[F,J]=S.useState(null),[ce,ye]=S.useState(null),xe=$a(i),[me,pe]=S.useState(!1),we=S.useRef(!1);S.useEffect(()=>{if(M)return qj(M)},[M]),lT();const se=S.useCallback(G=>{const[ue,...ve]=xe().map(Re=>Re.ref.current),[ke]=ve.slice(-1),Te=document.activeElement;for(const Re of G)if(Re===Te||(Re?.scrollIntoView({block:"nearest"}),Re===ue&&V&&(V.scrollTop=0),Re===ke&&V&&(V.scrollTop=V.scrollHeight),Re?.focus(),document.activeElement!==Te))return},[xe,V]),q=S.useCallback(()=>se([F,M]),[se,F,M]);S.useEffect(()=>{me&&q()},[me,q]);const{onOpenChange:I,triggerPointerDownPosRef:Q}=A;S.useEffect(()=>{if(M){let G={x:0,y:0};const ue=ke=>{G={x:Math.abs(Math.round(ke.pageX)-(Q.current?.x??0)),y:Math.abs(Math.round(ke.pageY)-(Q.current?.y??0))}},ve=ke=>{G.x<=10&&G.y<=10?ke.preventDefault():M.contains(ke.target)||I(!1),document.removeEventListener("pointermove",ue),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",ve,{capture:!0})}}},[M,I,Q]),S.useEffect(()=>{const G=()=>I(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[I]);const[Y,R]=rx(G=>{const ue=xe().filter(Te=>!Te.disabled),ve=ue.find(Te=>Te.ref.current===document.activeElement),ke=ix(ue,G,ve);ke&&setTimeout(()=>ke.ref.current.focus())}),B=S.useCallback((G,ue,ve)=>{const ke=!we.current&&!ve;(A.value!==void 0&&A.value===ue||ke)&&(J(G),ke&&(we.current=!0))},[A.value]),oe=S.useCallback(()=>M?.focus(),[M]),ae=S.useCallback((G,ue,ve)=>{const ke=!we.current&&!ve;(A.value!==void 0&&A.value===ue||ke)&&ye(G)},[A.value]),Se=s==="popper"?Ku:U0,be=Se===Ku?{side:p,sideOffset:m,align:g,alignOffset:y,arrowPadding:v,collisionBoundary:w,collisionPadding:b,sticky:T,hideWhenDetached:k,avoidCollisions:N}:{};return f.jsx(B0,{scope:i,content:M,viewport:V,onViewportChange:U,itemRefCallback:B,selectedItem:F,onItemLeave:oe,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:ce,position:s,isPositioned:me,searchRef:Y,children:f.jsx(M0,{as:UP,allowPinchZoom:!0,children:f.jsx(Zv,{asChild:!0,trapped:A.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Xe(l,G=>{A.trigger?.focus({preventScroll:!0}),G.preventDefault()}),children:f.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:f.jsx(Se,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:G=>G.preventDefault(),...P,...be,onPlaced:()=>pe(!0),ref:z,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Xe(P.onKeyDown,G=>{const ue=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ue&&G.key.length===1&&R(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let ke=xe().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(G.key)&&(ke=ke.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const Te=G.target,Re=ke.indexOf(Te);ke=ke.slice(Re+1)}setTimeout(()=>se(ke)),G.preventDefault()}})})})})})})});H0.displayName=HP;var WP="SelectItemAlignedPosition",U0=S.forwardRef((t,r)=>{const{__scopeSelect:i,onPlaced:s,...l}=t,u=or(Rr,i),c=sr(Rr,i),[p,m]=S.useState(null),[g,y]=S.useState(null),v=st(r,z=>y(z)),w=$a(i),b=S.useRef(!1),T=S.useRef(!0),{viewport:k,selectedItem:N,selectedItemText:P,focusSelectedItem:A}=c,M=S.useCallback(()=>{if(u.trigger&&u.valueNode&&p&&g&&k&&N&&P){const z=u.trigger.getBoundingClientRect(),F=g.getBoundingClientRect(),J=u.valueNode.getBoundingClientRect(),ce=P.getBoundingClientRect();if(u.dir!=="rtl"){const Te=ce.left-F.left,Re=J.left-Te,nt=z.left-Re,Wt=z.width+nt,Ir=Math.max(Wt,F.width),Dr=window.innerWidth-Jt,ar=vg(Re,[Jt,Math.max(Jt,Dr-Ir)]);p.style.minWidth=Wt+"px",p.style.left=ar+"px"}else{const Te=F.right-ce.right,Re=window.innerWidth-J.right-Te,nt=window.innerWidth-z.right-Re,Wt=z.width+nt,Ir=Math.max(Wt,F.width),Dr=window.innerWidth-Jt,ar=vg(Re,[Jt,Math.max(Jt,Dr-Ir)]);p.style.minWidth=Wt+"px",p.style.right=ar+"px"}const ye=w(),xe=window.innerHeight-Jt*2,me=k.scrollHeight,pe=window.getComputedStyle(g),we=parseInt(pe.borderTopWidth,10),se=parseInt(pe.paddingTop,10),q=parseInt(pe.borderBottomWidth,10),I=parseInt(pe.paddingBottom,10),Q=we+se+me+I+q,Y=Math.min(N.offsetHeight*5,Q),R=window.getComputedStyle(k),B=parseInt(R.paddingTop,10),oe=parseInt(R.paddingBottom,10),ae=z.top+z.height/2-Jt,Se=xe-ae,be=N.offsetHeight/2,G=N.offsetTop+be,ue=we+se+G,ve=Q-ue;if(ue<=ae){const Te=ye.length>0&&N===ye[ye.length-1].ref.current;p.style.bottom="0px";const Re=g.clientHeight-k.offsetTop-k.offsetHeight,nt=Math.max(Se,be+(Te?oe:0)+Re+q),Wt=ue+nt;p.style.height=Wt+"px"}else{const Te=ye.length>0&&N===ye[0].ref.current;p.style.top="0px";const nt=Math.max(ae,we+k.offsetTop+(Te?B:0)+be)+ve;p.style.height=nt+"px",k.scrollTop=ue-ae+k.offsetTop}p.style.margin=`${Jt}px 0`,p.style.minHeight=Y+"px",p.style.maxHeight=xe+"px",s?.(),requestAnimationFrame(()=>b.current=!0)}},[w,u.trigger,u.valueNode,p,g,k,N,P,u.dir,s]);Nt(()=>M(),[M]);const[O,V]=S.useState();Nt(()=>{g&&V(window.getComputedStyle(g).zIndex)},[g]);const U=S.useCallback(z=>{z&&T.current===!0&&(M(),A?.(),T.current=!1)},[M,A]);return f.jsx(KP,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:b,onScrollButtonChange:U,children:f.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:f.jsx(ze.div,{...l,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});U0.displayName=WP;var $P="SelectPopperPosition",Ku=S.forwardRef((t,r)=>{const{__scopeSelect:i,align:s="start",collisionPadding:l=Jt,...u}=t,c=Ka(i);return f.jsx(Fj,{...c,...u,ref:r,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ku.displayName=$P;var[KP,Kd]=Mi(Rr,{}),Gu="SelectViewport",W0=S.forwardRef((t,r)=>{const{__scopeSelect:i,nonce:s,...l}=t,u=sr(Gu,i),c=Kd(Gu,i),p=st(r,u.onViewportChange),m=S.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),f.jsx(Wa.Slot,{scope:i,children:f.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Xe(l.onScroll,g=>{const y=g.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:w}=c;if(w?.current&&v){const b=Math.abs(m.current-y.scrollTop);if(b>0){const T=window.innerHeight-Jt*2,k=parseFloat(v.style.minHeight),N=parseFloat(v.style.height),P=Math.max(k,N);if(P0?O:0,v.style.justifyContent="flex-end")}}}m.current=y.scrollTop})})})]})});W0.displayName=Gu;var $0="SelectGroup",[GP,YP]=Mi($0),XP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=Od();return f.jsx(GP,{scope:i,id:l,children:f.jsx(ze.div,{role:"group","aria-labelledby":l,...s,ref:r})})});XP.displayName=$0;var K0="SelectLabel",QP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=YP(K0,i);return f.jsx(ze.div,{id:l.id,...s,ref:r})});QP.displayName=K0;var Ma="SelectItem",[qP,G0]=Mi(Ma),Y0=S.forwardRef((t,r)=>{const{__scopeSelect:i,value:s,disabled:l=!1,textValue:u,...c}=t,p=or(Ma,i),m=sr(Ma,i),g=p.value===s,[y,v]=S.useState(u??""),[w,b]=S.useState(!1),T=st(r,A=>m.itemRefCallback?.(A,s,l)),k=Od(),N=S.useRef("touch"),P=()=>{l||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(qP,{scope:i,value:s,disabled:l,textId:k,isSelected:g,onItemTextChange:S.useCallback(A=>{v(M=>M||(A?.textContent??"").trim())},[]),children:f.jsx(Wa.ItemSlot,{scope:i,value:s,disabled:l,textValue:y,children:f.jsx(ze.div,{role:"option","aria-labelledby":k,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:T,onFocus:Xe(c.onFocus,()=>b(!0)),onBlur:Xe(c.onBlur,()=>b(!1)),onClick:Xe(c.onClick,()=>{N.current!=="mouse"&&P()}),onPointerUp:Xe(c.onPointerUp,()=>{N.current==="mouse"&&P()}),onPointerDown:Xe(c.onPointerDown,A=>{N.current=A.pointerType}),onPointerMove:Xe(c.onPointerMove,A=>{N.current=A.pointerType,l?m.onItemLeave?.():N.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(c.onPointerLeave,A=>{A.currentTarget===document.activeElement&&m.onItemLeave?.()}),onKeyDown:Xe(c.onKeyDown,A=>{m.searchRef?.current!==""&&A.key===" "||(LP.includes(A.key)&&P(),A.key===" "&&A.preventDefault())})})})})});Y0.displayName=Ma;var bo="SelectItemText",X0=S.forwardRef((t,r)=>{const{__scopeSelect:i,className:s,style:l,...u}=t,c=or(bo,i),p=sr(bo,i),m=G0(bo,i),g=FP(bo,i),[y,v]=S.useState(null),w=st(r,P=>v(P),m.onItemTextChange,P=>p.itemTextRefCallback?.(P,m.value,m.disabled)),b=y?.textContent,T=S.useMemo(()=>f.jsx("option",{value:m.value,disabled:m.disabled,children:b},m.value),[m.disabled,m.value,b]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=g;return Nt(()=>(k(T),()=>N(T)),[k,N,T]),f.jsxs(f.Fragment,{children:[f.jsx(ze.span,{id:m.textId,...u,ref:w}),m.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Go.createPortal(u.children,c.valueNode):null]})});X0.displayName=bo;var Q0="SelectItemIndicator",q0=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t;return G0(Q0,i).isSelected?f.jsx(ze.span,{"aria-hidden":!0,...s,ref:r}):null});q0.displayName=Q0;var Yu="SelectScrollUpButton",Z0=S.forwardRef((t,r)=>{const i=sr(Yu,t.__scopeSelect),s=Kd(Yu,t.__scopeSelect),[l,u]=S.useState(!1),c=st(r,s.onScrollButtonChange);return Nt(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollTop>0;u(g)};const m=i.viewport;return p(),m.addEventListener("scroll",p),()=>m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?f.jsx(ex,{...t,ref:c,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop-m.offsetHeight)}}):null});Z0.displayName=Yu;var Xu="SelectScrollDownButton",J0=S.forwardRef((t,r)=>{const i=sr(Xu,t.__scopeSelect),s=Kd(Xu,t.__scopeSelect),[l,u]=S.useState(!1),c=st(r,s.onScrollButtonChange);return Nt(()=>{if(i.viewport&&i.isPositioned){let p=function(){const g=m.scrollHeight-m.clientHeight,y=Math.ceil(m.scrollTop)m.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),l?f.jsx(ex,{...t,ref:c,onAutoScroll:()=>{const{viewport:p,selectedItem:m}=i;p&&m&&(p.scrollTop=p.scrollTop+m.offsetHeight)}}):null});J0.displayName=Xu;var ex=S.forwardRef((t,r)=>{const{__scopeSelect:i,onAutoScroll:s,...l}=t,u=sr("SelectScrollButton",i),c=S.useRef(null),p=$a(i),m=S.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return S.useEffect(()=>()=>m(),[m]),Nt(()=>{p().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),f.jsx(ze.div,{"aria-hidden":!0,...l,ref:r,style:{flexShrink:0,...l.style},onPointerDown:Xe(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Xe(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Xe(l.onPointerLeave,()=>{m()})})}),ZP="SelectSeparator",JP=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t;return f.jsx(ze.div,{"aria-hidden":!0,...s,ref:r})});JP.displayName=ZP;var Qu="SelectArrow",eE=S.forwardRef((t,r)=>{const{__scopeSelect:i,...s}=t,l=Ka(i),u=or(Qu,i),c=sr(Qu,i);return u.open&&c.position==="popper"?f.jsx(zj,{...l,...s,ref:r}):null});eE.displayName=Qu;var tE="SelectBubbleInput",tx=S.forwardRef(({__scopeSelect:t,value:r,...i},s)=>{const l=S.useRef(null),u=st(s,l),c=$j(r);return S.useEffect(()=>{const p=l.current;if(!p)return;const m=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(m,"value").set;if(c!==r&&y){const v=new Event("change",{bubbles:!0});y.call(p,r),p.dispatchEvent(v)}},[c,r]),f.jsx(ze.select,{...i,style:{...b0,...i.style},ref:u,defaultValue:r})});tx.displayName=tE;function nx(t){return t===""||t===void 0}function rx(t){const r=Pr(t),i=S.useRef(""),s=S.useRef(0),l=S.useCallback(c=>{const p=i.current+c;r(p),(function m(g){i.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>m(""),1e3))})(p)},[r]),u=S.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,l,u]}function ix(t,r,i){const l=r.length>1&&Array.from(r).every(g=>g===r[0])?r[0]:r,u=i?t.indexOf(i):-1;let c=nE(t,Math.max(u,0));l.length===1&&(c=c.filter(g=>g!==i));const m=c.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return m!==i?m:void 0}function nE(t,r){return t.map((i,s)=>t[(r+s)%t.length])}var rE=I0,iE=L0,oE=O0,sE=V0,aE=F0,lE=z0,cE=W0,uE=Y0,dE=X0,fE=q0,pE=Z0,hE=J0;function Co({...t}){return f.jsx(rE,{"data-slot":"select",...t})}function No({...t}){return f.jsx(oE,{"data-slot":"select-value",...t})}function To({className:t,size:r="default",children:i,...s}){return f.jsxs(iE,{"data-slot":"select-trigger","data-size":r,className:pt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-input-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[i,f.jsx(sE,{asChild:!0,children:f.jsx(Uv,{className:"size-4 opacity-50"})})]})}function jo({className:t,children:r,position:i="popper",...s}){return f.jsx(aE,{children:f.jsxs(lE,{"data-slot":"select-content",className:pt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...s,children:[f.jsx(mE,{}),f.jsx(cE,{className:pt("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),f.jsx(gE,{})]})})}function Ge({className:t,children:r,...i}){return f.jsxs(uE,{"data-slot":"select-item",className:pt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...i,children:[f.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:f.jsx(fE,{children:f.jsx(U2,{className:"size-4"})})}),f.jsx(dE,{children:r})]})}function mE({className:t,...r}){return f.jsx(pE,{"data-slot":"select-scroll-up-button",className:pt("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(K2,{className:"size-4"})})}function gE({className:t,...r}){return f.jsx(hE,{"data-slot":"select-scroll-down-button",className:pt("flex cursor-default items-center justify-center py-1",t),...r,children:f.jsx(Uv,{className:"size-4"})})}const yE=[{icon:pn,title:"Phone",details:["+91 7477247488","+91 7477247489"],description:"Available 24/7 for bookings and support"},{icon:Oa,title:"Email",details:["bookme@sangwaritaxi.com","support@sangwaritaxi.com"],description:"We respond within 24 hours"},{icon:tr,title:"Address",details:["Commercial complex second floor","Nehru Nagar east Bhilai beside state bank","Pin 490020"],description:"Visit our office during business hours"},{icon:Mr,title:"Business Hours",details:["Mon-Fri: 8:00 AM - 6:00 PM","Sat-Sun: 9:00 AM - 5:00 PM"],description:"Ride service available 24/7"}];function vE(){const[t,r]=S.useState({name:"",email:"",phone:"",subject:"",message:""}),[i,s]=S.useState(!1),[l,u]=S.useState(!1),c=(m,g)=>{r(y=>({...y,[m]:g}))},p=async m=>{m.preventDefault(),s(!0),await new Promise(g=>setTimeout(g,1e3)),s(!1),u(!0),setTimeout(()=>{u(!1),r({name:"",email:"",phone:"",subject:"",message:""})},3e3)};return f.jsx("div",{className:"py-8 sm:py-12 lg:py-16",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs("div",{className:"text-center mb-8 sm:mb-10 lg:mb-12",children:[f.jsx("h1",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl",children:"Contact Us"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Get in touch with us for any questions, feedback, or support. We're here to help make your ride experience exceptional."})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 sm:gap-8 lg:gap-12",children:[f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Send us a Message"})}),f.jsx(Mt,{children:l?f.jsxs(H.div,{className:"text-center py-8",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.6},children:[f.jsx(H.div,{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},children:f.jsx(X2,{className:"h-8 w-8 text-green-600"})}),f.jsx(H.h3,{className:"mb-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4},children:"Message Sent Successfully!"}),f.jsx(H.p,{className:"text-muted-foreground",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},children:"Thank you for contacting us. We'll get back to you within 24 hours."})]}):f.jsxs(H.form,{onSubmit:p,className:"space-y-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1},children:[f.jsx(bt,{htmlFor:"name",children:"Full Name"}),f.jsx(Zn,{id:"name",placeholder:"John Doe",value:t.name,onChange:m=>c("name",m.target.value),required:!0})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},children:[f.jsx(bt,{htmlFor:"email",children:"Email"}),f.jsx(Zn,{id:"email",type:"email",placeholder:"john@example.com",value:t.email,onChange:m=>c("email",m.target.value),required:!0})]})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3},children:[f.jsx(bt,{htmlFor:"phone",children:"Phone Number"}),f.jsx(Zn,{id:"phone",type:"tel",placeholder:"+1 (555) 123-4567",value:t.phone,onChange:m=>c("phone",m.target.value)})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.4},children:[f.jsx(bt,{children:"Subject"}),f.jsxs(Co,{value:t.subject,onValueChange:m=>c("subject",m),required:!0,children:[f.jsx(To,{children:f.jsx(No,{placeholder:"Select a subject"})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"booking",children:"Booking Inquiry"}),f.jsx(Ge,{value:"support",children:"Technical Support"}),f.jsx(Ge,{value:"feedback",children:"Feedback"}),f.jsx(Ge,{value:"partnership",children:"Partnership"}),f.jsx(Ge,{value:"complaint",children:"Complaint"}),f.jsx(Ge,{value:"other",children:"Other"})]})]})]})]}),f.jsxs(H.div,{className:"space-y-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[f.jsx(bt,{htmlFor:"message",children:"Message"}),f.jsx(XN,{id:"message",placeholder:"Please describe your inquiry or feedback...",rows:5,value:t.message,onChange:m=>c("message",m.target.value),required:!0})]}),f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsx(ft,{type:"submit",className:"w-full",disabled:i,children:i?f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(mg,{className:"h-4 w-4"}),"Sending..."]}):f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(mg,{className:"h-4 w-4"}),"Send Message"]})})})]})})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Get in Touch"})}),f.jsx(Mt,{className:"space-y-6",children:yE.map((m,g)=>f.jsxs("div",{className:"flex gap-4",children:[f.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:f.jsx(m.icon,{className:"h-6 w-6 text-primary"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"mb-1",children:m.title}),m.details.map((y,v)=>f.jsx("p",{className:"text-muted-foreground",children:y},v)),f.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:m.description})]})]},g))})]}),f.jsxs(Rt,{children:[f.jsx(gi,{children:f.jsx(yi,{children:"Frequently Asked Questions"})}),f.jsxs(Mt,{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"How do I book a ride?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"You can book through our website, mobile app, or call our 24/7 hotline."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"What payment methods do you accept?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"We accept credit cards, debit cards, digital wallets, and cash payments."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"Can I cancel my booking?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Yes, you can cancel up to 5 minutes before pickup without any charges."})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"mb-1",children:"Are your vehicles wheelchair accessible?"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Yes, we have wheelchair accessible vehicles. Please specify when booking."})]})]})]})]})]})]})})}const xE=[{icon:tr,delay:0,x:100,y:-50,color:"text-blue-300"},{icon:Mr,delay:.5,x:-80,y:-30,color:"text-green-300"},{icon:Dd,delay:1,x:120,y:50,color:"text-yellow-300"},{icon:Va,delay:1.5,x:-100,y:60,color:"text-purple-300"}];function wE({children:t}){return f.jsxs("section",{className:"relative min-h-[500px] sm:min-h-[600px] lg:min-h-[700px] flex items-center justify-center overflow-hidden",children:[f.jsxs("div",{className:"absolute inset-0 z-0",children:[f.jsx(H.div,{initial:{scale:1.1},animate:{scale:1},transition:{duration:1.5,ease:"easeOut"},children:f.jsx(Ld,{src:"https://images.unsplash.com/flagged/photo-1573763683412-ceb49038903c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxjaXR5JTIwc2t5bGluZSUyMHRyYW5zcG9ydGF0aW9ufGVufDF8fHx8MTc1NTU5OTk1NXww&ixlib=rb-4.1.0&q=80&w=1080&utm_source=figma&utm_medium=referral",alt:"City skyline",className:"w-full h-full object-cover"})}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/60 via-black/40 to-black/60"})]}),xE.map((r,i)=>f.jsx(H.div,{className:"absolute z-5 hidden lg:block",style:{left:`calc(50% + ${r.x}px)`,top:`calc(50% + ${r.y}px)`},initial:{opacity:0,scale:0},animate:{opacity:.3,scale:1,y:[0,-10,0]},transition:{delay:r.delay+.5,duration:1,y:{duration:3,repeat:1/0,ease:"easeInOut"}},children:f.jsx("div",{className:"w-16 h-16 bg-white/10 backdrop-blur-sm rounded-full flex items-center justify-center",children:f.jsx(r.icon,{className:`h-8 w-8 ${r.color}`})})},i)),f.jsxs("div",{className:"relative z-10 container mx-auto px-4 text-center text-white py-8 sm:py-12",children:[f.jsxs("div",{className:"max-w-4xl mx-auto space-y-4 sm:space-y-6 mb-6 sm:mb-8",children:[f.jsxs(H.h1,{className:"text-2xl sm:text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:[f.jsx(H.span,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"block text-white",children:"Durg/Bhilai-Raipur Airport Drop(Oneway)"}),f.jsx(H.span,{className:"block text-yellow-400 text-xl sm:text-3xl md:text-4xl lg:text-5xl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},children:"₹1099"})]}),f.jsx(H.p,{className:"text-base sm:text-lg md:text-xl lg:text-2xl text-white/90 max-w-3xl mx-auto px-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:"Book a reliable ride in minutes. Available 24/7 with professional drivers."})]}),f.jsx(H.div,{className:"flex justify-center px-2 sm:px-4",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1},children:t})]})]})}const qu=["New Delhi","Gurgaon","Noida","Faridabad","Ghaziabad","Mumbai","Pune","Nashik","Aurangabad","Chandigarh","Ludhiana","Amritsar","Jalandhar","Patiala","Mohali","Bathinda","Jaipur","Jodhpur","Udaipur","Ajmer","Kota","Bikaner","Alwar","Lucknow","Kanpur","Agra","Varanasi","Allahabad","Meerut","Bareilly","Aligarh","Dehradun","Haridwar","Rishikesh","Mussoorie","Nainital","Shimla","Manali","Dharamshala","Kolkata","Howrah","Durgapur","Asansol","Siliguri","Darjeeling","Bhubaneswar","Cuttack","Rourkela","Puri","Patna","Gaya","Muzaffarpur","Bhagalpur","Darbhanga","Guwahati","Silchar","Dibrugarh","Jorhat","Tezpur","Ahmedabad","Surat","Vadodara","Rajkot","Bhavnagar","Jamnagar","Gandhinagar","Thane","Navi Mumbai","Kalyan","Vasai-Virar","Solapur","Nagpur","Kolhapur","Bangalore","Mysore","Mangalore","Hubli","Belgaum","Gulbarga","Davangere","Chennai","Coimbatore","Madurai","Tiruchirappalli","Salem","Tirunelveli","Erode","Tiruppur","Vellore","Hyderabad","Secunderabad","Warangal","Nizamabad","Karimnagar","Khammam","Ramagundam","Kochi","Thiruvananthapuram","Kozhikode","Kollam","Thrissur","Alappuzha","Palakkad","Kannur","Indore","Bhopal","Jabalpur","Gwalior","Ujjain","Sagar","Dewas","Satna","Raipur","Bhilai","Bilaspur","Korba","Durg","Rajnandgaon","Pondicherry","Port Blair","Panaji","Margao","Vasco da Gama","Daman","Silvassa"],ox=["City Ride - Customize Price","Airport Taxi - ₹1099","Outstation - Customize Price","Mover and Packer - Customize Price","Corporate Services - Customize Price"];[...qu.map(t=>({value:t.toLowerCase().replace(/\s+/g,"-"),label:t,type:"location"})),...ox.map(t=>({value:t.toLowerCase().replace(/\s+/g,"-"),label:t,type:"service"}))];function SE({onSubmit:t}){const[r,i]=S.useState({pickup:"",dropoff:"",date:"",time:"",passengers:"1",vehicleType:"",contactNumber:"",contactName:""}),s=c=>{c.preventDefault(),t(r)},l=(c,p)=>{i(m=>({...m,[c]:p}))},u=new Date().toISOString().split("T")[0];return new Date().toTimeString().slice(0,5),f.jsx(H.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.6},className:"w-full max-w-2xl mx-auto",children:f.jsxs(Rt,{className:"w-full bg-white border-0 shadow-none",children:[f.jsxs(gi,{className:"text-center pb-4 sm:pb-6 lg:pb-8 bg-transparent px-4 sm:px-6 rounded-[0px]",children:[f.jsx(H.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},children:f.jsxs(yi,{className:"flex flex-col sm:flex-row items-center justify-center gap-2 text-center text-lg sm:text-xl lg:text-2xl bg-gradient-to-r from-primary to-primary/80 bg-clip-text text-transparent",children:[f.jsx("div",{className:"mb-1 sm:mb-0",children:f.jsx(tr,{className:"h-5 w-5 sm:h-6 sm:w-6 text-primary"})}),f.jsx("span",{className:"font-bold leading-tight text-[32px]",children:"Book Your Airport Taxi Now"})]})}),f.jsx(H.div,{className:"w-16 sm:w-20 lg:w-24 h-1 bg-gradient-to-r from-primary/30 via-primary to-primary/30 mx-auto mt-2 sm:mt-3 lg:mt-4 rounded-full",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:.3,duration:.8}})]}),f.jsx(Mt,{className:"bg-transparent px-4 sm:px-6 pt-[0px] pr-[21px] pb-[21px] pl-[21px]",children:f.jsxs("form",{onSubmit:s,className:"space-y-4 sm:space-y-6",children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{htmlFor:"pickup",className:"text-sm sm:text-base",children:"Pickup Location"}),f.jsxs(Co,{value:r.pickup,onValueChange:c=>l("pickup",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select pickup city"})}),f.jsx(jo,{className:"max-h-48",children:qu.map(c=>f.jsx(Ge,{value:c,children:c},c))})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{htmlFor:"dropoff",className:"text-sm sm:text-base",children:"Drop-off Location / Service"}),f.jsxs(Co,{value:r.dropoff,onValueChange:c=>l("dropoff",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select destination or service"})}),f.jsxs(jo,{className:"max-h-48",children:[f.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground border-b",children:"Services"}),ox.map(c=>f.jsx(Ge,{value:c,children:c},c)),f.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground border-b",children:"All India Locations"}),qu.map(c=>f.jsx(Ge,{value:c,children:c},c))]})]})]})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"date",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Hv,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Date"]}),f.jsx(Zn,{id:"date",type:"date",min:u,value:r.date,onChange:c=>l("date",c.target.value),className:"h-10 sm:h-11",required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"time",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Mr,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Time"]}),f.jsx(Zn,{id:"time",type:"time",value:r.time,onChange:c=>l("time",c.target.value),className:"h-10 sm:h-11",required:!0})]})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"contactName",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx($v,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Contact Name"]}),f.jsx(Zn,{id:"contactName",type:"text",placeholder:"Enter your name",value:r.contactName,onChange:c=>l("contactName",c.target.value),className:"h-10 sm:h-11",required:!0})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"contactNumber",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Contact Number"]}),f.jsx(Zn,{id:"contactNumber",type:"tel",placeholder:"Enter your contact number",value:r.contactNumber,onChange:c=>l("contactNumber",c.target.value),className:"h-10 sm:h-11",required:!0})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{htmlFor:"customerEmail",className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Oa,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Email Address ",f.jsx("span",{className:"text-xs text-muted-foreground",children:"(For booking confirmation)"})]}),f.jsx(Zn,{id:"customerEmail",type:"email",placeholder:"Enter your email address",value:r.customerEmail,onChange:c=>l("customerEmail",c.target.value),className:"h-10 sm:h-11"})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs(bt,{className:"flex items-center gap-2 text-sm sm:text-base",children:[f.jsx(Ei,{className:"h-3 w-3 sm:h-4 sm:w-4"}),"Passengers"]}),f.jsxs(Co,{value:r.passengers,onValueChange:c=>l("passengers",c),children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"1",children:"1 Passenger"}),f.jsx(Ge,{value:"2",children:"2 Passengers"}),f.jsx(Ge,{value:"3",children:"3 Passengers"}),f.jsx(Ge,{value:"4",children:"4 Passengers"}),f.jsx(Ge,{value:"5",children:"5 Passengers"}),f.jsx(Ge,{value:"6",children:"6 Passengers"}),f.jsx(Ge,{value:"7",children:"7 Passengers"}),f.jsx(Ge,{value:"8",children:"8+ Passengers"})]})]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(bt,{className:"text-sm sm:text-base",children:"Vehicle Type"}),f.jsxs(Co,{value:r.vehicleType,onValueChange:c=>l("vehicleType",c),required:!0,children:[f.jsx(To,{className:"h-10 sm:h-11",children:f.jsx(No,{placeholder:"Select vehicle"})}),f.jsxs(jo,{children:[f.jsx(Ge,{value:"5-seater",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"5 Seater - Airport Taxi "})}),f.jsx(Ge,{value:"7-seater",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"7 Seater (Ertiga) - Airport Taxi "})}),f.jsx(Ge,{value:"innova",children:f.jsx("span",{className:"text-xs sm:text-sm",children:"Innova - Airport Taxi "})})]})]})]})]}),f.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[f.jsx(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsx(ft,{type:"submit",className:"w-full h-11 sm:h-12 text-sm sm:text-base shadow-lg hover:shadow-xl transition-all duration-300 rounded-[8px]",children:f.jsx("span",{className:"font-semibold",children:"Book Your Airport Taxi"})})}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"h-px bg-border flex-1"}),f.jsx("span",{className:"text-xs text-muted-foreground px-2",children:"OR"}),f.jsx("div",{className:"h-px bg-border flex-1"})]}),f.jsxs(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},className:"relative",children:[f.jsx(H.div,{className:"absolute inset-0 bg-gradient-to-r from-green-400 to-green-600 rounded-lg",animate:{opacity:[.8,1,.8],scale:[1,1.02,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}}),f.jsxs(ft,{type:"button",className:"w-full h-11 sm:h-12 relative z-10 bg-gradient-to-r from-green-500 to-green-600 hover:from-green-600 hover:to-green-700 text-white border-0 shadow-lg",onClick:()=>window.open("tel:+91-7477247488","_self"),children:[f.jsx(pn,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-2"}),f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"font-semibold text-sm sm:text-base",children:"Call to Book Taxi"}),f.jsx("div",{className:"text-xs opacity-90",children:"7477247488"})]})]})]})]})]})})]})})}const kE={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},bE={hidden:{opacity:0,x:-20},visible:{opacity:1,x:0,transition:{duration:.5,ease:"easeOut"}}};function CE({vehicles:t,onSelect:r}){return f.jsxs("div",{className:"space-y-4",children:[f.jsx(H.h2,{className:"mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:"Choose Your Vehicle"}),f.jsx(H.div,{className:"grid gap-4",variants:kE,initial:"hidden",animate:"visible",children:t.map((i,s)=>f.jsx(H.div,{variants:bE,whileHover:{scale:1.02,transition:{duration:.2}},whileTap:{scale:.98},children:f.jsx(Rt,{className:"hover:shadow-lg transition-all duration-300 cursor-pointer border-2 hover:border-primary/20 group",children:f.jsx(Mt,{className:"p-6",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs(H.div,{className:"w-16 h-16 bg-gradient-to-br from-primary/10 to-primary/20 rounded-lg flex items-center justify-center relative overflow-hidden",whileHover:{rotate:[0,-5,5,0]},transition:{duration:.5},children:[f.jsx(H.div,{animate:{y:[0,-2,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:f.jsx(Pi,{className:"h-8 w-8 text-primary"})}),f.jsx(H.div,{className:"absolute top-1 right-1",animate:{opacity:[0,1,0],scale:[.5,1,.5]},transition:{duration:2,repeat:1/0,delay:s*.3},children:f.jsx(NN,{className:"h-3 w-3 text-yellow-400"})})]}),f.jsxs("div",{className:"space-y-1",children:[f.jsx(H.h3,{className:"font-medium group-hover:text-primary transition-colors",initial:{opacity:0},animate:{opacity:1},transition:{delay:.2},children:i.name}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(H.div,{animate:{rotate:[0,360]},transition:{duration:20,repeat:1/0,ease:"linear"},children:f.jsx(Ei,{className:"h-4 w-4"})}),f.jsxs("span",{children:[i.capacity," passengers"]}),f.jsx("span",{children:"•"}),f.jsx(Va,{className:"h-4 w-4 fill-yellow-400 text-yellow-400"}),f.jsx(H.span,{animate:{scale:[1,1.1,1]},transition:{duration:2,repeat:1/0},children:i.rating})]}),f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(H.div,{animate:{rotate:[0,360]},transition:{duration:60,repeat:1/0,ease:"linear"},children:f.jsx(Mr,{className:"h-4 w-4"})}),f.jsx("span",{children:i.estimatedTime})]}),f.jsx(H.div,{className:"flex gap-1 mt-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},children:i.features.map((l,u)=>f.jsx(H.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.4+u*.1},whileHover:{scale:1.1},children:f.jsx(zo,{variant:"secondary",className:"text-xs",children:l})},u))})]})]}),f.jsxs("div",{className:"text-right space-y-2",children:[f.jsx(H.div,{className:"text-right",initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.2},whileHover:{scale:1.1},children:f.jsxs("div",{className:"text-2xl font-semibold text-primary",children:["₹",i.price]})}),f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsx(ft,{onClick:()=>r(i),className:"w-full group-hover:shadow-lg transition-shadow",children:f.jsx(H.span,{animate:{x:[0,2,0]},transition:{duration:2,repeat:1/0},children:"Select"})})})]})]})})})},i.id))})]})}function NE({availableVehicles:t,bookingData:r,onVehicleSelect:i,onBack:s}){return f.jsx(H.div,{className:"container mx-auto px-4 py-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs(H.div,{className:"flex items-center gap-4 mb-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[f.jsx(H.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:f.jsxs(ft,{variant:"ghost",onClick:s,children:[f.jsx(Bv,{className:"h-4 w-4 mr-2"}),"Back"]})}),f.jsxs("div",{children:[f.jsx(H.h1,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},children:"Available Vehicles"}),f.jsxs(H.p,{className:"text-muted-foreground",initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:["From ",r.pickup," to ",r.dropoff]})]})]}),f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:f.jsx(CE,{vehicles:t,onSelect:i})})]})})}function TE({bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s}){return r.price,f.jsxs(Rt,{className:"w-full max-w-2xl",children:[f.jsx(gi,{children:f.jsxs(yi,{className:"flex items-center gap-2",children:[f.jsx(Wv,{className:"h-5 w-5 text-green-500"}),"Confirm Your Booking"]})}),f.jsxs(Mt,{className:"space-y-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Trip Details"}),f.jsxs("div",{className:"grid gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(tr,{className:"h-4 w-4 text-green-500"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Pickup"}),f.jsx("div",{children:t.pickup})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(tr,{className:"h-4 w-4 text-red-500"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Drop-off"}),f.jsx("div",{children:t.dropoff})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Hv,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Date & Time"}),f.jsxs("div",{children:[new Date(t.date).toLocaleDateString()," at ",t.time]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Ei,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Passengers"}),f.jsx("div",{children:t.passengers})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx($v,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Contact Name"}),f.jsx("div",{children:t.contactName})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(pn,{className:"h-4 w-4"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm text-muted-foreground",children:"Contact Number"}),f.jsx("div",{children:t.contactNumber})]})]})]})]}),f.jsx(zu,{}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Selected Vehicle"}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-lg flex items-center justify-center",children:f.jsx(Pi,{className:"h-6 w-6 text-gray-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("div",{className:"font-medium",children:r.name}),f.jsxs("div",{className:"text-sm text-muted-foreground",children:[r.capacity," passengers • ",r.estimatedTime]}),f.jsx("div",{className:"flex gap-1 mt-1",children:r.features.map((l,u)=>f.jsx(zo,{variant:"secondary",className:"text-xs",children:l},u))})]})]})]}),f.jsx(zu,{}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{children:"Booking Information"}),f.jsxs("div",{className:"flex justify-between items-center p-4 bg-green-50 rounded-lg",children:[f.jsx("span",{className:"font-medium",children:t.dropoff.includes("Airport Taxi")?"Airport Taxi Fee":"Customize Price"}),f.jsx("span",{className:"text-xl font-semibold text-green-600",children:t.dropoff.includes("Airport Taxi")?"₹1099":"Call for Quote"})]}),f.jsx("div",{className:"text-sm text-muted-foreground text-center",children:t.dropoff.includes("Airport Taxi")?`₹1099 fixed rate for airport taxi. Driver will contact you at ${t.contactNumber} for pickup details.`:`Driver will contact you at ${t.contactNumber} for final pricing and trip details.`})]}),f.jsxs("div",{className:"flex gap-3 pt-4",children:[f.jsx(ft,{variant:"outline",onClick:s,className:"flex-1",children:"Edit Booking"}),f.jsx(ft,{onClick:i,className:"flex-1 bg-green-600 hover:bg-green-700",children:"Book Now"})]})]})]})}function jE({bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s,onBack:l}){return f.jsx("div",{className:"container mx-auto px-4 py-8",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[f.jsxs(ft,{variant:"ghost",onClick:l,children:[f.jsx(Bv,{className:"h-4 w-4 mr-2"}),"Back"]}),f.jsx("h1",{children:"Review Your Booking"})]}),f.jsx("div",{className:"flex justify-center",children:f.jsx(TE,{bookingData:t,selectedVehicle:r,onConfirm:i,onEdit:s})})]})})}function PE(){const t=S.useRef(null);return{playSuccessSound:S.useCallback(()=>{try{t.current||(t.current=new(window.AudioContext||window.webkitAudioContext));const i=t.current;i.state==="suspended"&&i.resume();const s=i.currentTime,l=[523.25,659.25,783.99],u=.15,c=.05;l.forEach((p,m)=>{const g=i.createOscillator(),y=i.createGain();g.connect(y),y.connect(i.destination),g.type="sine",g.frequency.setValueAtTime(p,s);const v=s+m*(u+c);y.gain.setValueAtTime(0,v),y.gain.linearRampToValueAtTime(.3,v+.02),y.gain.exponentialRampToValueAtTime(.01,v+u),g.start(v),g.stop(v+u)}),setTimeout(()=>{const p=i.createOscillator(),m=i.createGain();p.connect(m),m.connect(i.destination),p.type="triangle",p.frequency.setValueAtTime(1046.5,i.currentTime),m.gain.setValueAtTime(0,i.currentTime),m.gain.linearRampToValueAtTime(.2,i.currentTime+.01),m.gain.exponentialRampToValueAtTime(.001,i.currentTime+.4),p.start(),p.stop(i.currentTime+.4)},500)}catch(i){console.warn("Audio playback failed:",i)}},[])}}const EE=Array.from({length:20},(t,r)=>({id:r,x:Math.random()*100,delay:Math.random()*2,duration:3+Math.random()*2}));function AE({selectedVehicle:t,onBookAnother:r}){const{playSuccessSound:i}=PE();return S.useEffect(()=>{const s=setTimeout(()=>{i()},600);return()=>clearTimeout(s)},[i]),f.jsxs(H.div,{className:"container mx-auto px-4 py-8 relative overflow-hidden",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[EE.map(s=>f.jsx(H.div,{className:"absolute w-2 h-2 bg-primary rounded-full",style:{left:`${s.x}%`,top:"-10px"},animate:{y:[0,window.innerHeight+20],rotate:[0,360],opacity:[1,0]},transition:{duration:s.duration,delay:s.delay,ease:"easeOut"}},s.id)),f.jsx("div",{className:"max-w-2xl mx-auto relative z-10",children:f.jsx(H.div,{initial:{scale:.8,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:f.jsx(Rt,{className:"text-center shadow-xl border-green-200",children:f.jsxs(Mt,{className:"p-8",children:[f.jsxs(H.div,{className:"relative mx-auto mb-6",initial:{scale:0},animate:{scale:1},transition:{delay:.3,duration:.6,type:"spring",stiffness:200},children:[f.jsx(H.div,{animate:{rotate:[0,360],scale:[1,1.1,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:f.jsx(Wv,{className:"h-16 w-16 text-green-500 mx-auto"})}),[0,45,90,135,180,225,270,315].map((s,l)=>f.jsx(H.div,{className:"absolute w-1 h-1 bg-yellow-400 rounded-full",style:{top:"50%",left:"50%",transformOrigin:"0 0",transform:`rotate(${s}deg) translate(40px, -1px)`},animate:{opacity:[0,1,0],scale:[0,1,0]},transition:{duration:1.5,repeat:1/0,delay:l*.2}},s))]}),f.jsx(H.h1,{className:"mb-4 text-green-600",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:"Booking Confirmed!"}),f.jsx(H.p,{className:"text-muted-foreground mb-6",initial:{opacity:0},animate:{opacity:1},transition:{delay:.6},children:"Your ride has been booked successfully. Confirmation emails have been sent to both you and Sangwari Taxi."}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs(H.div,{className:"bg-gradient-to-r from-muted to-muted/50 p-4 rounded-lg relative overflow-hidden",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.7},children:[f.jsx(H.div,{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-green-400 to-green-600",initial:{width:0},animate:{width:"100%"},transition:{delay:.8,duration:1}}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(eN,{className:"h-5 w-5 text-primary"}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:"Booking Reference"}),f.jsxs(H.p,{className:"text-muted-foreground font-mono",animate:{color:["#666","#22c55e","#666"]},transition:{duration:2,repeat:1/0},children:["#RN",Date.now().toString().slice(-6)]})]})]})]}),f.jsx(H.div,{className:"bg-gradient-to-r from-blue-50 to-blue-100 p-4 rounded-lg relative",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(H.div,{animate:{rotate:[0,10,-10,0]},transition:{duration:2,repeat:1/0},children:f.jsx(Oa,{className:"h-5 w-5 text-blue-600"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:"Booking Confirmed"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"You will be contacted at bookme@sangwaritaxi.com"})]})]})}),f.jsx(H.div,{className:"bg-gradient-to-r from-primary/5 to-primary/10 p-4 rounded-lg relative",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.8},children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(H.div,{animate:{x:[0,3,0]},transition:{duration:2,repeat:1/0},children:f.jsx(Pi,{className:"h-5 w-5 text-primary"})}),f.jsx("div",{children:f.jsx(H.p,{className:"text-lg font-semibold text-primary",animate:{scale:[1,1.02,1]},transition:{duration:1.5,repeat:1/0},children:t.estimatedTime})})]})})]}),f.jsx(H.div,{className:"mt-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:f.jsx(H.div,{whileHover:{scale:1.02},whileTap:{scale:.98},children:f.jsxs(ft,{variant:"outline",onClick:r,className:"w-full",children:[f.jsx(Va,{className:"h-4 w-4 mr-2"}),"Book Another Ride"]})})})]})})})})]})}const RE=[{icon:Mr,title:"24/7 Availability",description:"Book a ride anytime, anywhere. Our drivers are always ready to serve you.",color:"text-blue-500",bgColor:"bg-blue-50 dark:bg-blue-500/10"},{icon:Dd,title:"Safe & Secure",description:"All our drivers are verified and vehicles are regularly inspected for your safety.",color:"text-green-500",bgColor:"bg-green-50 dark:bg-green-500/10"},{icon:Va,title:"Top Rated Drivers",description:"Experienced and professional drivers with excellent customer ratings.",color:"text-yellow-500",bgColor:"bg-yellow-50 dark:bg-yellow-500/10"},{icon:Pi,title:"Well-Maintained Fleet",description:"Our vehicles undergo regular maintenance and cleaning for your comfort.",color:"text-purple-500",bgColor:"bg-purple-50 dark:bg-purple-500/10"},{icon:Ei,title:"Trusted by Thousands",description:"Join thousands of satisfied customers who trust Sangwari Taxi for their journeys.",color:"text-red-500",bgColor:"bg-red-50 dark:bg-red-500/10"},{icon:pn,title:"24/7 Support",description:"Our customer support team is available round the clock to assist you.",color:"text-indigo-500",bgColor:"bg-indigo-50 dark:bg-indigo-500/10"}],ME={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},IE={hidden:{opacity:0,y:30},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}};function DE(){return f.jsx("section",{className:"py-8 sm:py-12 lg:py-16 bg-muted/50",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(H.div,{className:"text-center mb-8 sm:mb-10 lg:mb-12",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[f.jsx("h2",{className:"mb-3 sm:mb-4 text-2xl sm:text-3xl lg:text-4xl",children:"Why Choose Sangwari Taxi?"}),f.jsx("p",{className:"text-base sm:text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto px-4",children:"Experience the best transportation service with our commitment to quality, safety, and convenience."})]}),f.jsx(H.div,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",variants:ME,initial:"hidden",whileInView:"visible",viewport:{once:!0},children:RE.map((t,r)=>f.jsx(H.div,{variants:IE,whileHover:{y:-4},transition:{duration:.2},children:f.jsx(Rt,{className:"text-center h-full hover:shadow-lg transition-shadow duration-300",children:f.jsxs(Mt,{className:"p-6",children:[f.jsx("div",{className:`w-12 h-12 ${t.bgColor} rounded-lg flex items-center justify-center mx-auto mb-4`,children:f.jsx(t.icon,{className:`h-6 w-6 ${t.color}`})}),f.jsx("h3",{className:"mb-3",children:t.title}),f.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]})})},r))})]})})}function LE({currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,onSubmit:l,onVehicleSelect:u,onConfirm:c,onBackToForm:p,onBackToVehicles:m}){switch(t){case"form":return f.jsxs(f.Fragment,{children:[f.jsx(wE,{children:f.jsx(SE,{onSubmit:l})}),f.jsx(DE,{}),f.jsx(Gv,{})]});case"vehicles":return f.jsx(NE,{availableVehicles:s,bookingData:r,onVehicleSelect:u,onBack:p});case"confirmation":return f.jsx(jE,{bookingData:r,selectedVehicle:i,onConfirm:c,onEdit:p,onBack:m});case"success":return f.jsx(AE,{selectedVehicle:i,onBookAnother:p});default:return null}}function Ug({message:t="Loading...",showCar:r=!1}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-12 px-4",children:[f.jsx("div",{className:"relative mb-4",children:r?f.jsxs(H.div,{className:"relative",animate:{x:[-20,20,-20],rotate:[0,2,-2,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:[f.jsx(Pi,{className:"h-12 w-12 text-primary"}),f.jsx(H.div,{className:"absolute -right-1 -top-1 w-3 h-3 bg-primary/30 rounded-full",animate:{scale:[.5,1.2,.5],opacity:[.3,.8,.3]},transition:{duration:1,repeat:1/0,ease:"easeInOut"}}),f.jsx(H.div,{className:"absolute -left-2 bottom-0 w-2 h-2 bg-primary/20 rounded-full",animate:{scale:[.3,.8,.3],opacity:[.2,.6,.2]},transition:{duration:1.5,repeat:1/0,ease:"easeInOut",delay:.3}})]}):f.jsx(H.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:f.jsx(sN,{className:"h-8 w-8 text-primary"})})}),f.jsx(H.p,{className:"text-muted-foreground text-center max-w-xs",animate:{opacity:[.6,1,.6]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},children:t}),f.jsx("div",{className:"flex gap-1 mt-2",children:[0,1,2].map(i=>f.jsx(H.div,{className:"w-2 h-2 bg-primary rounded-full",animate:{scale:[.5,1,.5],opacity:[.3,1,.3]},transition:{duration:1.5,repeat:1/0,delay:i*.2}},i))})]})}const _E={form:"Setting up your booking...",vehicles:"Finding available vehicles...",confirmation:"Preparing your booking details...",success:"Sending confirmation emails..."},OE=300,VE=1e3,FE=500;function zE({currentPage:t,currentStep:r,bookingData:i,selectedVehicle:s,availableVehicles:l,isLoading:u,onSubmit:c,onVehicleSelect:p,onConfirm:m,onBackToForm:g,onBackToVehicles:y}){const v=()=>u?f.jsx(Ug,{message:_E[r]||"Loading...",showCar:!0}):f.jsx(Pu,{mode:"wait",children:f.jsx(H.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4},children:f.jsx(LE,{currentStep:r,bookingData:i,selectedVehicle:s,availableVehicles:l,onSubmit:c,onVehicleSelect:p,onConfirm:m,onBackToForm:g,onBackToVehicles:y})},r)});return u&&t!=="home"?f.jsx(Ug,{message:"Loading page...",showCar:!1}):f.jsx(Pu,{mode:"wait",children:f.jsx(H.div,{initial:{opacity:0,x:t==="home"?0:30},animate:{opacity:1,x:0},exit:{opacity:0,x:t==="home"?0:-30},transition:{duration:.4},children:(()=>{switch(t){case"home":return v();case"services":return f.jsx(Gv,{});case"about":return f.jsx(KN,{});case"contact":return f.jsx(vE,{});default:return v()}})()},t)})}const ma=[{id:"1",type:"5-seater",name:"5 Seater",price:1099,capacity:5,rating:4.5,estimatedTime:"Rider will contact you soon",features:["AC","Music System","Comfortable","Airport Taxi ₹1099"],image:""},{id:"2",type:"7-seater",name:"7 Seater (Ertiga)",price:1600,capacity:7,rating:4.6,estimatedTime:"Rider will contact you soon",features:["AC","Spacious","Family Car","Airport Taxi ₹1600"],image:""},{id:"3",type:"innova",name:"Innova",price:2e3,capacity:8,rating:4.8,estimatedTime:"Rider will contact you soon",features:["AC","Premium","Spacious","Comfortable","Airport Taxi ₹2000"],image:""}];function BE(t){const r=parseInt(t.passengers);let i=ma;if(t.vehicleType&&t.vehicleType!==""){const s=t.vehicleType;i=ma.filter(l=>l.type===s||l.capacity>=r)}else i=ma.filter(s=>s.capacity>=r);return i.length===0&&(i=ma),i}const HE=async(t,r)=>{await new Promise(s=>setTimeout(s,1e3));const i=`SNG${Date.now().toString().slice(-6)}`;if(console.log("Booking Details:",{bookingId:i,customer:{name:t.contactName,pickup:t.pickup,dropoff:t.dropoff,date:t.date,time:t.time},vehicle:{type:r.type,price:r.price,estimatedTime:r.estimatedTime}}),Math.random()>.05)return{success:!0,bookingId:i};throw new Error("Mock email service unavailable")};async function UE(t,r){try{const i=await HE(t,r);return i.success?(console.log("Booking confirmed successfully:",i.bookingId),{success:!0,bookingId:i.bookingId}):{success:!1,error:"SERVICE_ERROR",message:"Booking service temporarily unavailable"}}catch(i){return console.error("Error confirming booking:",i),{success:!1,error:"NETWORK_ERROR",message:`Network error: ${i instanceof Error?i.message:"Unknown error"}`}}}function WE(t){alert(t==="SERVICE_ERROR"?"Booking saved! However, the booking service is temporarily unavailable. You will be contacted directly at your provided phone number.":t==="NETWORK_ERROR"?"Booking confirmed! There was a minor network issue, but your booking is saved and you will be contacted directly.":"Booking confirmed! Your booking has been processed and you will be contacted directly.")}function $E(){const[t,r]=S.useState("form"),[i,s]=S.useState(null),[l,u]=S.useState(null),[c,p]=S.useState([]),[m,g]=S.useState(!1);return{currentStep:t,bookingData:i,selectedVehicle:l,availableVehicles:c,isLoading:m,handleBookingSubmit:N=>{g(!0),setTimeout(()=>{s(N);const P=BE(N);p(P),r("vehicles"),g(!1)},VE)},handleVehicleSelect:N=>{g(!0),setTimeout(()=>{u(N),r("confirmation"),g(!1)},FE)},handleConfirmBooking:async()=>{if(!i||!l)return;g(!0);const N=await UE(i,l);N.success||WE(N.error),r("success"),g(!1)},handleBackToForm:()=>{r("form"),s(null),u(null)},handleBackToVehicles:()=>{r("vehicles"),u(null)},resetBookingFlow:()=>{r("form"),s(null),u(null)}}}function KE(){const[t,r]=S.useState("home"),[i,s]=S.useState(!1);return{currentPage:t,isLoading:i,handleNavigate:(u,c)=>{s(!0),setTimeout(()=>{r(u),u!=="home"&&c&&c(),s(!1)},OE)}}}function GE(){const{currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,isLoading:l,handleBookingSubmit:u,handleVehicleSelect:c,handleConfirmBooking:p,handleBackToForm:m,handleBackToVehicles:g,resetBookingFlow:y}=$E(),{currentPage:v,isLoading:w,handleNavigate:b}=KE(),T=l||w,k=N=>{b(N,()=>{N!=="home"&&y()})};return f.jsxs("div",{className:"min-h-screen bg-background flex flex-col overflow-x-hidden",children:[f.jsx(jN,{currentPage:v,onNavigate:k}),f.jsx("main",{className:"flex-1 overflow-x-hidden",children:f.jsx(zE,{currentPage:v,currentStep:t,bookingData:r,selectedVehicle:i,availableVehicles:s,isLoading:T,onSubmit:u,onVehicleSelect:c,onConfirm:p,onBackToForm:m,onBackToVehicles:g})}),f.jsx(LN,{onNavigate:k}),f.jsx(_N,{})]})}u1.createRoot(document.getElementById("root")).render(f.jsx(GE,{})); diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 00000000..faf82d61 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,15 @@ + + + + + + + Taxi Booking Website + + + + +
+ + + \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 6284005b..667c4220 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,5 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react-swc'; -import path from 'path'; export default defineConfig({ plugins: [react()], @@ -9,10 +8,10 @@ export default defineConfig({ }, build: { target: 'esnext', - outDir: 'build', // Make sure this matches Dockerfile COPY path + outDir: 'dist', // Changed from 'build' to 'dist' }, server: { port: 3000, open: true, }, -}); +}); \ No newline at end of file -- 2.40.1