function Xy(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip={exports:{}},gs={},op={exports:{}},F={};/** * @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 Di=Symbol.for("react.element"),Zy=Symbol.for("react.portal"),qy=Symbol.for("react.fragment"),Jy=Symbol.for("react.strict_mode"),e0=Symbol.for("react.profiler"),t0=Symbol.for("react.provider"),n0=Symbol.for("react.context"),r0=Symbol.for("react.forward_ref"),i0=Symbol.for("react.suspense"),o0=Symbol.for("react.memo"),s0=Symbol.for("react.lazy"),bc=Symbol.iterator;function a0(e){return e===null||typeof e!="object"?null:(e=bc&&e[bc]||e["@@iterator"],typeof e=="function"?e:null)}var sp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ap=Object.assign,lp={};function jr(e,t,n){this.props=e,this.context=t,this.refs=lp,this.updater=n||sp}jr.prototype.isReactComponent={};jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function up(){}up.prototype=jr.prototype;function tu(e,t,n){this.props=e,this.context=t,this.refs=lp,this.updater=n||sp}var nu=tu.prototype=new up;nu.constructor=tu;ap(nu,jr.prototype);nu.isPureReactComponent=!0;var Ec=Array.isArray,cp=Object.prototype.hasOwnProperty,ru={current:null},dp={key:!0,ref:!0,__self:!0,__source:!0};function fp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)cp.call(t,r)&&!dp.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,U=N[D];if(0>>1;Di(Yn,O))Bei(xn,Yn)?(N[D]=xn,N[Be]=O,D=Be):(N[D]=Yn,N[ze]=O,D=ze);else if(Bei(xn,O))N[D]=xn,N[Be]=O,D=Be;else break e}}return L}function i(N,L){var O=N.sortIndex-L.sortIndex;return O!==0?O:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,g=!1,w=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=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(N){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=N)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function S(N){if(x=!1,m(N),!w)if(n(l)!==null)w=!0,B(P);else{var L=n(u);L!==null&&ce(S,L.startTime-N)}}function P(N,L){w=!1,x&&(x=!1,y(E),E=-1),g=!0;var O=p;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||N&&!G());){var D=d.callback;if(typeof D=="function"){d.callback=null,p=d.priorityLevel;var U=D(d.expirationTime<=L);L=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var ze=n(u);ze!==null&&ce(S,ze.startTime-L),Y=!1}return Y}finally{d=null,p=O,g=!1}}var b=!1,k=null,E=-1,j=5,R=-1;function G(){return!(e.unstable_now()-RN||125D?(N.sortIndex=O,t(u,N),n(l)===null&&N===n(u)&&(x?(y(E),E=-1):x=!0,ce(S,O-D))):(N.sortIndex=U,t(l,N),w||g||(w=!0,B(P))),N},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(N){var L=p;return function(){var O=p;p=L;try{return N.apply(this,arguments)}finally{p=O}}}})(vp);yp.exports=vp;var v0=yp.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 x0=v,Qe=v0;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fa=Object.prototype.hasOwnProperty,w0=/^[: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]*$/,Nc={},jc={};function S0(e){return Fa.call(jc,e)?!0:Fa.call(Nc,e)?!1:w0.test(e)?jc[e]=!0:(Nc[e]=!0,!1)}function C0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P0(e,t,n,r){if(t===null||typeof t>"u"||C0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Le(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){Se[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Se[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Se[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Se[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var ou=/[\-:]([a-z])/g;function su(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 t=e.replace(ou,su);Se[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ou,su);Se[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ou,su);Se[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Se.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Se[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function au(e,t,n,r){var i=Se.hasOwnProperty(t)?Se[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function k0(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function $a(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 Zn:return"Fragment";case Xn:return"Portal";case za:return"Profiler";case lu:return"StrictMode";case Ba:return"Suspense";case Ua:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sp:return(e.displayName||"Context")+".Consumer";case wp:return(e._context.displayName||"Context")+".Provider";case uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cu:return t=e.displayName||null,t!==null?t:$a(e.type)||"Memo";case Wt:t=e._payload,e=e._init;try{return $a(e(t))}catch{}}return null}function b0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $a(t);case 8:return t===lu?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E0(e){var t=Pp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){e._valueTracker||(e._valueTracker=E0(e))}function kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ro(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 Wa(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bp(e,t){t=t.checked,t!=null&&au(e,"checked",t,!1)}function Ha(e,t){bp(e,t);var n=cn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ga(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ga(e,t.type,cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ga(e,t,n){(t!=="number"||Ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={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},T0=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){T0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Mp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var N0=se({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,t){if(t){if(N0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Xa(e,t){if(e.indexOf("-")===-1)return typeof t.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 du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,hr=null,mr=null;function Ic(e){if(e=Oi(e)){if(typeof qa!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Ss(t),qa(e.stateNode,e.type,t))}}function Rp(e){hr?mr?mr.push(e):mr=[e]:hr=e}function Ap(){if(hr){var e=hr,t=mr;if(mr=hr=null,Ic(e),t)for(e=0;e>>=0,e===0?32:31-(F0(e)/z0|0)|0}var Xi=64,Zi=4194304;function Yr(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 Io(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yr(a):(o&=s,o!==0&&(r=Yr(o)))}else s=n&~i,s!==0?r=Yr(s):o!==0&&(r=Yr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function W0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Jr),Wc=String.fromCharCode(32),Hc=!1;function qp(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function wv(e,t){switch(e){case"compositionend":return Jp(t);case"keypress":return t.which!==32?null:(Hc=!0,Wc);case"textInput":return e=t.data,e===Wc&&Hc?null:e;default:return null}}function Sv(e,t){if(qn)return e==="compositionend"||!xu&&qp(e,t)?(e=Xp(),wo=gu=Qt=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qc(n)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ih(){for(var e=window,t=Ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Mv(e){var t=ih(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rh(n.ownerDocument.documentElement,n)){if(r!==null&&wu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Xc(n,o);var s=Xc(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Jn=null,il=null,ti=null,ol=!1;function Zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ol||Jn==null||Jn!==Ro(r)||(r=Jn,"selectionStart"in r&&wu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&yi(ti,r)||(ti=r,r=_o(il,"onSelect"),0nr||(e.current=dl[nr],dl[nr]=null,nr--)}function Q(e,t){nr++,dl[nr]=e.current,e.current=t}var dn={},Ee=mn(dn),Ve=mn(!1),Dn=dn;function wr(e,t){var n=e.type.contextTypes;if(!n)return dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function zo(){J(Ve),J(Ee)}function id(e,t,n){if(Ee.current!==dn)throw Error(T(168));Q(Ee,t),Q(Ve,n)}function ph(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,b0(e)||"Unknown",i));return se({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dn,Dn=Ee.current,Q(Ee,e),Q(Ve,Ve.current),!0}function od(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=ph(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,J(Ve),J(Ee),Q(Ee,e)):J(Ve),Q(Ve,n)}var Et=null,Cs=!1,pa=!1;function hh(e){Et===null?Et=[e]:Et.push(e)}function Uv(e){Cs=!0,hh(e)}function gn(){if(!pa&&Et!==null){pa=!0;var e=0,t=K;try{var n=Et;for(K=1;e>=s,i-=s,Tt=1<<32-pt(t)+i|n<E?(j=k,k=null):j=k.sibling;var R=p(y,k,m[E],S);if(R===null){k===null&&(k=j);break}e&&k&&R.alternate===null&&t(y,k),h=o(R,h,E),b===null?P=R:b.sibling=R,b=R,k=j}if(E===m.length)return n(y,k),te&&Cn(y,E),P;if(k===null){for(;EE?(j=k,k=null):j=k.sibling;var G=p(y,k,R.value,S);if(G===null){k===null&&(k=j);break}e&&k&&G.alternate===null&&t(y,k),h=o(G,h,E),b===null?P=G:b.sibling=G,b=G,k=j}if(R.done)return n(y,k),te&&Cn(y,E),P;if(k===null){for(;!R.done;E++,R=m.next())R=d(y,R.value,S),R!==null&&(h=o(R,h,E),b===null?P=R:b.sibling=R,b=R);return te&&Cn(y,E),P}for(k=r(y,k);!R.done;E++,R=m.next())R=g(k,y,E,R.value,S),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?E:R.key),h=o(R,h,E),b===null?P=R:b.sibling=R,b=R);return e&&k.forEach(function(I){return t(y,I)}),te&&Cn(y,E),P}function C(y,h,m,S){if(typeof m=="object"&&m!==null&&m.type===Zn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ki:e:{for(var P=m.key,b=h;b!==null;){if(b.key===P){if(P=m.type,P===Zn){if(b.tag===7){n(y,b.sibling),h=i(b,m.props.children),h.return=y,y=h;break e}}else if(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Wt&&ld(P)===b.type){n(y,b.sibling),h=i(b,m.props),h.ref=Fr(y,b,m),h.return=y,y=h;break e}n(y,b);break}else t(y,b);b=b.sibling}m.type===Zn?(h=Ln(m.props.children,y.mode,S,m.key),h.return=y,y=h):(S=No(m.type,m.key,m.props,null,y.mode,S),S.ref=Fr(y,h,m),S.return=y,y=S)}return s(y);case Xn:e:{for(b=m.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(y,h.sibling),h=i(h,m.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=Sa(m,y.mode,S),h.return=y,y=h}return s(y);case Wt:return b=m._init,C(y,h,b(m._payload),S)}if(Kr(m))return w(y,h,m,S);if(Dr(m))return x(y,h,m,S);io(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(y,h.sibling),h=i(h,m),h.return=y,y=h):(n(y,h),h=wa(m,y.mode,S),h.return=y,y=h),s(y)):n(y,h)}return C}var Cr=vh(!0),xh=vh(!1),Wo=mn(null),Ho=null,or=null,ku=null;function bu(){ku=or=Ho=null}function Eu(e){var t=Wo.current;J(Wo),e._currentValue=t}function hl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Ho=e,ku=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ie=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(ku!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Ho===null)throw Error(T(308));or=e,Ho.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Nn=null;function Tu(e){Nn===null?Nn=[e]:Nn.push(e)}function wh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Tu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Vt(e,r)}function Vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ht=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Vt(e,n)}return i=r.interleaved,i===null?(t.next=t,Tu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Vt(e,n)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}function ud(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Go(e,t,n,r){var i=e.updateQueue;Ht=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,c=u=l=null,a=o;do{var p=a.lane,g=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,x=a;switch(p=t,g=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){d=w.call(g,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,p=typeof w=="function"?w.call(g,d,p):w,p==null)break e;d=se({},d,p);break e;case 2:Ht=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else g={eventTime:g,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,s|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);On|=s,e.lanes=s,e.memoizedState=d}}function cd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ma.transition;ma.transition={};try{e(!1),t()}finally{K=n,ma.transition=r}}function _h(){return at().memoizedState}function Gv(e,t,n){var r=on(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fh(e))zh(t,n);else if(n=wh(e,t,n,r),n!==null){var i=Re();ht(n,e,r,i),Bh(n,t,r)}}function Kv(e,t,n){var r=on(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fh(e))zh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,yt(a,s)){var l=t.interleaved;l===null?(i.next=i,Tu(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=wh(e,t,i,r),n!==null&&(i=Re(),ht(n,e,r,i),Bh(n,t,r))}}function Fh(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function zh(e,t){ni=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pu(e,n)}}var Qo={readContext:st,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useInsertionEffect:Ce,useLayoutEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useMutableSource:Ce,useSyncExternalStore:Ce,useId:Ce,unstable_isNewReconciler:!1},Yv={readContext:st,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gv.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:dd,useDebugValue:Vu,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=dd(!1),t=e[0];return e=Hv.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=xt();if(te){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ve===null)throw Error(T(349));Vn&30||bh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fd(Th.bind(null,r,o,e),[e]),r.flags|=2048,bi(9,Eh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xt(),t=ve.identifierPrefix;if(te){var n=Nt,r=Tt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[wt]=t,e[wi]=r,Zh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Xa(n,r),n){case"dialog":q("cancel",e),q("close",e),i=r;break;case"iframe":case"object":case"embed":q("load",e),i=r;break;case"video":case"audio":for(i=0;ibr&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ko(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!te)return Pe(t),null}else 2*de()-o.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,zr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=de(),t.sibling=null,n=re.current,Q(re,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Uu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ue&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function nx(e,t){switch(Cu(t),t.tag){case 1:return Oe(t.type)&&zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pr(),J(Ve),J(Ee),Ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mu(t),null;case 13:if(J(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(re),null;case 4:return Pr(),null;case 10:return Eu(t.type._context),null;case 22:case 23:return Uu(),null;case 24:return null;default:return null}}var so=!1,be=!1,rx=typeof WeakSet=="function"?WeakSet:Set,M=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function Pl(e,t,n){try{n()}catch(r){ae(e,t,r)}}var Pd=!1;function ix(e,t){if(sl=Vo,e=ih(),wu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++c===r&&(l=s),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(al={focusedElem:e,selectionRange:n},Vo=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,C=w.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:ct(t.type,x),C);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(S){ae(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=Pd,Pd=!1,w}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Pl(t,n,o)}i=i.next}while(i!==r)}}function bs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function em(e){var t=e.alternate;t!==null&&(e.alternate=null,em(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wt],delete t[wi],delete t[cl],delete t[zv],delete t[Bv])),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 tm(e){return e.tag===5||e.tag===3||e.tag===4}function kd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(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 bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fo));else if(r!==4&&(e=e.child,e!==null))for(bl(e,t,n),e=e.sibling;e!==null;)bl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}var xe=null,dt=!1;function zt(e,t,n){for(n=n.child;n!==null;)nm(e,t,n),n=n.sibling}function nm(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(ys,n)}catch{}switch(n.tag){case 5:be||sr(n,t);case 6:var r=xe,i=dt;xe=null,zt(e,t,n),xe=r,dt=i,xe!==null&&(dt?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(dt?(e=xe,n=n.stateNode,e.nodeType===8?fa(e.parentNode,n):e.nodeType===1&&fa(e,n),mi(e)):fa(xe,n.stateNode));break;case 4:r=xe,i=dt,xe=n.stateNode.containerInfo,dt=!0,zt(e,t,n),xe=r,dt=i;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Pl(n,t,s),i=i.next}while(i!==r)}zt(e,t,n);break;case 1:if(!be&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ae(n,t,a)}zt(e,t,n);break;case 21:zt(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,zt(e,t,n),be=r):zt(e,t,n);break;default:zt(e,t,n)}}function bd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rx),t.forEach(function(r){var i=px.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=de()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sx(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,qo=0,W&6)throw Error(T(331));var i=W;for(W|=4,M=e.current;M!==null;){var o=M,s=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lde()-zu?An(e,0):Fu|=n),_e(e,t)}function cm(e,t){t===0&&(e.mode&1?(t=Zi,Zi<<=1,!(Zi&130023424)&&(Zi=4194304)):t=1);var n=Re();e=Vt(e,t),e!==null&&(Ii(e,t,n),_e(e,n))}function fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cm(e,n)}function px(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),cm(e,n)}var dm;dm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Ie=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ie=!1,ex(e,t,n);Ie=!!(e.flags&131072)}else Ie=!1,te&&t.flags&1048576&&mh(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bo(e,t),e=t.pendingProps;var i=wr(t,Ee.current);yr(t,n),i=Lu(null,t,r,e,i,n);var o=Du();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(o=!0,Bo(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nu(t),i.updater=ks,t.stateNode=i,i._reactInternals=t,gl(t,r,e,n),t=xl(null,t,r,!0,o,n)):(t.tag=0,te&&o&&Su(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mx(r),e=ct(r,e),i){case 0:t=vl(null,t,r,e,n);break e;case 1:t=wd(null,t,r,e,n);break e;case 11:t=vd(null,t,r,e,n);break e;case 14:t=xd(null,t,r,ct(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),vl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),wd(e,t,r,i,n);case 3:e:{if(Yh(t),e===null)throw Error(T(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Sh(e,t),Go(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=kr(Error(T(423)),t),t=Sd(e,t,r,n,i);break e}else if(r!==i){i=kr(Error(T(424)),t),t=Sd(e,t,r,n,i);break e}else for(Ge=tn(t.stateNode.containerInfo.firstChild),Ye=t,te=!0,ft=null,n=xh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sr(),r===i){t=Ot(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Ch(t),e===null&&pl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,ll(r,i)?s=null:o!==null&&ll(r,o)&&(t.flags|=32),Kh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&pl(t),null;case 13:return Qh(e,t,n);case 4:return ju(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),vd(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Q(Wo,r._currentValue),r._currentValue=s,o!==null)if(yt(o.value,s)){if(o.children===i.children&&!Ve.current){t=Ot(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Rt(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),hl(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(T(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),hl(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=st(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=ct(r,t.pendingProps),i=ct(r.type,i),xd(e,t,r,i,n);case 15:return Hh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ct(r,i),bo(e,t),t.tag=1,Oe(r)?(e=!0,Bo(t)):e=!1,yr(t,n),Uh(t,r,i),gl(t,r,i,n),xl(null,t,r,!0,e,n);case 19:return Xh(e,t,n);case 22:return Gh(e,t,n)}throw Error(T(156,t.tag))};function fm(e,t){return Fp(e,t)}function hx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new hx(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mx(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uu)return 11;if(e===cu)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function No(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Wu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Zn:return Ln(n.children,i,o,t);case lu:s=8,i|=8;break;case za:return e=rt(12,n,t,i|2),e.elementType=za,e.lanes=o,e;case Ba:return e=rt(13,n,t,i),e.elementType=Ba,e.lanes=o,e;case Ua:return e=rt(19,n,t,i),e.elementType=Ua,e.lanes=o,e;case Cp:return Ts(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wp:s=10;break e;case Sp:s=9;break e;case uu:s=11;break e;case cu:s=14;break e;case Wt:s=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=rt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ln(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function Ts(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Cp,e.lanes=n,e.stateNode={isHidden:!1},e}function wa(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Sa(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gx(e,t,n,r,i){this.tag=t,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=ta(0),this.expirationTimes=ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ta(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hu(e,t,n,r,i,o,s,a,l){return e=new gx(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(o),e}function yx(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gm)}catch(e){console.error(e)}}gm(),gp.exports=Ze;var As=gp.exports;const Cx=rp(As);var Ld=As;_a.createRoot=Ld.createRoot,_a.hydrateRoot=Ld.hydrateRoot;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ym(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kx(){return Math.random().toString(36).substr(2,8)}function Id(e,t){return{usr:e.state,key:e.key,idx:t}}function Rl(e,t,n,r){return n===void 0&&(n=null),Ti({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||kx()})}function ts(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function bx(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Zt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ti({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Zt.Pop;let C=c(),y=C==null?null:C-u;u=C,l&&l({action:a,location:x.location,delta:y})}function p(C,y){a=Zt.Push;let h=Rl(x.location,C,y);n&&n(h,C),u=c()+1;let m=Id(h,u),S=x.createHref(h);try{s.pushState(m,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(S)}o&&l&&l({action:a,location:x.location,delta:1})}function g(C,y){a=Zt.Replace;let h=Rl(x.location,C,y);n&&n(h,C),u=c();let m=Id(h,u),S=x.createHref(h);s.replaceState(m,"",S),o&&l&&l({action:a,location:x.location,delta:0})}function w(C){let y=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof C=="string"?C:ts(C);return h=h.replace(/ $/,"%20"),ue(y,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,y)}let x={get action(){return a},get location(){return e(i,s)},listen(C){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Dd,d),l=C,()=>{i.removeEventListener(Dd,d),l=null}},createHref(C){return t(i,C)},createURL:w,encodeLocation(C){let y=w(C);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:g,go(C){return s.go(C)}};return x}var Vd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vd||(Vd={}));function Ex(e,t,n){return n===void 0&&(n="/"),Tx(e,t,n,!1)}function Tx(e,t,n,r){let i=typeof t=="string"?Ar(t):t,o=Er(i.pathname||"/",n);if(o==null)return null;let s=vm(e);Nx(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(ue(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=an([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(ue(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vm(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Ix(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of xm(o.path))i(o,s,l)}),t}function xm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=xm(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Nx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Vx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jx=/^:[\w-]+$/,Mx=3,Rx=2,Ax=1,Lx=10,Dx=-2,Od=e=>e==="*";function Ix(e,t){let n=e.split("/"),r=n.length;return n.some(Od)&&(r+=Dx),t&&(r+=Rx),n.filter(i=>!Od(i)).reduce((i,o)=>i+(jx.test(o)?Mx:o===""?Ax:Lx),r)}function Vx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Ox(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:p,isOptional:g}=c;if(p==="*"){let x=a[d]||"";s=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=a[d];return g&&!w?u[p]=void 0:u[p]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function _x(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ym(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Fx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ym(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Er(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:Bx(n,t):t,search:Wx(r),hash:Hx(i)}}function Bx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ca(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ux(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wm(e,t){let n=Ux(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ar(e):(i=Ti({},e),ue(!i.pathname||!i.pathname.includes("?"),Ca("?","pathname","search",i)),ue(!i.pathname||!i.pathname.includes("#"),Ca("#","pathname","hash",i)),ue(!i.search||!i.search.includes("#"),Ca("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=zx(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const an=e=>e.join("/").replace(/\/\/+/g,"/"),$x=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Gx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Cm=["post","put","patch","delete"];new Set(Cm);const Kx=["get",...Cm];new Set(Kx);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Sm(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:an([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,o,e])}function Is(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(yn),{matches:i}=v.useContext($n),{pathname:o}=Lr(),s=JSON.stringify(wm(i,r.v7_relativeSplatPath));return v.useMemo(()=>Sm(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Zx(e,t){return qx(e,t)}function qx(e,t,n,r){Fi()||ue(!1);let{navigator:i}=v.useContext(yn),{matches:o}=v.useContext($n),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Lr(),c;if(t){var d;let C=typeof t=="string"?Ar(t):t;l==="/"||(d=C.pathname)!=null&&d.startsWith(l)||ue(!1),c=C}else c=u;let p=c.pathname||"/",g=p;if(l!=="/"){let C=l.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=Ex(e,{pathname:g}),x=r1(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:an([l,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?l:an([l,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&x?v.createElement(Ds.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Zt.Pop}},x):x}function Jx(){let e=a1(),t=Gx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,o)}const e1=v.createElement(Jx,null);class t1 extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement($n.Provider,{value:this.props.routeContext},v.createElement(km.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n1(e){let{routeContext:t,match:n,children:r}=e,i=v.useContext(Ls);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement($n.Provider,{value:t},r)}function r1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||ue(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,p)=>{let g,w=!1,x=null,C=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,x=d.route.errorElement||e1,l&&(u<0&&p===0?(u1("route-fallback",!1),w=!0,C=null):u===p&&(w=!0,C=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,p+1)),h=()=>{let m;return g?m=x:w?m=C:d.route.Component?m=v.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,v.createElement(n1,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?v.createElement(t1,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:h(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):h()},null)}var Em=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Em||{}),rs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rs||{});function i1(e){let t=v.useContext(Ls);return t||ue(!1),t}function o1(e){let t=v.useContext(Pm);return t||ue(!1),t}function s1(e){let t=v.useContext($n);return t||ue(!1),t}function Tm(e){let t=s1(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function a1(){var e;let t=v.useContext(km),n=o1(rs.UseRouteError),r=Tm(rs.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l1(){let{router:e}=i1(Em.UseNavigateStable),t=Tm(rs.UseNavigateStable),n=v.useRef(!1);return bm(()=>{n.current=!0}),v.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ni({fromRouteId:t},o)))},[e,t])}const _d={};function u1(e,t,n){!t&&!_d[e]&&(_d[e]=!0)}function c1(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Ut(e){ue(!1)}function d1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zt.Pop,navigator:o,static:s=!1,future:a}=e;Fi()&&ue(!1);let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:o,static:s,future:Ni({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Ar(r));let{pathname:c="/",search:d="",hash:p="",state:g=null,key:w="default"}=r,x=v.useMemo(()=>{let C=Er(c,l);return C==null?null:{location:{pathname:C,search:d,hash:p,state:g,key:w},navigationType:i}},[l,c,d,p,g,w,i]);return x==null?null:v.createElement(yn.Provider,{value:u},v.createElement(Ds.Provider,{children:n,value:x}))}function f1(e){let{children:t,location:n}=e;return Zx(Al(t),n)}new Promise(()=>{});function Al(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,i)=>{if(!v.isValidElement(r))return;let o=[...t,i];if(r.type===v.Fragment){n.push.apply(n,Al(r.props.children,o));return}r.type!==Ut&&ue(!1),!r.props.index||!r.props.children||ue(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Al(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function p1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function h1(e,t){return e.button===0&&(!t||t==="_self")&&!p1(e)}const m1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],g1=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],y1="6";try{window.__reactRouterVersion=y1}catch{}const v1=v.createContext({isTransitioning:!1}),x1="startTransition",Fd=hp[x1];function w1(e){let{basename:t,children:n,future:r,window:i}=e,o=v.useRef();o.current==null&&(o.current=Px({window:i,v5Compat:!0}));let s=o.current,[a,l]=v.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&Fd?Fd(()=>l(d)):l(d)},[l,u]);return v.useLayoutEffect(()=>s.listen(c),[s,c]),v.useEffect(()=>c1(r),[r]),v.createElement(d1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const S1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=v.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,p=Nm(t,m1),{basename:g}=v.useContext(yn),w,x=!1;if(typeof u=="string"&&C1.test(u)&&(w=u,S1))try{let m=new URL(window.location.href),S=u.startsWith("//")?new URL(m.protocol+u):new URL(u),P=Er(S.pathname,g);S.origin===m.origin&&P!=null?u=P+S.search+S.hash:x=!0}catch{}let C=Yx(u,{relative:i}),y=b1(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d});function h(m){r&&r(m),m.defaultPrevented||y(m)}return v.createElement("a",is({},p,{href:w||C,onClick:x||o?r:h,ref:n,target:l}))}),P1=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:u,children:c}=t,d=Nm(t,g1),p=Is(l,{relative:d.relative}),g=Lr(),w=v.useContext(Pm),{navigator:x,basename:C}=v.useContext(yn),y=w!=null&&E1(p)&&u===!0,h=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,m=g.pathname,S=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(m=m.toLowerCase(),S=S?S.toLowerCase():null,h=h.toLowerCase()),S&&C&&(S=Er(S,C)||S);const P=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=m===h||!s&&m.startsWith(h)&&m.charAt(P)==="/",k=S!=null&&(S===h||!s&&S.startsWith(h)&&S.charAt(h.length)==="/"),E={isActive:b,isPending:k,isTransitioning:y},j=b?r:void 0,R;typeof o=="function"?R=o(E):R=[o,b?"active":null,k?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let G=typeof a=="function"?a(E):a;return v.createElement($e,is({},d,{"aria-current":j,className:R,ref:n,style:G,to:l,viewTransition:u}),typeof c=="function"?c(E):c)});var Ll;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ll||(Ll={}));var zd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zd||(zd={}));function k1(e){let t=v.useContext(Ls);return t||ue(!1),t}function b1(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=Qx(),u=Lr(),c=Is(e,{relative:s});return v.useCallback(d=>{if(h1(d,n)){d.preventDefault();let p=r!==void 0?r:ts(u)===ts(c);l(e,{replace:p,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}function E1(e,t){t===void 0&&(t={});let n=v.useContext(v1);n==null&&ue(!1);let{basename:r}=k1(Ll.useViewTransitionState),i=Is(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Er(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Er(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ns(i.pathname,s)!=null||ns(i.pathname,o)!=null}const jm=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vs=v.createContext({}),Os=v.createContext(null),_s=typeof document<"u",Qu=_s?v.useLayoutEffect:v.useEffect,Mm=v.createContext({strict:!1}),Xu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),T1="framerAppearId",Rm="data-"+Xu(T1);function N1(e,t,n,r){const{visualElement:i}=v.useContext(Vs),o=v.useContext(Mm),s=v.useContext(Os),a=v.useContext(jm).reducedMotion,l=v.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;v.useInsertionEffect(()=>{u&&u.update(n,s)});const c=v.useRef(!!(n[Rm]&&!window.HandoffComplete));return Qu(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),v.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function lr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j1(e,t,n){return v.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):lr(n)&&(n.current=r))},[t])}function ji(e){return typeof e=="string"||Array.isArray(e)}function Fs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qu=["initial",...Zu];function zs(e){return Fs(e.animate)||qu.some(t=>ji(e[t]))}function Am(e){return!!(zs(e)||e.variants)}function M1(e,t){if(zs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ji(n)?n:void 0,animate:ji(r)?r:void 0}}return e.inherit!==!1?t:{}}function R1(e){const{initial:t,animate:n}=M1(e,v.useContext(Vs));return v.useMemo(()=>({initial:t,animate:n}),[Bd(t),Bd(n)])}function Bd(e){return Array.isArray(e)?e.join(" "):e}const Ud={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"]},Mi={};for(const e in Ud)Mi[e]={isEnabled:t=>Ud[e].some(n=>!!t[n])};function A1(e){for(const t in e)Mi[t]={...Mi[t],...e[t]}}const Ju=v.createContext({}),Lm=v.createContext({}),L1=Symbol.for("motionComponentSymbol");function D1({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&A1(e);function o(a,l){let u;const c={...v.useContext(jm),...a,layoutId:I1(a)},{isStatic:d}=c,p=R1(a),g=r(a,d);if(!d&&_s){p.visualElement=N1(i,g,c,t);const w=v.useContext(Lm),x=v.useContext(Mm).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,x,e,w))}return v.createElement(Vs.Provider,{value:p},u&&p.visualElement?v.createElement(u,{visualElement:p.visualElement,...c}):null,n(i,a,j1(g,p.visualElement,l),g,d,p.visualElement))}const s=v.forwardRef(o);return s[L1]=i,s}function I1({layoutId:e}){const t=v.useContext(Ju).id;return t&&e!==void 0?t+"-"+e:e}function V1(e){function t(r,i={}){return D1(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const O1=["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 ec(e){return typeof e!="string"||e.includes("-")?!1:!!(O1.indexOf(e)>-1||/[A-Z]/.test(e))}const os={};function _1(e){Object.assign(os,e)}const zi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wn=new Set(zi);function Dm(e,{layout:t,layoutId:n}){return Wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!os[e]||e==="opacity")}const Fe=e=>!!(e&&e.getVelocity),F1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z1=zi.length;function B1(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Vm=Im("--"),Dl=Im("var(--"),U1=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,$1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fn=(e,t,n)=>Math.min(Math.max(n,e),t),Hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},si={...Hn,transform:e=>fn(0,1,e)},uo={...Hn,default:1},ai=e=>Math.round(e*1e5)/1e5,Bs=/(-)?([\d]*\.?[\d])+/g,Om=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W1=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Bi(e){return typeof e=="string"}const Ui=e=>({test:t=>Bi(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$t=Ui("deg"),Pt=Ui("%"),V=Ui("px"),H1=Ui("vh"),G1=Ui("vw"),$d={...Pt,parse:e=>Pt.parse(e)/100,transform:e=>Pt.transform(e*100)},Wd={...Hn,transform:Math.round},_m={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:$t,rotateX:$t,rotateY:$t,rotateZ:$t,scale:uo,scaleX:uo,scaleY:uo,scaleZ:uo,skew:$t,skewX:$t,skewY:$t,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:si,originX:$d,originY:$d,originZ:V,zIndex:Wd,fillOpacity:si,strokeOpacity:si,numOctaves:Wd};function tc(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const p=t[d];if(Vm(d)){o[d]=p;continue}const g=_m[d],w=$1(p,g);if(Wn.has(d)){if(l=!0,s[d]=w,!c)continue;p!==(g.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=w):i[d]=w}if(t.transform||(l||r?i.transform=B1(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:p="50%",originZ:g=0}=a;i.transformOrigin=`${d} ${p} ${g}`}}const nc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fm(e,t,n){for(const r in t)!Fe(t[r])&&!Dm(r,n)&&(e[r]=t[r])}function K1({transformTemplate:e},t,n){return v.useMemo(()=>{const r=nc();return tc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Y1(e,t,n){const r=e.style||{},i={};return Fm(i,r,e),Object.assign(i,K1(e,t,n)),e.transformValues?e.transformValues(i):i}function Q1(e,t,n){const r={},i=Y1(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const X1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ss(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||X1.has(e)}let zm=e=>!ss(e);function Z1(e){e&&(zm=t=>t.startsWith("on")?!ss(t):e(t))}try{Z1(require("@emotion/is-prop-valid").default)}catch{}function q1(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(zm(i)||n===!0&&ss(i)||!t&&!ss(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Hd(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function J1(e,t,n){const r=Hd(t,e.x,e.width),i=Hd(n,e.y,e.height);return`${r} ${i}`}const ew={offset:"stroke-dashoffset",array:"stroke-dasharray"},tw={offset:"strokeDashoffset",array:"strokeDasharray"};function nw(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ew:tw;e[o.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[o.array]=`${s} ${a}`}function rc(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,p){if(tc(e,u,c,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:w,dimensions:x}=e;g.transform&&(x&&(w.transform=g.transform),delete g.transform),x&&(i!==void 0||o!==void 0||w.transform)&&(w.transformOrigin=J1(x,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&nw(g,s,a,l,!1)}const Bm=()=>({...nc(),attrs:{}}),ic=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rw(e,t,n,r){const i=v.useMemo(()=>{const o=Bm();return rc(o,t,{enableHardwareAcceleration:!1},ic(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Fm(o,e.style,e),i.style={...o,...i.style}}return i}function iw(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(ec(n)?rw:Q1)(r,o,s,n),c={...q1(r,typeof n=="string",e),...l,ref:i},{children:d}=r,p=v.useMemo(()=>Fe(d)?d.get():d,[d]);return v.createElement(n,{...c,children:p})}}function Um(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const $m=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 Wm(e,t,n,r){Um(e,t,void 0,r);for(const i in t.attrs)e.setAttribute($m.has(i)?i:Xu(i),t.attrs[i])}function oc(e,t){const{style:n}=e,r={};for(const i in n)(Fe(n[i])||t.style&&Fe(t.style[i])||Dm(i,e))&&(r[i]=n[i]);return r}function Hm(e,t){const n=oc(e,t);for(const r in e)if(Fe(e[r])||Fe(t[r])){const i=zi.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function sc(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Gm(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const as=e=>Array.isArray(e),ow=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sw=e=>as(e)?e[e.length-1]||0:e;function jo(e){const t=Fe(e)?e.get():e;return ow(t)?t.toValue():t}function aw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:lw(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Km=e=>(t,n)=>{const r=v.useContext(Vs),i=v.useContext(Os),o=()=>aw(e,t,r,i);return n?o():Gm(o)};function lw(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=jo(o[p]);let{initial:s,animate:a}=e;const l=zs(e),u=Am(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Fs(d)&&(Array.isArray(d)?d:[d]).forEach(g=>{const w=sc(e,g);if(!w)return;const{transitionEnd:x,transition:C,...y}=w;for(const h in y){let m=y[h];if(Array.isArray(m)){const S=c?m.length-1:0;m=m[S]}m!==null&&(i[h]=m)}for(const h in x)i[h]=x[h]}),i}const le=e=>e;class Gd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function uw(e){let t=new Gd,n=new Gd,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,p=d?t:n;return u&&s.add(l),p.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[p]=uw(()=>n=!0),d),{}),s=d=>o[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,cw),1),i.timestamp=d,i.isProcessing=!0,co.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:co.reduce((d,p)=>{const g=o[p];return d[p]=(w,x=!1,C=!1)=>(n||l(),g.schedule(w,x,C)),d},{}),cancel:d=>co.forEach(p=>o[p].cancel(d)),state:i,steps:o}}const{schedule:X,cancel:_t,state:ke,steps:Pa}=dw(typeof requestAnimationFrame<"u"?requestAnimationFrame:le,!0),fw={useVisualState:Km({scrapeMotionValuesFromProps:Hm,createRenderState:Bm,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{rc(n,r,{enableHardwareAcceleration:!1},ic(t.tagName),e.transformTemplate),Wm(t,n)})}})},pw={useVisualState:Km({scrapeMotionValuesFromProps:oc,createRenderState:nc})};function hw(e,{forwardMotionProps:t=!1},n,r){return{...ec(e)?fw:pw,preloadedFeatures:n,useRender:iw(t),createVisualElement:r,Component:e}}function jt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ym=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Us(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const mw=e=>t=>Ym(t)&&e(t,Us(t));function At(e,t,n,r){return jt(e,t,mw(n),r)}const gw=(e,t)=>n=>t(e(n)),ln=(...e)=>e.reduce(gw);function Qm(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Kd=Qm("dragHorizontal"),Yd=Qm("dragVertical");function Xm(e){let t=!1;if(e==="y")t=Yd();else if(e==="x")t=Kd();else{const n=Kd(),r=Yd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Zm(){const e=Xm(!0);return e?(e(),!1):!0}class vn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Qd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Zm())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&X.update(()=>a[r](o,s))};return At(e.current,n,i,{passive:!e.getProps()[r]})}class yw extends vn{mount(){this.unmount=ln(Qd(this.node,!0),Qd(this.node,!1))}unmount(){}}class vw extends vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ln(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const qm=(e,t)=>t?e===t?!0:qm(e,t.parentElement):!1;function ka(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Us(n))}class xw extends vn{constructor(){super(...arguments),this.removeStartListeners=le,this.removeEndListeners=le,this.removeAccessibleListeners=le,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=At(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!qm(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=At(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ln(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ka("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=jt(this.node.current,"keyup",s),ka("down",(a,l)=>{this.startPress(a,l)})},n=jt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ka("cancel",(o,s)=>this.cancelPress(o,s))},i=jt(this.node.current,"blur",r);this.removeAccessibleListeners=ln(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zm()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=At(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=jt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ln(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Il=new WeakMap,ba=new WeakMap,ww=e=>{const t=Il.get(e.target);t&&t(e)},Sw=e=>{e.forEach(ww)};function Cw({root:e,...t}){const n=e||document;ba.has(n)||ba.set(n,{});const r=ba.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Sw,{root:e,...t})),r[i]}function Pw(e,t,n){const r=Cw(t);return Il.set(e,n),r.observe(e),()=>{Il.delete(e),r.unobserve(e)}}const kw={some:0,all:1};class bw extends vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:kw[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return Pw(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ew(t,n))&&this.startObserver()}unmount(){}}function Ew({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tw={inView:{Feature:bw},tap:{Feature:xw},focus:{Feature:vw},hover:{Feature:yw}};function Jm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function jw(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function $s(e,t,n){const r=e.getProps();return sc(r,t,n!==void 0?n:r.custom,Nw(e),jw(e))}let Mw=le,ac=le;const un=e=>e*1e3,Lt=e=>e/1e3,Rw={current:!1},eg=e=>Array.isArray(e)&&typeof e[0]=="number";function tg(e){return!!(!e||typeof e=="string"&&ng[e]||eg(e)||Array.isArray(e)&&e.every(tg))}const Xr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ng={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xr([0,.65,.55,1]),circOut:Xr([.55,0,1,.45]),backIn:Xr([.31,.01,.66,-.59]),backOut:Xr([.33,1.53,.69,.99])};function rg(e){if(e)return eg(e)?Xr(e):Array.isArray(e)?e.map(rg):ng[e]}function Aw(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=rg(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Lw(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ig=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Dw=1e-7,Iw=12;function Vw(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=ig(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Dw&&++aVw(o,0,1,e,n);return o=>o===0||o===1?o:ig(i(o),t,r)}const Ow=$i(.42,0,1,1),_w=$i(0,0,.58,1),og=$i(.42,0,.58,1),Fw=e=>Array.isArray(e)&&typeof e[0]!="number",sg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ag=e=>t=>1-e(1-t),lc=e=>1-Math.sin(Math.acos(e)),lg=ag(lc),zw=sg(lc),ug=$i(.33,1.53,.69,.99),uc=ag(ug),Bw=sg(uc),Uw=e=>(e*=2)<1?.5*uc(e):.5*(2-Math.pow(2,-10*(e-1))),$w={linear:le,easeIn:Ow,easeInOut:og,easeOut:_w,circIn:lc,circInOut:zw,circOut:lg,backIn:uc,backInOut:Bw,backOut:ug,anticipate:Uw},Xd=e=>{if(Array.isArray(e)){ac(e.length===4);const[t,n,r,i]=e;return $i(t,n,r,i)}else if(typeof e=="string")return $w[e];return e},cc=(e,t)=>n=>!!(Bi(n)&&W1.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cg=(e,t,n)=>r=>{if(!Bi(r))return r;const[i,o,s,a]=r.match(Bs);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ww=e=>fn(0,255,e),Ea={...Hn,transform:e=>Math.round(Ww(e))},Mn={test:cc("rgb","red"),parse:cg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ea.transform(e)+", "+Ea.transform(t)+", "+Ea.transform(n)+", "+ai(si.transform(r))+")"};function Hw(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Vl={test:cc("#"),parse:Hw,transform:Mn.transform},ur={test:cc("hsl","hue"),parse:cg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Pt.transform(ai(t))+", "+Pt.transform(ai(n))+", "+ai(si.transform(r))+")"},Ne={test:e=>Mn.test(e)||Vl.test(e)||ur.test(e),parse:e=>Mn.test(e)?Mn.parse(e):ur.test(e)?ur.parse(e):Vl.parse(e),transform:e=>Bi(e)?e:e.hasOwnProperty("red")?Mn.transform(e):ur.transform(e)},ie=(e,t,n)=>-n*e+n*t+e;function Ta(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Ta(l,a,e+1/3),o=Ta(l,a,e),s=Ta(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Na=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Kw=[Vl,Mn,ur],Yw=e=>Kw.find(t=>t.test(e));function Zd(e){const t=Yw(e);let n=t.parse(e);return t===ur&&(n=Gw(n)),n}const dg=(e,t)=>{const n=Zd(e),r=Zd(t),i={...n};return o=>(i.red=Na(n.red,r.red,o),i.green=Na(n.green,r.green,o),i.blue=Na(n.blue,r.blue,o),i.alpha=ie(n.alpha,r.alpha,o),Mn.transform(i))};function Qw(e){var t,n;return isNaN(e)&&Bi(e)&&(((t=e.match(Bs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Om))===null||n===void 0?void 0:n.length)||0)>0}const fg={regex:U1,countKey:"Vars",token:"${v}",parse:le},pg={regex:Om,countKey:"Colors",token:"${c}",parse:Ne.parse},hg={regex:Bs,countKey:"Numbers",token:"${n}",parse:Hn.parse};function ja(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function ls(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ja(n,fg),ja(n,pg),ja(n,hg),n}function mg(e){return ls(e).values}function gg(e){const{values:t,numColors:n,numVars:r,tokenised:i}=ls(e),o=t.length;return s=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function Zw(e){const t=mg(e);return gg(e)(t.map(Xw))}const pn={test:Qw,parse:mg,createTransformer:gg,getAnimatableNone:Zw},yg=(e,t)=>n=>`${n>0?t:e}`;function vg(e,t){return typeof e=="number"?n=>ie(e,t,n):Ne.test(e)?dg(e,t):e.startsWith("var(")?yg(e,t):wg(e,t)}const xg=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>vg(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vg(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},wg=(e,t)=>{const n=pn.createTransformer(t),r=ls(e),i=ls(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ln(xg(r.values,i.values),n):yg(e,t)},Ri=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qd=(e,t)=>n=>ie(e,t,n);function Jw(e){return typeof e=="number"?qd:typeof e=="string"?Ne.test(e)?dg:wg:Array.isArray(e)?xg:typeof e=="object"?qw:qd}function eS(e,t,n){const r=[],i=n||Jw(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=eS(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(fn(e[0],e[o-1],u)):l}function tS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ri(0,t,r);e.push(ie(n,1,i))}}function nS(e){const t=[0];return tS(t,e.length-1),t}function rS(e,t){return e.map(n=>n*t)}function iS(e,t){return e.map(()=>t||og).splice(0,e.length-1)}function us({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Fw(r)?r.map(Xd):Xd(r),o={done:!1,value:t[0]},s=rS(n&&n.length===t.length?n:nS(t),e),a=Sg(s,t,{ease:Array.isArray(i)?i:iS(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Cg(e,t){return t?e*(1e3/t):0}const oS=5;function Pg(e,t,n){const r=Math.max(t-oS,0);return Cg(n-e(r),t-r)}const Ma=.001,sS=.01,Jd=10,aS=.05,lS=1;function uS({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Mw(e<=un(Jd));let s=1-t;s=fn(aS,lS,s),e=fn(sS,Jd,Lt(e)),s<1?(i=u=>{const c=u*s,d=c*e,p=c-n,g=Ol(u,s),w=Math.exp(-d);return Ma-p/g*w},o=u=>{const d=u*s*e,p=d*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,w=Math.exp(-d),x=Ol(Math.pow(u,2),s);return(-i(u)+Ma>0?-1:1)*((p-g)*w)/x}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Ma+c*d},o=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=dS(i,o,a);if(e=un(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const cS=12;function dS(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function hS(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ef(e,pS)&&ef(e,fS)){const n=uS(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function kg({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=hS({...r,velocity:-Lt(r.velocity||0)}),g=d||0,w=l/(2*Math.sqrt(a*u)),x=o-i,C=Lt(Math.sqrt(a/u)),y=Math.abs(x)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let h;if(w<1){const m=Ol(C,w);h=S=>{const P=Math.exp(-w*C*S);return o-P*((g+w*C*x)/m*Math.sin(m*S)+x*Math.cos(m*S))}}else if(w===1)h=m=>o-Math.exp(-C*m)*(x+(g+C*x)*m);else{const m=C*Math.sqrt(w*w-1);h=S=>{const P=Math.exp(-w*C*S),b=Math.min(m*S,300);return o-P*((g+w*C*x)*Math.sinh(b)+m*x*Math.cosh(b))/m}}return{calculatedDuration:p&&c||null,next:m=>{const S=h(m);if(p)s.done=m>=c;else{let P=g;m!==0&&(w<1?P=Pg(h,m,S):P=0);const b=Math.abs(P)<=n,k=Math.abs(o-S)<=t;s.done=b&&k}return s.value=s.done?o:S,s}}}function tf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},g=E=>a!==void 0&&El,w=E=>a===void 0?l:l===void 0||Math.abs(a-E)-x*Math.exp(-E/r),m=E=>y+h(E),S=E=>{const j=h(E),R=m(E);p.done=Math.abs(j)<=u,p.value=p.done?y:R};let P,b;const k=E=>{g(p.value)&&(P=E,b=kg({keyframes:[p.value,w(p.value)],velocity:Pg(m,E,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:E=>{let j=!1;return!b&&P===void 0&&(j=!0,S(E),k(E)),P!==void 0&&E>P?b.next(E-P):(!j&&S(E),p)}}}const mS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>_t(t),now:()=>ke.isProcessing?ke.timestamp:performance.now()}},nf=2e4;function rf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=nf?1/0:t}const gS={decay:tf,inertia:tf,tween:us,keyframes:us,spring:kg};function cs({autoplay:e=!0,delay:t=0,driver:n=mS,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let g=1,w=!1,x,C;const y=()=>{C=new Promise(D=>{x=D})};y();let h;const m=gS[i]||us;let S;m!==us&&typeof r[0]!="number"&&(S=Sg([0,100],r,{clamp:!1}),r=[0,100]);const P=m({...p,keyframes:r});let b;a==="mirror"&&(b=m({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let k="idle",E=null,j=null,R=null;P.calculatedDuration===null&&o&&(P.calculatedDuration=rf(P));const{calculatedDuration:G}=P;let I=1/0,ne=1/0;G!==null&&(I=G+s,ne=I*(o+1)-s);let A=0;const ee=D=>{if(j===null)return;g>0&&(j=Math.min(j,D)),g<0&&(j=Math.min(D-ne/g,j)),E!==null?A=E:A=Math.round(D-j)*g;const U=A-t*(g>=0?1:-1),Y=g>=0?U<0:U>ne;A=Math.max(U,0),k==="finished"&&E===null&&(A=ne);let ze=A,Yn=P;if(o){const Qs=Math.min(A,ne)/I;let Hi=Math.floor(Qs),wn=Qs%1;!wn&&Qs>=1&&(wn=1),wn===1&&Hi--,Hi=Math.min(Hi,o+1),!!(Hi%2)&&(a==="reverse"?(wn=1-wn,s&&(wn-=s/I)):a==="mirror"&&(Yn=b)),ze=fn(0,1,wn)*I}const Be=Y?{done:!1,value:r[0]}:Yn.next(ze);S&&(Be.value=S(Be.value));let{done:xn}=Be;!Y&&G!==null&&(xn=g>=0?A>=ne:A<=0);const Qy=E===null&&(k==="finished"||k==="running"&&xn);return d&&d(Be.value),Qy&&N(),Be},B=()=>{h&&h.stop(),h=void 0},ce=()=>{k="idle",B(),x(),y(),j=R=null},N=()=>{k="finished",c&&c(),B(),x()},L=()=>{if(w)return;h||(h=n(ee));const D=h.now();l&&l(),E!==null?j=D-E:(!j||k==="finished")&&(j=D),k==="finished"&&y(),R=j,E=null,k="running",h.start()};e&&L();const O={then(D,U){return C.then(D,U)},get time(){return Lt(A)},set time(D){D=un(D),A=D,E!==null||!h||g===0?E=D:j=h.now()-D/g},get duration(){const D=P.calculatedDuration===null?rf(P):P.calculatedDuration;return Lt(D)},get speed(){return g},set speed(D){D===g||!h||(g=D,O.time=Lt(A))},get state(){return k},play:L,pause:()=>{k="paused",E=A},stop:()=>{w=!0,k!=="idle"&&(k="idle",u&&u(),ce())},cancel:()=>{R!==null&&ee(R),ce()},complete:()=>{k="finished"},sample:D=>(j=0,ee(D))};return O}function yS(e){let t;return()=>(t===void 0&&(t=e()),t)}const vS=yS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),fo=10,wS=2e4,SS=(e,t)=>t.type==="spring"||e==="backgroundColor"||!tg(t.ease);function CS(e,t,{onUpdate:n,onComplete:r,...i}){if(!(vS()&&xS.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:p=300,ease:g,times:w}=i;if(SS(t,i)){const m=cs({...i,repeat:0,delay:0});let S={done:!1,value:d[0]};const P=[];let b=0;for(;!S.done&&b{u=!1,x.cancel()},y=()=>{u=!0,X.update(C),a(),c()};return x.onfinish=()=>{u||(e.set(Lw(d,i)),r&&r(),y())},{then(m,S){return l.then(m,S)},attachTimeline(m){return x.timeline=m,x.onfinish=null,le},get time(){return Lt(x.currentTime||0)},set time(m){x.currentTime=un(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return Lt(p)},play:()=>{s||(x.play(),_t(C))},pause:()=>x.pause(),stop:()=>{if(s=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const S=cs({...i,autoplay:!1});e.setWithVelocity(S.sample(m-fo).value,S.sample(m).value,fo)}y()},complete:()=>{u||x.finish()},cancel:y}}function PS({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:le,pause:le,stop:le,then:o=>(o(),Promise.resolve()),cancel:le,complete:le});return t?cs({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const kS={type:"spring",stiffness:500,damping:25,restSpeed:10},bS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ES={type:"keyframes",duration:.8},TS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NS=(e,{keyframes:t})=>t.length>2?ES:Wn.has(e)?e.startsWith("scale")?bS(t[1]):kS:TS,_l=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(pn.test(t)||t==="0")&&!t.startsWith("url(")),jS=new Set(["brightness","contrast","saturate","opacity"]);function MS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bs)||[];if(!r)return e;const i=n.replace(r,"");let o=jS.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const RS=/([a-z-]*)\(.*?\)/g,Fl={...pn,getAnimatableNone:e=>{const t=e.match(RS);return t?t.map(MS).join(" "):e}},AS={..._m,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:Fl,WebkitFilter:Fl},dc=e=>AS[e];function bg(e,t){let n=dc(e);return n!==Fl&&(n=pn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Eg=e=>/^0[^.\s]+$/.test(e);function LS(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Eg(e)}function DS(e,t,n,r){const i=_l(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;ui=>{const o=fc(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-un(s);const l=DS(t,e,n,o),u=l[0],c=l[l.length-1],d=_l(e,u),p=_l(e,c);let g={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:w=>{t.set(w),o.onUpdate&&o.onUpdate(w)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(IS(o)||(g={...g,...NS(e,g)}),g.duration&&(g.duration=un(g.duration)),g.repeatDelay&&(g.repeatDelay=un(g.repeatDelay)),!d||!p||Rw.current||o.type===!1||VS.skipAnimations)return PS(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const w=CS(t,e,g);if(w)return w}return cs(g)};function ds(e){return!!(Fe(e)&&e.add)}const Tg=e=>/^\-?\d*\.?\d+$/.test(e);function hc(e,t){e.indexOf(t)===-1&&e.push(t)}function mc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gc{constructor(){this.subscriptions=[]}add(t){return hc(this.subscriptions,t),()=>mc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class _S{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ke;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=OS(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Cg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tr(e,t){return new _S(e,t)}const Ng=e=>t=>t.test(e),FS={test:e=>e==="auto",parse:e=>e},jg=[Hn,V,Pt,$t,G1,H1,FS],Ur=e=>jg.find(Ng(e)),zS=[...jg,Ne,pn],BS=e=>zS.find(Ng(e));function US(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Tr(n))}function $S(e,t){const n=$s(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=sw(o[s]);US(e,s,a)}}function WS(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;al.remove(d))),u.push(C)}return s&&Promise.all(u).then(()=>{s&&$S(e,s)}),u}function zl(e,t,n={}){const r=$s(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Mg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return QS(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function QS(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(XS).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(zl(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function XS(e,t){return e.sortNodePosition(t)}function ZS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>zl(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=zl(e,t,n);else{const i=typeof t=="function"?$s(e,t,n.custom):t;r=Promise.all(Mg(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const qS=[...Zu].reverse(),JS=Zu.length;function e2(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ZS(e,n,r)))}function t2(e){let t=e2(e);const n=r2();let r=!0;const i=(l,u)=>{const c=$s(e,u);if(c){const{transition:d,transitionEnd:p,...g}=c;l={...l,...g,...p}}return l};function o(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},p=[],g=new Set;let w={},x=1/0;for(let y=0;yx&&P,R=!1;const G=Array.isArray(S)?S:[S];let I=G.reduce(i,{});b===!1&&(I={});const{prevResolvedValues:ne={}}=m,A={...ne,...I},ee=B=>{j=!0,g.has(B)&&(R=!0,g.delete(B)),m.needsAnimating[B]=!0};for(const B in A){const ce=I[B],N=ne[B];if(w.hasOwnProperty(B))continue;let L=!1;as(ce)&&as(N)?L=!Jm(ce,N):L=ce!==N,L?ce!==void 0?ee(B):g.add(B):ce!==void 0&&g.has(B)?ee(B):m.protectedKeys[B]=!0}m.prevProp=S,m.prevResolvedValues=I,m.isActive&&(w={...w,...I}),r&&e.blockInitialAnimation&&(j=!1),j&&(!k||R)&&p.push(...G.map(B=>({animation:B,options:{type:h,...l}})))}if(g.size){const y={};g.forEach(h=>{const m=e.getBaseTarget(h);m!==void 0&&(y[h]=m)}),p.push({animation:y})}let C=!!p.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(p):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(g=>{var w;return(w=g.animationState)===null||w===void 0?void 0:w.setActive(l,u)}),n[l].isActive=u;const p=s(c,l);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function n2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Jm(t,e):!1}function Sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r2(){return{animate:Sn(!0),whileInView:Sn(),whileHover:Sn(),whileTap:Sn(),whileDrag:Sn(),whileFocus:Sn(),exit:Sn()}}class i2 extends vn{constructor(t){super(t),t.animationState||(t.animationState=t2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Fs(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let o2=0;class s2 extends vn{constructor(){super(...arguments),this.id=o2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const a2={animation:{Feature:i2},exit:{Feature:s2}},of=(e,t)=>Math.abs(e-t);function l2(e,t){const n=of(e.x,t.x),r=of(e.y,t.y);return Math.sqrt(n**2+r**2)}class Rg{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Aa(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=l2(d.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:w}=d,{timestamp:x}=ke;this.history.push({...w,timestamp:x});const{onStart:C,onMove:y}=this.handlers;p||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ra(p,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Aa(d.type==="pointercancel"?this.lastMoveEventInfo:Ra(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,C),w&&w(d,C)},!Ym(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Us(t),a=Ra(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ke;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Aa(a,this.history)),this.removeListeners=ln(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}function Ra(e,t){return t?{point:t(e.point)}:e}function sf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Aa({point:e},t){return{point:e,delta:sf(e,Ag(t)),offset:sf(e,u2(t)),velocity:c2(t,.1)}}function u2(e){return e[0]}function Ag(e){return e[e.length-1]}function c2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ag(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>un(t)));)n--;if(!r)return{x:0,y:0};const o=Lt(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Xe(e){return e.max-e.min}function Bl(e,t=0,n=.01){return Math.abs(e-t)<=n}function af(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=Xe(n)/Xe(t),(Bl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(Bl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function li(e,t,n,r){af(e.x,t.x,n.x,r?r.originX:void 0),af(e.y,t.y,n.y,r?r.originY:void 0)}function lf(e,t,n){e.min=n.min+t.min,e.max=e.min+Xe(t)}function d2(e,t,n){lf(e.x,t.x,n.x),lf(e.y,t.y,n.y)}function uf(e,t,n){e.min=t.min-n.min,e.max=e.min+Xe(t)}function ui(e,t,n){uf(e.x,t.x,n.x),uf(e.y,t.y,n.y)}function f2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function cf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function p2(e,{top:t,left:n,bottom:r,right:i}){return{x:cf(e.x,n,i),y:cf(e.y,t,r)}}function df(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ri(t.min,t.max-r,e.min):r>i&&(n=Ri(e.min,e.max-i,t.min)),fn(0,1,n)}function g2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ul=.35;function y2(e=Ul){return e===!1?e=0:e===!0&&(e=Ul),{x:ff(e,"left","right"),y:ff(e,"top","bottom")}}function ff(e,t,n){return{min:pf(e,t),max:pf(e,n)}}function pf(e,t){return typeof e=="number"?e:e[t]||0}const hf=()=>({translate:0,scale:1,origin:0,originPoint:0}),cr=()=>({x:hf(),y:hf()}),mf=()=>({min:0,max:0}),fe=()=>({x:mf(),y:mf()});function et(e){return[e("x"),e("y")]}function Lg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function v2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function x2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function La(e){return e===void 0||e===1}function $l({scale:e,scaleX:t,scaleY:n}){return!La(e)||!La(t)||!La(n)}function kn(e){return $l(e)||Dg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Dg(e){return gf(e.x)||gf(e.y)}function gf(e){return e&&e!=="0%"}function fs(e,t,n){const r=e-n,i=t*r;return n+i}function yf(e,t,n,r,i){return i!==void 0&&(e=fs(e,i,r)),fs(e,n,r)+t}function Wl(e,t=0,n=1,r,i){e.min=yf(e.min,t,n,r,i),e.max=yf(e.max,t,n,r,i)}function Ig(e,{x:t,y:n}){Wl(e.x,t.translate,t.scale,t.originPoint),Wl(e.y,n.translate,n.scale,n.originPoint)}function w2(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Gt(e,t){e.min=e.min+t,e.max=e.max+t}function xf(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=ie(e.min,e.max,o);Wl(e,t[n],t[r],s,t.scale)}const S2=["x","scaleX","originX"],C2=["y","scaleY","originY"];function dr(e,t){xf(e.x,t,S2),xf(e.y,t,C2)}function Vg(e,t){return Lg(x2(e.getBoundingClientRect(),t))}function P2(e,t,n){const r=Vg(e,n),{scroll:i}=t;return i&&(Gt(r.x,i.offset.x),Gt(r.y,i.offset.y)),r}const Og=({current:e})=>e?e.ownerDocument.defaultView:null,k2=new WeakMap;class b2{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Us(c,"page").point)},o=(c,d)=>{const{drag:p,dragPropagation:g,onDragStart:w}=this.getProps();if(p&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xm(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(C=>{let y=this.getAxisMotionValue(C).get()||0;if(Pt.test(y)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[C];m&&(y=Xe(m)*(parseFloat(y)/100))}}this.originPoint[C]=y}),w&&X.update(()=>w(c,d),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:w,onDrag:x}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:C}=d;if(g&&this.currentDirection===null){this.currentDirection=E2(C),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),x&&x(c,d)},a=(c,d)=>this.stop(c,d),l=()=>et(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Rg(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Og(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&X.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!po(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=f2(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&lr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=p2(i.layoutBox,n):this.constraints=!1,this.elastic=y2(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&et(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=g2(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!lr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=P2(r,i.root,this.visualElement.getTransformPagePoint());let s=h2(i.layout.layoutBox,o);if(n){const a=n(v2(s));this.hasMutatedConstraints=!!a,a&&(s=Lg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(c=>{if(!po(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,g=i?40:1e7,w={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(c,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(pc(t,r,0,n))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:r}=this.getProps();if(!po(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-ie(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!lr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};et(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=m2({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),et(s=>{if(!po(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ie(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;k2.set(this.visualElement,this);const t=this.visualElement.current,n=At(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();lr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=jt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Ul,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function po(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function E2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T2 extends vn{constructor(t){super(t),this.removeGroupControls=le,this.removeListeners=le,this.controls=new b2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||le}unmount(){this.removeGroupControls(),this.removeListeners()}}const wf=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class N2 extends vn{constructor(){super(...arguments),this.removePointerDownListener=le}onPointerDown(t){this.session=new Rg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Og(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wf(t),onStart:wf(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&X.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=At(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function j2(){const e=v.useContext(Os);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=v.useId();return v.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Mo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Sf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $r={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Sf(e,t.target.x),r=Sf(e,t.target.y);return`${n}% ${r}%`}},M2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=pn.parse(e);if(i.length>5)return r;const o=pn.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=ie(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class R2 extends $.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_1(A2),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Mo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _g(e){const[t,n]=j2(),r=v.useContext(Ju);return $.createElement(R2,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(Lm),isPresent:t,safeToRemove:n})}const A2={borderRadius:{...$r,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$r,borderTopRightRadius:$r,borderBottomLeftRadius:$r,borderBottomRightRadius:$r,boxShadow:M2},Fg=["TopLeft","TopRight","BottomLeft","BottomRight"],L2=Fg.length,Cf=e=>typeof e=="string"?parseFloat(e):e,Pf=e=>typeof e=="number"||V.test(e);function D2(e,t,n,r,i,o){i?(e.opacity=ie(0,n.opacity!==void 0?n.opacity:1,I2(r)),e.opacityExit=ie(t.opacity!==void 0?t.opacity:1,0,V2(r))):o&&(e.opacity=ie(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Ri(e,t,r))}function bf(e,t){e.min=t.min,e.max=t.max}function Je(e,t){bf(e.x,t.x),bf(e.y,t.y)}function Ef(e,t,n,r,i){return e-=t,e=fs(e,1/n,r),i!==void 0&&(e=fs(e,1/i,r)),e}function O2(e,t=0,n=1,r=.5,i,o=e,s=e){if(Pt.test(t)&&(t=parseFloat(t),t=ie(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ie(o.min,o.max,r);e===o&&(a-=t),e.min=Ef(e.min,t,n,a,i),e.max=Ef(e.max,t,n,a,i)}function Tf(e,t,[n,r,i],o,s){O2(e,t[n],t[r],t[i],t.scale,o,s)}const _2=["x","scaleX","originX"],F2=["y","scaleY","originY"];function Nf(e,t,n,r){Tf(e.x,t,_2,n?n.x:void 0,r?r.x:void 0),Tf(e.y,t,F2,n?n.y:void 0,r?r.y:void 0)}function jf(e){return e.translate===0&&e.scale===1}function Bg(e){return jf(e.x)&&jf(e.y)}function z2(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ug(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Mf(e){return Xe(e.x)/Xe(e.y)}class B2{constructor(){this.members=[]}add(t){hc(this.members,t),t.scheduleRender()}remove(t){if(mc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Rf(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const U2=(e,t)=>e.depth-t.depth;class $2{constructor(){this.children=[],this.isDirty=!1}add(t){hc(this.children,t),this.isDirty=!0}remove(t){mc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(U2),this.isDirty=!1,this.children.forEach(t)}}function W2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(_t(r),e(o-t))};return X.read(r,!0),()=>_t(r)}function H2(e){window.MotionDebug&&window.MotionDebug.record(e)}function G2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function K2(e,t,n){const r=Fe(e)?e:Tr(e);return r.start(pc("",r,t,n)),r.animation}const Af=["","X","Y","Z"],Y2={visibility:"hidden"},Lf=1e3;let Q2=0;const bn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $g({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Q2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bn.totalNodes=bn.resolvedTargetDeltas=bn.recalculatedProjection=0,this.nodes.forEach(q2),this.nodes.forEach(rC),this.nodes.forEach(iC),this.nodes.forEach(J2),H2(bn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=W2(p,250),Mo.hasAnimatedSinceResize&&(Mo.hasAnimatedSinceResize=!1,this.nodes.forEach(If))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||uC,{onLayoutAnimationStart:C,onLayoutAnimationComplete:y}=c.getProps(),h=!this.targetLayout||!Ug(this.targetLayout,w)||g,m=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||p&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const S={...fc(x,"layout"),onPlay:C,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else p||If(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(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(oC),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(eC),this.sharedNodes.forEach(sC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=S/1e3;Vf(d.x,s.x,P),Vf(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ui(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),aC(this.relativeTarget,this.relativeTargetOrigin,p,P),m&&z2(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=fe()),Je(m,this.relativeTarget)),x&&(this.animationValues=c,D2(c,u,this.latestValues,P,h,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Mo.hasAnimatedSinceResize=!0,this.currentAnimation=K2(0,Lf,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Wg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||fe();const d=Xe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=Xe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}Je(a,l),dr(a,c),li(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new B2),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Df),this.root.sharedNodes.clear()}}}function X2(e){e.updateLayout()}function Z2(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?et(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],g=Xe(p);p.min=r[d].min,p.max=p.min+g}):Wg(o,n.layoutBox,r)&&et(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],g=Xe(r[d]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=cr();li(a,r,n.layoutBox);const l=cr();s?li(l,e.applyTransform(i,!0),n.measuredBox):li(l,r,n.layoutBox);const u=!Bg(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:g}=d;if(p&&g){const w=fe();ui(w,n.layoutBox,p.layoutBox);const x=fe();ui(x,r,g.layoutBox),Ug(w,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function q2(e){bn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function J2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function eC(e){e.clearSnapshot()}function Df(e){e.clearMeasurements()}function tC(e){e.isLayoutDirty=!1}function nC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function If(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rC(e){e.resolveTargetDelta()}function iC(e){e.calcProjection()}function oC(e){e.resetRotation()}function sC(e){e.removeLeadSnapshot()}function Vf(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Of(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function aC(e,t,n,r){Of(e.x,t.x,n.x,r),Of(e.y,t.y,n.y,r)}function lC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uC={duration:.45,ease:[.4,0,.1,1]},_f=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ff=_f("applewebkit/")&&!_f("chrome/")?Math.round:le;function zf(e){e.min=Ff(e.min),e.max=Ff(e.max)}function cC(e){zf(e.x),zf(e.y)}function Wg(e,t,n){return e==="position"||e==="preserve-aspect"&&!Bl(Mf(t),Mf(n),.2)}const dC=$g({attachResizeListener:(e,t)=>jt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Da={current:void 0},Hg=$g({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Da.current){const e=new dC({});e.mount(window),e.setOptions({layoutScroll:!0}),Da.current=e}return Da.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),fC={pan:{Feature:N2},drag:{Feature:T2,ProjectionNode:Hg,MeasureLayout:_g}},pC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function hC(e){const t=pC.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Hl(e,t,n=1){const[r,i]=hC(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Tg(s)?parseFloat(s):s}else return Dl(i)?Hl(i,t,n+1):i}function mC(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Dl(o))return;const s=Hl(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Dl(o))continue;const s=Hl(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const gC=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gg=e=>gC.has(e),yC=e=>Object.keys(e).some(Gg),Bf=e=>e===Hn||e===V,Uf=(e,t)=>parseFloat(e.split(", ")[t]),$f=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Uf(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?Uf(o[1],e):0}},vC=new Set(["x","y","z"]),xC=zi.filter(e=>!vC.has(e));function wC(e){const t=[];return xC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Nr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:$f(4,13),y:$f(5,14)};Nr.translateX=Nr.x;Nr.translateY=Nr.y;const SC=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Nr[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Nr[u](l,o)}),e},CC=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Gg);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Ur(c);const p=t[l];let g;if(as(p)){const w=p.length,x=p[0]===null?1:0;c=p[x],d=Ur(c);for(let C=x;C=0?window.pageYOffset:null,u=SC(t,e,a);return o.length&&o.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),_s&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function PC(e,t,n,r){return yC(t)?CC(e,t,n,r):{target:t,transitionEnd:r}}const kC=(e,t,n,r)=>{const i=mC(e,t,r);return t=i.target,r=i.transitionEnd,PC(e,t,n,r)},Gl={current:null},Kg={current:!1};function bC(){if(Kg.current=!0,!!_s)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gl.current=e.matches;e.addListener(t),t()}else Gl.current=!1}function EC(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Fe(o))e.addValue(i,o),ds(r)&&r.add(i);else if(Fe(s))e.addValue(i,Tr(o,{owner:e})),ds(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Tr(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Wf=new WeakMap,Yg=Object.keys(Mi),TC=Yg.length,Hf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],NC=qu.length;class jC{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>X.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=zs(n),this.isVariantNode=Am(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const p=c[d];a[d]!==void 0&&Fe(p)&&(p.set(a[d],!1),ds(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Wf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Kg.current||bC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wf.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Wn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:g})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Tr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=sc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Fe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Qg extends jC{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=GS(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){WS(this,r,s);const a=kC(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function MC(e){return window.getComputedStyle(e)}class RC extends Qg{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Wn.has(n)){const r=dc(n);return r&&r.default||0}else{const r=MC(t),i=(Vm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Vg(t,n)}build(t,n,r,i){tc(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return oc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Um(t,n,r,i)}}class AC extends Qg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wn.has(n)){const r=dc(n);return r&&r.default||0}return n=$m.has(n)?n:Xu(n),t.getAttribute(n)}measureInstanceViewportBox(){return fe()}scrapeMotionValuesFromProps(t,n){return Hm(t,n)}build(t,n,r,i){rc(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Wm(t,n,r,i)}mount(t){this.isSVGTag=ic(t.tagName),super.mount(t)}}const LC=(e,t)=>ec(e)?new AC(t,{enableHardwareAcceleration:!1}):new RC(t,{enableHardwareAcceleration:!0}),DC={layout:{ProjectionNode:Hg,MeasureLayout:_g}},IC={...a2,...Tw,...fC,...DC},_=V1((e,t)=>hw(e,t,IC,LC));function Xg(){const e=v.useRef(!1);return Qu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function VC(){const e=Xg(),[t,n]=v.useState(0),r=v.useCallback(()=>{e.current&&n(t+1)},[t]);return[v.useCallback(()=>X.postRender(r),[r]),t]}class OC extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function _C({children:e,isPresent:t}){const n=v.useId(),r=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0});return v.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${s}px !important; top: ${a}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),v.createElement(OC,{isPresent:t,childRef:r,sizeRef:i},v.cloneElement(e,{ref:r}))}const Ia=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=Gm(FC),l=v.useId(),u=v.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return v.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=v.createElement(_C,{isPresent:n},e)),v.createElement(Os.Provider,{value:u},e)};function FC(){return new Map}function zC(e){return v.useEffect(()=>()=>e(),[])}const En=e=>e.key||"";function BC(e,t){e.forEach(n=>{const r=En(n);t.set(r,n)})}function UC(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const Zg=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=v.useContext(Ju).forceRender||VC()[0],l=Xg(),u=UC(e);let c=u;const d=v.useRef(new Map).current,p=v.useRef(c),g=v.useRef(new Map).current,w=v.useRef(!0);if(Qu(()=>{w.current=!1,BC(u,g),p.current=c}),zC(()=>{w.current=!0,g.clear(),d.clear()}),w.current)return v.createElement(v.Fragment,null,c.map(h=>v.createElement(Ia,{key:En(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},h)));c=[...c];const x=p.current.map(En),C=u.map(En),y=x.length;for(let h=0;h{if(C.indexOf(m)!==-1)return;const S=g.get(m);if(!S)return;const P=x.indexOf(m);let b=h;if(!b){const k=()=>{d.delete(m);const E=Array.from(g.keys()).filter(j=>!C.includes(j));if(E.forEach(j=>g.delete(j)),p.current=u.filter(j=>{const R=En(j);return R===m||E.includes(R)}),!d.size){if(l.current===!1)return;a(),r&&r()}};b=v.createElement(Ia,{key:En(S),isPresent:!1,onExitComplete:k,custom:t,presenceAffectsLayout:o,mode:s},S),d.set(m,b)}c.splice(P,0,b)}),c=c.map(h=>{const m=h.key;return d.has(m)?h:v.createElement(Ia,{key:En(h),isPresent:!0,presenceAffectsLayout:o,mode:s},h)}),v.createElement(v.Fragment,null,d.size?c:c.map(h=>v.cloneElement(h)))};function qg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):i(s,a)}}}var ny="!";function XC(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:C}}}function ZC(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function qC(e){return{cache:QC(e.cacheSize),splitModifiers:XC(e),...WC(e)}}var JC=/\s+/;function eP(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(JC).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,p=r(d?c.substring(0,d):c),g=!!d;if(!p){if(!d)return{isTailwindClass:!1,originalClassName:s};if(p=r(c),!p)return{isTailwindClass:!1,originalClassName:s};g=!1}var w=ZC(l).join(":"),x=u?w+ny:w;return{isTailwindClass:!0,modifierId:x,classGroupId:p,originalClassName:s,hasPostfixModifier:g}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(function(d){return o.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function tP(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(i=>{const o=Qf(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{var y;const{scope:p,children:g,...w}=d,x=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,C=v.useMemo(()=>w,Object.values(w));return f.jsx(x.Provider,{value:C,children:g})};u.displayName=o+"Provider";function c(d,p){var x;const g=((x=p==null?void 0:p[e])==null?void 0:x[l])||a,w=v.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>v.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,yP(i,...t)]}function yP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(o)[`__scope${u}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ps(e){const t=xP(e),n=v.forwardRef((r,i)=>{const{children:o,...s}=r,a=v.Children.toArray(o),l=a.find(SP);if(l){const u=l.props.children,c=a.map(d=>d===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:d);return f.jsx(t,{...s,ref:i,children:v.isValidElement(u)?v.cloneElement(u,void 0,c):null})}return f.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var vP=ps("Slot");function xP(e){const t=v.forwardRef((n,r)=>{const{children:i,...o}=n;if(v.isValidElement(i)){const s=PP(i),a=CP(o,i.props);return i.type!==v.Fragment&&(a.ref=r?oy(r,s):s),v.cloneElement(i,a)}return v.Children.count(i)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wP=Symbol("radix.slottable");function SP(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wP}function CP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function PP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kP(e){const t=e+"CollectionProvider",[n,r]=sy(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:C,children:y}=x,h=$.useRef(null),m=$.useRef(new Map).current;return f.jsx(i,{scope:C,itemMap:m,collectionRef:h,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=ps(a),u=$.forwardRef((x,C)=>{const{scope:y,children:h}=x,m=o(a,y),S=Fn(C,m.collectionRef);return f.jsx(l,{ref:S,children:h})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",p=ps(c),g=$.forwardRef((x,C)=>{const{scope:y,children:h,...m}=x,S=$.useRef(null),P=Fn(C,S),b=o(c,y);return $.useEffect(()=>(b.itemMap.set(S,{ref:S,...m}),()=>void b.itemMap.delete(S))),f.jsx(p,{[d]:"",ref:P,children:h})});g.displayName=c;function w(x){const C=o(e+"CollectionConsumer",x);return $.useCallback(()=>{const h=C.collectionRef.current;if(!h)return[];const m=Array.from(h.querySelectorAll(`[${d}]`));return Array.from(C.itemMap.values()).sort((b,k)=>m.indexOf(b.ref.current)-m.indexOf(k.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},w,r]}var bP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kt=bP.reduce((e,t)=>{const n=ps(`Primitive.${t}`),r=v.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ay(e,t){e&&As.flushSync(()=>e.dispatchEvent(t))}function zn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function EP(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var TP="DismissableLayer",Ql="dismissableLayer.update",NP="dismissableLayer.pointerDownOutside",jP="dismissableLayer.focusOutside",Xf,ly=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),uy=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=v.useContext(ly),[c,d]=v.useState(null),p=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=v.useState({}),w=Fn(t,k=>d(k)),x=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(C),h=c?x.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=y,P=RP(k=>{const E=k.target,j=[...u.branches].some(R=>R.contains(E));!S||j||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},p),b=AP(k=>{const E=k.target;[...u.branches].some(R=>R.contains(E))||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},p);return EP(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},p),v.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xf=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Zf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Xf)}},[c,p,n,u]),v.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Zf())},[c,u]),v.useEffect(()=>{const k=()=>g({});return document.addEventListener(Ql,k),()=>document.removeEventListener(Ql,k)},[]),f.jsx(kt.div,{...l,ref:w,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,b.onFocusCapture),onBlurCapture:We(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,P.onPointerDownCapture)})});uy.displayName=TP;var MP="DismissableLayerBranch",cy=v.forwardRef((e,t)=>{const n=v.useContext(ly),r=v.useRef(null),i=Fn(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),f.jsx(kt.div,{...e,ref:i})});cy.displayName=MP;function RP(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){dy(NP,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function AP(e,t=globalThis==null?void 0:globalThis.document){const n=zn(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&dy(jP,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zf(){const e=new CustomEvent(Ql);document.dispatchEvent(e)}function dy(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ay(i,o):i.dispatchEvent(o)}var LP=uy,DP=cy,Ai=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},IP="Portal",fy=v.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=v.useState(!1);Ai(()=>o(!0),[]);const s=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Cx.createPortal(f.jsx(kt.div,{...r,ref:t}),s):null});fy.displayName=IP;function VP(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var py=e=>{const{present:t,children:n}=e,r=OP(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Fn(r.ref,_P(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};py.displayName="Presence";function OP(e){const[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),o=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=VP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=mo(r.current);o.current=a==="mounted"?u:"none"},[a]),Ai(()=>{const u=r.current,c=i.current;if(c!==e){const p=o.current,g=mo(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Ai(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=g=>{const x=mo(r.current).includes(g.animationName);if(g.target===t&&x&&(l("ANIMATION_END"),!i.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},p=g=>{g.target===t&&(o.current=mo(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function mo(e){return(e==null?void 0:e.animationName)||"none"}function _P(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FP=hp[" useInsertionEffect ".trim().toString()]||Ai;function zP({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=BP({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=v.useRef(e!==void 0);v.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"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.`),c.current=a},[a,r])}const u=v.useCallback(c=>{var d;if(a){const p=UP(c)?c(e):c;p!==e&&((d=s.current)==null||d.call(s,p))}else o(c)},[a,e,o,s]);return[l,u]}function BP({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),i=v.useRef(n),o=v.useRef(t);return FP(()=>{o.current=t},[t]),v.useEffect(()=>{var s;i.current!==n&&((s=o.current)==null||s.call(o,n),i.current=n)},[n,i]),[n,r,o]}function UP(e){return typeof e=="function"}var $P=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"}),WP="VisuallyHidden",vc=v.forwardRef((e,t)=>f.jsx(kt.span,{...e,ref:t,style:{...$P,...e.style}}));vc.displayName=WP;var xc="ToastProvider",[wc,HP,GP]=kP("Toast"),[hy,gb]=sy("Toast",[GP]),[KP,Ws]=hy(xc),my=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,l]=v.useState(null),[u,c]=v.useState(0),d=v.useRef(!1),p=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${xc}\`. Expected non-empty \`string\`.`),f.jsx(wc.Provider,{scope:t,children:f.jsx(KP,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:v.useCallback(()=>c(g=>g+1),[]),onToastRemove:v.useCallback(()=>c(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:s})})};my.displayName=xc;var gy="ToastViewport",YP=["F8"],Xl="toast.viewportPause",Zl="toast.viewportResume",yy=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=YP,label:i="Notifications ({hotkey})",...o}=e,s=Ws(gy,n),a=HP(n),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),p=Fn(t,d,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;v.useEffect(()=>{const C=y=>{var m;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[r]),v.useEffect(()=>{const C=l.current,y=d.current;if(w&&C&&y){const h=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Xl);y.dispatchEvent(b),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Zl);y.dispatchEvent(b),s.isClosePausedRef.current=!1}},S=b=>{!C.contains(b.relatedTarget)&&m()},P=()=>{C.contains(document.activeElement)||m()};return C.addEventListener("focusin",h),C.addEventListener("focusout",S),C.addEventListener("pointermove",h),C.addEventListener("pointerleave",P),window.addEventListener("blur",h),window.addEventListener("focus",m),()=>{C.removeEventListener("focusin",h),C.removeEventListener("focusout",S),C.removeEventListener("pointermove",h),C.removeEventListener("pointerleave",P),window.removeEventListener("blur",h),window.removeEventListener("focus",m)}}},[w,s.isClosePausedRef]);const x=v.useCallback(({tabbingDirection:C})=>{const h=a().map(m=>{const S=m.ref.current,P=[S,...ak(S)];return C==="forwards"?P:P.reverse()});return(C==="forwards"?h.reverse():h).flat()},[a]);return v.useEffect(()=>{const C=d.current;if(C){const y=h=>{var P,b,k;const m=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!m){const E=document.activeElement,j=h.shiftKey;if(h.target===C&&j){(P=u.current)==null||P.focus();return}const I=x({tabbingDirection:j?"backwards":"forwards"}),ne=I.findIndex(A=>A===E);Va(I.slice(ne+1))?h.preventDefault():j?(b=u.current)==null||b.focus():(k=c.current)==null||k.focus()}};return C.addEventListener("keydown",y),()=>C.removeEventListener("keydown",y)}},[a,x]),f.jsxs(DP,{ref:l,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&f.jsx(ql,{ref:u,onFocusFromOutsideViewport:()=>{const C=x({tabbingDirection:"forwards"});Va(C)}}),f.jsx(wc.Slot,{scope:n,children:f.jsx(kt.ol,{tabIndex:-1,...o,ref:p})}),w&&f.jsx(ql,{ref:c,onFocusFromOutsideViewport:()=>{const C=x({tabbingDirection:"backwards"});Va(C)}})]})});yy.displayName=gy;var vy="ToastFocusProxy",ql=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=Ws(vy,n);return f.jsx(vc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});ql.displayName=vy;var Wi="Toast",QP="toast.swipeStart",XP="toast.swipeMove",ZP="toast.swipeCancel",qP="toast.swipeEnd",xy=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[a,l]=zP({prop:r,defaultProp:i??!0,onChange:o,caller:Wi});return f.jsx(py,{present:n||a,children:f.jsx(tk,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:zn(e.onPause),onResume:zn(e.onResume),onSwipeStart:We(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:We(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:We(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:We(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});xy.displayName=Wi;var[JP,ek]=hy(Wi,{onClose(){}}),tk=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:g,...w}=e,x=Ws(Wi,n),[C,y]=v.useState(null),h=Fn(t,A=>y(A)),m=v.useRef(null),S=v.useRef(null),P=i||x.duration,b=v.useRef(0),k=v.useRef(P),E=v.useRef(0),{onToastAdd:j,onToastRemove:R}=x,G=zn(()=>{var ee;(C==null?void 0:C.contains(document.activeElement))&&((ee=x.viewport)==null||ee.focus()),s()}),I=v.useCallback(A=>{!A||A===1/0||(window.clearTimeout(E.current),b.current=new Date().getTime(),E.current=window.setTimeout(G,A))},[G]);v.useEffect(()=>{const A=x.viewport;if(A){const ee=()=>{I(k.current),u==null||u()},B=()=>{const ce=new Date().getTime()-b.current;k.current=k.current-ce,window.clearTimeout(E.current),l==null||l()};return A.addEventListener(Xl,B),A.addEventListener(Zl,ee),()=>{A.removeEventListener(Xl,B),A.removeEventListener(Zl,ee)}}},[x.viewport,P,l,u,I]),v.useEffect(()=>{o&&!x.isClosePausedRef.current&&I(P)},[o,P,x.isClosePausedRef,I]),v.useEffect(()=>(j(),()=>R()),[j,R]);const ne=v.useMemo(()=>C?Ey(C):null,[C]);return x.viewport?f.jsxs(f.Fragment,{children:[ne&&f.jsx(nk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ne}),f.jsx(JP,{scope:n,onClose:G,children:As.createPortal(f.jsx(wc.ItemSlot,{scope:n,children:f.jsx(LP,{asChild:!0,onEscapeKeyDown:We(a,()=>{x.isFocusedToastEscapeKeyDownRef.current||G(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(kt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":x.swipeDirection,...w,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:We(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:We(e.onPointerDown,A=>{A.button===0&&(m.current={x:A.clientX,y:A.clientY})}),onPointerMove:We(e.onPointerMove,A=>{if(!m.current)return;const ee=A.clientX-m.current.x,B=A.clientY-m.current.y,ce=!!S.current,N=["left","right"].includes(x.swipeDirection),L=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,O=N?L(0,ee):0,D=N?0:L(0,B),U=A.pointerType==="touch"?10:2,Y={x:O,y:D},ze={originalEvent:A,delta:Y};ce?(S.current=Y,go(XP,d,ze,{discrete:!1})):qf(Y,x.swipeDirection,U)?(S.current=Y,go(QP,c,ze,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(ee)>U||Math.abs(B)>U)&&(m.current=null)}),onPointerUp:We(e.onPointerUp,A=>{const ee=S.current,B=A.target;if(B.hasPointerCapture(A.pointerId)&&B.releasePointerCapture(A.pointerId),S.current=null,m.current=null,ee){const ce=A.currentTarget,N={originalEvent:A,delta:ee};qf(ee,x.swipeDirection,x.swipeThreshold)?go(qP,g,N,{discrete:!0}):go(ZP,p,N,{discrete:!0}),ce.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),nk=e=>{const{__scopeToast:t,children:n,...r}=e,i=Ws(Wi,t),[o,s]=v.useState(!1),[a,l]=v.useState(!1);return ok(()=>s(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:f.jsx(fy,{asChild:!0,children:f.jsx(vc,{...r,children:o&&f.jsxs(f.Fragment,{children:[i.label," ",n]})})})},rk="ToastTitle",wy=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(kt.div,{...r,ref:t})});wy.displayName=rk;var ik="ToastDescription",Sy=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(kt.div,{...r,ref:t})});Sy.displayName=ik;var Cy="ToastAction",Py=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(by,{altText:n,asChild:!0,children:f.jsx(Sc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Cy}\`. Expected non-empty \`string\`.`),null)});Py.displayName=Cy;var ky="ToastClose",Sc=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=ek(ky,n);return f.jsx(by,{asChild:!0,children:f.jsx(kt.button,{type:"button",...r,ref:t,onClick:We(e.onClick,i.onClose)})})});Sc.displayName=ky;var by=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return f.jsx(kt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Ey(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),sk(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Ey(r))}}),t}function go(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ay(i,o):i.dispatchEvent(o)}var qf=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function ok(e=()=>{}){const t=zn(e);Ai(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function sk(e){return e.nodeType===e.ELEMENT_NODE}function ak(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Va(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var lk=my,Ty=yy,Ny=xy,jy=wy,My=Sy,Ry=Py,Ay=Sc;const Jf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ep=Jg,Cc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ep(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=o==null?void 0:o[u];if(c===null)return null;const p=Jf(c)||Jf(d);return i[u][p]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,p]=c;return p===void 0||(u[d]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:p,...g}=c;return Object.entries(g).every(w=>{let[x,C]=w;return Array.isArray(C)?C.includes({...o,...a}[x]):{...o,...a}[x]===C})?[...u,d,p]:u},[]);return ep(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var uk={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"};const ck=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H=(e,t)=>{const n=v.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,children:a,...l},u)=>v.createElement("svg",{ref:u,...uk,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:`lucide lucide-${ck(e)}`,...l},[...t.map(([c,d])=>v.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},dk=H("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Li=H("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),fk=H("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),pk=H("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),hk=H("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]),mk=H("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]),gk=H("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),yk=H("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]),Ly=H("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),vk=H("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]),Hs=H("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Dy=H("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08v0c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"12sd6o"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]),xk=H("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),wk=H("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),Sk=H("Linkedin",[["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"}]]),Ck=H("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Pc=H("Mail",[["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"}]]),Iy=H("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Pk=H("Menu",[["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"}]]),Jl=H("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),kk=H("Phone",[["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"}]]),Vy=H("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),kc=H("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Gs=H("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),bk=H("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),Ks=H("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]),Oy=H("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),Ek=H("Twitter",[["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"}]]),_y=H("Users2",[["path",{d:"M14 19a6 6 0 0 0-12 0",key:"vej9p1"}],["circle",{cx:"8",cy:"9",r:"4",key:"143rtg"}],["path",{d:"M22 19a6 6 0 0 0-6-6 4 4 0 1 0 0-8",key:"hqbn22"}]]),Tk=H("Users",[["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"}]]),eu=H("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Nk=H("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),jk=H("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),Mk=lk,Fy=$.forwardRef(({className:e,...t},n)=>f.jsx(Ty,{ref:n,className:Te("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Fy.displayName=Ty.displayName;const Rk=Cc("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),zy=$.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(Ny,{ref:r,className:Te(Rk({variant:t}),e),...n}));zy.displayName=Ny.displayName;const Ak=$.forwardRef(({className:e,...t},n)=>f.jsx(Ry,{ref:n,className:Te("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ak.displayName=Ry.displayName;const By=$.forwardRef(({className:e,...t},n)=>f.jsx(Ay,{ref:n,className:Te("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(eu,{className:"h-4 w-4"})}));By.displayName=Ay.displayName;const Uy=$.forwardRef(({className:e,...t},n)=>f.jsx(jy,{ref:n,className:Te("text-sm font-semibold",e),...t}));Uy.displayName=jy.displayName;const $y=$.forwardRef(({className:e,...t},n)=>f.jsx(My,{ref:n,className:Te("text-sm opacity-90",e),...t}));$y.displayName=My.displayName;const Lk=1;let Oa=0;function Dk(){return Oa=(Oa+1)%Number.MAX_VALUE,Oa.toString()}const je={state:{toasts:[]},listeners:[],getState:()=>je.state,setState:e=>{typeof e=="function"?je.state=e(je.state):je.state={...je.state,...e},je.listeners.forEach(t=>t(je.state))},subscribe:e=>(je.listeners.push(e),()=>{je.listeners=je.listeners.filter(t=>t!==e)})},He=({...e})=>{const t=Dk(),n=i=>je.setState(o=>({...o,toasts:o.toasts.map(s=>s.id===t?{...s,...i}:s)})),r=()=>je.setState(i=>({...i,toasts:i.toasts.filter(o=>o.id!==t)}));return je.setState(i=>({...i,toasts:[{...e,id:t,dismiss:r},...i.toasts].slice(0,Lk)})),{id:t,dismiss:r,update:n}};function Ik(){const[e,t]=v.useState(je.getState());return v.useEffect(()=>je.subscribe(r=>{t(r)}),[]),v.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const i=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(i)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:He,toasts:e.toasts}}function Vk(){const{toasts:e}=Ik();return f.jsxs(Mk,{children:[e.map(({id:t,title:n,description:r,action:i,...o})=>f.jsxs(zy,{...o,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(Uy,{children:n}),r&&f.jsx($y,{children:r})]}),i,f.jsx(By,{})]},t)),f.jsx(Fy,{})]})}const Ok=Cc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ge=$.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?vP:"button";return f.jsx(s,{className:Te(Ok({variant:t,size:n,className:e})),ref:o,...i})});ge.displayName="Button";const _k=()=>{const e=[{to:"/services",label:"Services"},{to:"/solutions",label:"Solutions"},{to:"/about",label:"About"},{to:"/case-studies",label:"Case Studies"}],t=()=>{He({title:"🚧 Mobile menu feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return f.jsx(_.header,{initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8},className:"fixed top-0 left-0 right-0 z-50 bg-white/90 backdrop-blur-md border-b border-gray-200",children:f.jsx("div",{className:"container mx-auto px-4 py-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs($e,{to:"/",className:"flex items-center space-x-3",children:[f.jsx(_.div,{whileHover:{scale:1.05},children:f.jsx("div",{className:"w-10 h-10 microsoft-gradient rounded-lg flex items-center justify-center",children:f.jsx(kc,{className:"text-white w-6 h-6"})})}),f.jsx("span",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"SecureTech Solutions"})]}),f.jsx("nav",{className:"hidden md:flex items-center space-x-8",children:e.map(n=>f.jsx(P1,{to:n.to,className:({isActive:r})=>`text-gray-700 hover:text-blue-600 font-medium transition-colors ${r?"text-blue-600":""}`,children:f.jsx(_.span,{whileHover:{scale:1.1},whileTap:{scale:.95},children:n.label})},n.to))}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsxs(_.div,{whileHover:{scale:1.1},className:"hidden lg:flex items-center space-x-2 text-sm text-gray-600",children:[f.jsx(kk,{className:"w-4 h-4"}),f.jsx("span",{children:"+94 71 204 3399"})]}),f.jsx(ge,{asChild:!0,className:"microsoft-gradient text-white hover:opacity-90 transition-opacity",children:f.jsxs($e,{to:"/contact",children:[f.jsx(Pc,{className:"w-4 h-4 mr-2"}),"Contact Us"]})}),f.jsx(ge,{variant:"ghost",size:"icon",className:"md:hidden",onClick:t,children:f.jsx(Pk,{className:"w-5 h-5"})})]})]})})})};var Wy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tp=$.createContext&&$.createContext(Wy),Fk=["attr","size","title"];function zk(e,t){if(e==null)return{};var n=Bk(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bk(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t$.createElement(t.tag,ms({key:n},t.attr),Hy(t.child)))}function Hk(e){return t=>$.createElement(Gk,hs({attr:ms({},e.attr)},t),Hy(e.child))}function Gk(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=zk(e,Fk),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),$.createElement("svg",hs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:ms(ms({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&$.createElement("title",null,o),e.children)};return tp!==void 0?$.createElement(tp.Consumer,null,n=>t(n)):t(Wy)}function Gy(e){return Hk({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(e)}const Kk=()=>{const e=i=>{He({title:`🚧 ${i} link isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀`})},t={services:[{label:"Azure Cloud Migration",path:"/services#azure"},{label:"Security & Compliance",path:"/services#security"},{label:"Power Platform",path:"/services#power-platform"},{label:"Microsoft 365",path:"/services#m365"},{label:"Data & Analytics",path:"/services#data"},{label:"Modern Workplace",path:"/services#modern-workplace"}],company:[{label:"About Us",path:"/about"},{label:"Case Studies",path:"/case-studies"},{label:"Careers",path:"/careers"},{label:"Partners",path:"/partners"},{label:"Blog",path:"/blog"},{label:"Contact",path:"/contact"}],legal:[{label:"Privacy Policy",path:"/privacy-policy"},{label:"Terms of Service",path:"/terms-of-service"},{label:"Cookie Policy",path:"/cookie-policy"}]},n=i=>{He({title:`🚧 ${i} page isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀`})},r=()=>{window.open("https://wa.me/94712043399","_blank")};return f.jsx("footer",{className:"bg-gradient-to-br from-gray-900 via-blue-900 to-purple-900 text-white",children:f.jsxs("div",{className:"container mx-auto px-4 py-16",children:[f.jsxs("div",{className:"grid lg:grid-cols-4 md:grid-cols-2 gap-8",children:[f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6},viewport:{once:!0},className:"space-y-6",children:[f.jsxs($e,{to:"/",className:"flex items-center space-x-3",children:[f.jsx("div",{className:"w-10 h-10 microsoft-gradient rounded-lg flex items-center justify-center",children:f.jsx("span",{className:"text-white font-bold text-xl",children:"M"})}),f.jsx("span",{className:"text-2xl font-bold",children:"Microsoft Consultancy"})]}),f.jsx("p",{className:"text-gray-300 leading-relaxed",children:"Empowering businesses with cutting-edge Microsoft solutions. Your trusted partner for digital transformation and cloud innovation."}),f.jsx("div",{className:"flex space-x-4",children:[{icon:Sk,name:"LinkedIn"},{icon:Ek,name:"Twitter"},{icon:Nk,name:"YouTube"}].map(i=>f.jsx(ge,{variant:"ghost",size:"icon",onClick:()=>e(i.name),className:"hover:bg-white/10 text-gray-300 hover:text-white transition-colors",children:f.jsx(i.icon,{className:"w-5 h-5"})},i.name))})]}),f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6,delay:.1},viewport:{once:!0},className:"space-y-6",children:[f.jsx("span",{className:"text-xl font-bold",children:"Services"}),f.jsx("div",{className:"space-y-3",children:t.services.map(i=>f.jsx($e,{to:i.path,className:"block text-gray-300 hover:text-white transition-colors",children:i.label},i.label))})]}),f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6,delay:.2},viewport:{once:!0},className:"space-y-6",children:[f.jsx("span",{className:"text-xl font-bold",children:"Company"}),f.jsx("div",{className:"space-y-3",children:t.company.map(i=>f.jsx($e,{to:i.path,onClick:o=>{["/careers","/partners","/blog"].includes(i.path)&&(o.preventDefault(),n(i.label))},className:"block text-gray-300 hover:text-white transition-colors",children:i.label},i.label))})]}),f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6,delay:.3},viewport:{once:!0},className:"space-y-6",children:[f.jsx("span",{className:"text-xl font-bold",children:"Contact Info"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center space-x-3 cursor-pointer hover:text-green-400 transition-colors",onClick:r,children:[f.jsx(Gy,{className:"w-5 h-5 text-green-300"}),f.jsx("span",{className:"text-gray-300",children:"+94 71 204 3399"})]}),f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(Pc,{className:"w-5 h-5 text-blue-300"}),f.jsx("span",{className:"text-gray-300",children:"chamara@webclanka.com"})]}),f.jsxs("div",{className:"flex items-start space-x-3",children:[f.jsx(Iy,{className:"w-5 h-5 text-blue-300 mt-1"}),f.jsx("span",{className:"text-gray-300",children:"Colombo, Sri Lanka"})]})]}),f.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 rounded-lg p-4",children:[f.jsx("span",{className:"text-sm font-semibold",children:"Ready to get started?"}),f.jsx("p",{className:"text-sm text-blue-100 mt-1",children:"Get your free consultation today!"}),f.jsx(ge,{asChild:!0,className:"w-full mt-3 bg-white text-blue-600 hover:bg-gray-100 font-semibold",children:f.jsx($e,{to:"/contact",children:"Get Started"})})]})]})]}),f.jsxs(_.div,{initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.6,delay:.4},viewport:{once:!0},className:"border-t border-gray-700 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0",children:[f.jsxs("div",{className:"text-gray-400 text-sm text-center md:text-left",children:[f.jsxs("span",{children:["© ",new Date().getFullYear()," Microsoft Consultancy. All rights reserved."]}),f.jsx("br",{}),f.jsx("span",{className:"text-xs",children:"Powered By: Web C Lanka Pvt Ltd."})]}),f.jsx("div",{className:"flex space-x-6 text-sm",children:t.legal.map(i=>f.jsx($e,{to:i.path,onClick:o=>{o.preventDefault(),n(i.label)},className:"text-gray-400 hover:text-white transition-colors",children:i.label},i.label))})]})]})})},Ke=$.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:Te("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Ke.displayName="Card";const mt=$.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:Te("flex flex-col space-y-1.5 p-6",e),...t}));mt.displayName="CardHeader";const gt=$.forwardRef(({className:e,...t},n)=>f.jsx("h3",{ref:n,className:Te("text-2xl font-semibold leading-none tracking-tight",e),...t}));gt.displayName="CardTitle";const Ys=$.forwardRef(({className:e,...t},n)=>f.jsx("p",{ref:n,className:Te("text-sm text-muted-foreground",e),...t}));Ys.displayName="CardDescription";const ot=$.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:Te("p-6 pt-0",e),...t}));ot.displayName="CardContent";const Yk=$.forwardRef(({className:e,...t},n)=>f.jsx("div",{ref:n,className:Te("flex items-center p-6 pt-0",e),...t}));Yk.displayName="CardFooter";const Qk=Cc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Mt({className:e,variant:t,...n}){return f.jsx("div",{className:Te(Qk({variant:t}),e),...n})}const Xk=()=>{const e=[{icon:Ks,title:"Microsoft Intune Solutions",description:"Modernize endpoint management and secure corporate data with comprehensive Intune strategies.",features:["Endpoint Management & Security","Mobile Device Management (MDM)","Application Management (MAM)","Compliance Policies"],color:"from-sky-500 to-blue-600",logo:"https://img.icons8.com/color/48/microsoft-intune.png"},{icon:Gs,title:"Microsoft Defender Suite",description:"Strengthen your security posture with integrated threat protection across endpoints, identities, and cloud apps.",features:["Defender for Endpoint","Defender for Identity","Defender for Cloud Apps","Threat & Vulnerability Management"],color:"from-green-500 to-emerald-600",logo:"https://img.icons8.com/color/48/microsoft-defender.png"},{icon:Hs,title:"Microsoft Purview Expertise",description:"Govern, protect, and manage your entire data estate with unified data governance solutions.",features:["Data Discovery & Classification","Information Protection","Data Loss Prevention (DLP)","Compliance Management"],color:"from-purple-500 to-indigo-600",logo:"https://img.icons8.com/fluency/48/microsoft-sharepoint.png"}];return f.jsx("section",{className:"py-20 bg-gradient-to-br from-gray-50 to-blue-50",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[f.jsx(Mt,{className:"mb-4 bg-blue-100 text-blue-800 hover:bg-blue-200",children:"Our Core Services"}),f.jsx("h2",{className:"text-4xl lg:text-5xl font-bold mb-6 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Specialized Microsoft Security & Management"}),f.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"We focus on Intune, Defender, and Purview to provide robust security, modern management, and comprehensive data governance for your organization."})]}),f.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-3 gap-8",children:e.map((t,n)=>f.jsx(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6,delay:n*.1},viewport:{once:!0},whileHover:{y:-10},className:"group flex",children:f.jsxs(Ke,{className:"h-full border-0 shadow-lg hover:shadow-2xl transition-all duration-300 overflow-hidden flex flex-col glass-effect bg-white/80 backdrop-blur-sm",children:[f.jsxs(mt,{className:"relative",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${t.color} flex items-center justify-center group-hover:scale-110 transition-transform duration-300`,children:f.jsx(t.icon,{className:"w-8 h-8 text-white"})}),f.jsx("img-replace",{src:t.logo,alt:`${t.title} logo`,className:"w-12 h-12 object-contain group-hover:animate-pulse"})]}),f.jsx(gt,{className:"text-2xl font-bold text-gray-800 group-hover:text-blue-600 transition-colors",children:t.title}),f.jsx(Ys,{className:"text-gray-600 text-base leading-relaxed min-h-[60px]",children:t.description})]}),f.jsxs(ot,{className:"space-y-4 flex-grow flex flex-col justify-between",children:[f.jsx("div",{className:"space-y-2",children:t.features.map(r=>f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(Ly,{className:"w-4 h-4 text-green-500 flex-shrink-0"}),f.jsx("span",{className:"text-gray-700 font-medium text-sm",children:r})]},r))}),f.jsx(ge,{asChild:!0,className:"w-full mt-6 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold group-hover:scale-105 transition-transform duration-300",children:f.jsxs($e,{to:"/services",children:["Learn More",f.jsx(Li,{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform"})]})})]})]})},t.title))}),f.jsx(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.5},className:"text-center mt-16",children:f.jsx(ge,{asChild:!0,size:"lg",className:"microsoft-gradient text-white hover:opacity-90 transition-opacity px-8 py-3 text-lg",children:f.jsxs($e,{to:"/services",children:["Explore All Our Expertise",f.jsx(Li,{className:"w-5 h-5 ml-2"})]})})})]})})},fr=$.forwardRef(({className:e,type:t,...n},r)=>f.jsx("input",{type:t,className:Te("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));fr.displayName="Input";const Ky=$.forwardRef(({className:e,...t},n)=>f.jsx("textarea",{className:Te("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ky.displayName="Textarea";const Yy=()=>{const[e,t]=v.useState({name:"",email:"",company:"",phone:"",service:"",message:""}),[n,r]=v.useState(!1),i=u=>{t({...e,[u.target.name]:u.target.value})},o=async u=>{u.preventDefault(),r(!0);try{const c=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(c.status===200||c.status===201||c.status===404){He({title:"🎉 Consultation Request Submitted (Simulated API Call)!",description:"We'll get back to you within 24 hours. Your Laravel backend will handle this."});const d=JSON.parse(localStorage.getItem("consultancySubmissions")||"[]"),p={...e,id:Date.now(),timestamp:new Date().toISOString(),status:"pending_api_submission"};d.push(p),localStorage.setItem("consultancySubmissions",JSON.stringify(d)),t({name:"",email:"",company:"",phone:"",service:"",message:""})}else{const d=await c.json().catch(()=>({message:"Unknown error"}));He({title:"⚠️ Submission Error (Simulated API Call)",description:`Something went wrong. Server responded with status ${c.status}. ${d.message||""}`,variant:"destructive"})}}catch{He({title:"🚧 API Endpoint Not Found (Expected for Demo)",description:"This is expected as /api/contact is a placeholder. Your Laravel backend will implement this. Data saved to localStorage as fallback.",variant:"default"});const d=JSON.parse(localStorage.getItem("consultancySubmissions")||"[]"),p={...e,id:Date.now(),timestamp:new Date().toISOString(),status:"pending_local_fallback"};d.push(p),localStorage.setItem("consultancySubmissions",JSON.stringify(d)),t({name:"",email:"",company:"",phone:"",service:"",message:""})}finally{r(!1)}},s=()=>{He({title:"🚧 Schedule Call feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})},a=()=>{window.open("https://wa.me/94712043399","_blank")},l=()=>{He({title:"🚧 Live Chat feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return f.jsxs("section",{className:"py-20 bg-gradient-to-br from-blue-900 via-purple-900 to-indigo-900 relative overflow-hidden",children:[f.jsxs("div",{className:"absolute inset-0",children:[f.jsx("div",{className:"absolute top-20 left-10 w-32 h-32 bg-blue-400/20 rounded-full blur-xl floating-animation"}),f.jsx("div",{className:"absolute bottom-20 right-10 w-40 h-40 bg-purple-400/20 rounded-full blur-xl floating-animation",style:{animationDelay:"3s"}}),f.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-gradient-to-r from-blue-500/10 to-purple-500/10 rounded-full blur-3xl"})]}),f.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[f.jsxs(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.8},viewport:{once:!0},className:"text-center mb-16",children:[f.jsx(Mt,{className:"mb-4 bg-white/20 text-white hover:bg-white/30 glass-effect",children:"Get In Touch"}),f.jsx("h2",{className:"text-4xl lg:text-5xl font-bold mb-6 text-white",children:"Ready to Transform Your Business?"}),f.jsx("p",{className:"text-xl text-blue-100 max-w-3xl mx-auto",children:"Let's discuss how Microsoft solutions can accelerate your digital transformation journey."})]}),f.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-start",children:[f.jsx(_.div,{initial:{x:-50,opacity:0},whileInView:{x:0,opacity:1},transition:{duration:.8},viewport:{once:!0},className:"space-y-8",children:f.jsxs(Ke,{className:"glass-effect border-white/20 text-white",children:[f.jsxs(mt,{children:[f.jsx(gt,{className:"text-2xl font-bold text-white",children:"Request a Free Consultation"}),f.jsx(Ys,{className:"text-blue-100",children:"Fill out the form and our Microsoft experts will contact you within 24 hours."})]}),f.jsx(ot,{children:f.jsxs("form",{onSubmit:o,className:"space-y-6",children:[f.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[f.jsx("div",{children:f.jsx(fr,{name:"name",placeholder:"Full Name",value:e.name,onChange:i,required:!0,className:"bg-white/10 border-white/20 text-white placeholder:text-blue-200",disabled:n})}),f.jsx("div",{children:f.jsx(fr,{name:"email",type:"email",placeholder:"Email Address",value:e.email,onChange:i,required:!0,className:"bg-white/10 border-white/20 text-white placeholder:text-blue-200",disabled:n})})]}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[f.jsx("div",{children:f.jsx(fr,{name:"company",placeholder:"Company Name",value:e.company,onChange:i,required:!0,className:"bg-white/10 border-white/20 text-white placeholder:text-blue-200",disabled:n})}),f.jsx("div",{children:f.jsx(fr,{name:"phone",placeholder:"Phone Number",value:e.phone,onChange:i,className:"bg-white/10 border-white/20 text-white placeholder:text-blue-200",disabled:n})})]}),f.jsx("div",{children:f.jsxs("select",{name:"service",value:e.service,onChange:i,required:!0,className:"w-full h-10 rounded-md bg-white/10 border border-white/20 text-white px-3 py-2",disabled:n,children:[f.jsx("option",{value:"",className:"text-gray-800",children:"Select Service Interest"}),f.jsx("option",{value:"intune-solutions",className:"text-gray-800",children:"Microsoft Intune Solutions"}),f.jsx("option",{value:"defender-suite",className:"text-gray-800",children:"Microsoft Defender Suite"}),f.jsx("option",{value:"purview-expertise",className:"text-gray-800",children:"Microsoft Purview Expertise"}),f.jsx("option",{value:"m365-optimization",className:"text-gray-800",children:"Microsoft 365 Optimization"}),f.jsx("option",{value:"security-assessments",className:"text-gray-800",children:"Security Assessments"}),f.jsx("option",{value:"compliance-solutions",className:"text-gray-800",children:"Compliance Solutions"})]})}),f.jsx("div",{children:f.jsx(Ky,{name:"message",placeholder:"Tell us about your project requirements...",value:e.message,onChange:i,rows:4,className:"bg-white/10 border-white/20 text-white placeholder:text-blue-200",disabled:n})}),f.jsxs(ge,{type:"submit",className:"w-full bg-gradient-to-r from-yellow-400 to-orange-500 hover:from-yellow-500 hover:to-orange-600 text-black font-semibold py-3 pulse-glow",disabled:n,children:[n?f.jsx(Ck,{className:"w-5 h-5 mr-2 animate-spin"}):f.jsx(Vy,{className:"w-5 h-5 mr-2"}),n?"Submitting...":"Send Consultation Request"]})]})})]})}),f.jsxs(_.div,{initial:{x:50,opacity:0},whileInView:{x:0,opacity:1},transition:{duration:.8},viewport:{once:!0},className:"space-y-8",children:[f.jsxs(Ke,{className:"glass-effect border-white/20 text-white",children:[f.jsx(mt,{children:f.jsx(gt,{className:"text-2xl font-bold text-white",children:"Why Choose Our Consultancy?"})}),f.jsxs(ot,{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-start space-x-4",children:[f.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center flex-shrink-0",children:f.jsx("span",{className:"text-white font-bold",children:"1"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Microsoft Certified Experts"}),f.jsx("p",{className:"text-blue-100",children:"Our team holds the highest Microsoft certifications and has years of hands-on experience."})]})]}),f.jsxs("div",{className:"flex items-start space-x-4",children:[f.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-green-400 to-blue-500 rounded-lg flex items-center justify-center flex-shrink-0",children:f.jsx("span",{className:"text-white font-bold",children:"2"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"Proven Track Record"}),f.jsx("p",{className:"text-blue-100",children:"500+ successful projects with 98% client satisfaction rate across various industries."})]})]}),f.jsxs("div",{className:"flex items-start space-x-4",children:[f.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-purple-400 to-pink-500 rounded-lg flex items-center justify-center flex-shrink-0",children:f.jsx("span",{className:"text-white font-bold",children:"3"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-semibold text-lg mb-2",children:"End-to-End Support"}),f.jsx("p",{className:"text-blue-100",children:"From initial consultation to post-implementation support, we're with you every step of the way."})]})]})]})]}),f.jsxs(Ke,{className:"glass-effect border-white/20 text-white",children:[f.jsx(mt,{children:f.jsx(gt,{className:"text-xl font-bold text-white",children:"Contact Information"})}),f.jsxs(ot,{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center space-x-3 cursor-pointer hover:text-green-400 transition-colors",onClick:a,children:[f.jsx(Gy,{className:"w-5 h-5 text-green-300"}),f.jsx("span",{children:"+94 71 204 3399 (WhatsApp)"})]}),f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(Pc,{className:"w-5 h-5 text-blue-300"}),f.jsx("span",{children:"chamara@webclanka.com"})]}),f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(Iy,{className:"w-5 h-5 text-blue-300"}),f.jsx("span",{children:"Colombo, Sri Lanka"})]}),f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mt-6",children:[f.jsxs(ge,{onClick:s,variant:"outline",className:"w-full border-white/30 text-white hover:bg-white/10 glass-effect",children:[f.jsx(yk,{className:"w-4 h-4 mr-2"}),"Schedule a Call"]}),f.jsxs(ge,{onClick:l,variant:"outline",className:"w-full border-white/30 text-white hover:bg-white/10 glass-effect",children:[f.jsx(Jl,{className:"w-4 h-4 mr-2"}),"Live Chat"]})]})]})]})]})]})]})]})},Kn=({children:e,title:t,description:n})=>f.jsxs(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"container mx-auto px-4 py-12",children:[t&&f.jsxs(_.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2,duration:.6},className:"mb-12 text-center",children:[f.jsx("h1",{className:"text-4xl lg:text-6xl font-bold mb-4 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:t}),n&&f.jsx("p",{className:"text-lg lg:text-xl text-gray-600 max-w-2xl mx-auto",children:n})]}),e]}),Zk=()=>f.jsxs("section",{className:"relative py-20 md:py-32 lg:py-40 bg-gradient-to-br from-blue-700 via-purple-700 to-indigo-800 text-white overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 opacity-10",children:f.jsx("img",{className:"w-full h-full object-cover",alt:"Abstract network security background",src:"https://images.unsplash.com/photo-1678247539441-05ad26a18343"})}),f.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[f.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[f.jsx(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},children:f.jsx(Mt,{className:"mb-6 bg-white/20 text-white hover:bg-white/30 py-2 px-4 text-sm glass-effect",children:"Microsoft Security & Management Specialists"})}),f.jsxs(_.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},className:"text-4xl sm:text-5xl lg:text-6xl font-extrabold mb-8 leading-tight",children:["Secure & Manage Your Digital Workplace with ",f.jsx("span",{className:"bg-gradient-to-r from-sky-400 to-cyan-300 bg-clip-text text-transparent",children:"Intune, Defender & Purview"})]}),f.jsx(_.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.6},className:"text-lg sm:text-xl text-blue-100 mb-10 max-w-2xl mx-auto",children:"We provide expert consultancy for Microsoft Intune, Defender, and Purview, helping you build a resilient, compliant, and productive modern workplace."}),f.jsxs(_.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},className:"flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-6",children:[f.jsx(ge,{asChild:!0,size:"lg",className:"bg-gradient-to-r from-yellow-400 to-orange-500 hover:from-yellow-500 hover:to-orange-600 text-black font-semibold py-3 px-8 text-lg shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105",children:f.jsx($e,{to:"/contact",children:"Request a Consultation"})}),f.jsx(ge,{asChild:!0,variant:"outline",size:"lg",className:"border-white/50 text-white hover:bg-white/10 hover:text-white py-3 px-8 text-lg glass-effect transition-all duration-300 transform hover:scale-105",children:f.jsx($e,{to:"/services",children:"Explore Our Services"})})]})]}),f.jsx(_.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1,delay:1},className:"mt-16 lg:mt-24 grid grid-cols-1 sm:grid-cols-3 gap-8 text-center",children:[{icon:Ks,label:"Microsoft Intune"},{icon:Gs,label:"Microsoft Defender"},{icon:Hs,label:"Microsoft Purview"}].map(e=>f.jsxs("div",{className:"p-6 bg-white/10 rounded-xl glass-effect hover:bg-white/20 transition-all duration-300 transform hover:scale-105",children:[f.jsx(e.icon,{className:"w-12 h-12 mx-auto mb-4 text-sky-300"}),f.jsx("span",{className:"text-lg font-semibold",children:e.label})]},e.label))})]})]}),qk=()=>{const e=[{icon:Tk,title:"Microsoft 365 Optimization",description:"Maximize your M365 investment for enhanced productivity and collaboration."},{icon:pk,title:"Security Assessments",description:"Comprehensive reviews to identify vulnerabilities and strengthen your defenses."},{icon:mk,title:"Compliance Solutions",description:"Navigate complex regulatory landscapes with tailored compliance strategies."}];return f.jsx("section",{className:"py-16 bg-gray-100",children:f.jsxs("div",{className:"container mx-auto px-4",children:[f.jsxs(_.div,{initial:{y:30,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.7},viewport:{once:!0},className:"text-center mb-12",children:[f.jsx("h2",{className:"text-3xl font-bold text-gray-800 mb-3",children:"Complementary Expertise"}),f.jsx("p",{className:"text-lg text-gray-600 max-w-xl mx-auto",children:"Beyond our core focus, we offer services to further enhance your Microsoft ecosystem."})]}),f.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((t,n)=>f.jsx(_.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.15},viewport:{once:!0},children:f.jsxs(Ke,{className:"h-full shadow-lg hover:shadow-xl transition-shadow duration-300",children:[f.jsxs(mt,{className:"flex flex-row items-center space-x-4 pb-2",children:[f.jsx("div",{className:"p-3 rounded-full bg-gradient-to-tr from-blue-500 to-purple-600 text-white",children:f.jsx(t.icon,{className:"w-6 h-6"})}),f.jsx(gt,{className:"text-xl font-semibold text-gray-700",children:t.title})]}),f.jsx(ot,{children:f.jsx("p",{className:"text-gray-600",children:t.description})})]})},t.title))})]})})},Jk=()=>f.jsxs(Kn,{children:[f.jsx(Zk,{}),f.jsx(Xk,{}),f.jsx(qk,{}),f.jsx(Yy,{})]}),eb=[{icon:Ks,title:"Microsoft Intune Solutions",description:"Empower your workforce with secure and modern endpoint management. We design and implement Intune strategies for seamless device management, application control, and robust security across all platforms.",features:["Endpoint Configuration & Management (Windows, macOS, iOS, Android)","Mobile Device Management (MDM) & Mobile Application Management (MAM)","Conditional Access & Compliance Policies","Windows Autopilot Deployment","Application Packaging & Deployment","Security Baselines & Endpoint Protection Integration"],color:"from-sky-500 to-blue-600",logo:"https://img.icons8.com/color/96/microsoft-intune.png"},{icon:Gs,title:"Microsoft Defender Suite",description:"Achieve comprehensive threat protection with Microsoft Defender. Our experts help you deploy and optimize Defender solutions across endpoints, identities, cloud applications, and email.",features:["Microsoft Defender for Endpoint (MDE) Implementation & Optimization","Microsoft Defender for Identity (MDI) Setup & Monitoring","Microsoft Defender for Cloud Apps (MDCA) Configuration","Microsoft Defender for Office 365 (MDO) Advanced Threat Protection","Threat & Vulnerability Management (TVM)","Security Information & Event Management (SIEM) Integration"],color:"from-green-500 to-emerald-600",logo:"https://img.icons8.com/color/96/microsoft-defender.png"},{icon:Hs,title:"Microsoft Purview Expertise",description:"Govern, protect, and manage your data effectively with Microsoft Purview. We assist in implementing data discovery, classification, information protection, and compliance solutions.",features:["Unified Data Governance Strategy","Data Discovery, Scanning & Classification (Purview Data Map)","Information Protection (Sensitivity Labels, Encryption)","Data Loss Prevention (DLP) Policies (Endpoints, Apps, Services)","Insider Risk Management","eDiscovery & Compliance Management (Records Management)"],color:"from-purple-500 to-indigo-600",logo:"https://img.icons8.com/fluency/96/microsoft-sharepoint.png"}],tb=[{icon:jk,title:"Security Operations (SecOps) Modernization",description:"Enhance your threat detection and response capabilities with Azure Sentinel and Defender XDR.",features:["Azure Sentinel Deployment & Configuration","Security Orchestration, Automation & Response (SOAR)","Custom Playbook Development","Threat Hunting Workshops"],color:"from-red-500 to-orange-600"},{icon:_y,title:"Identity & Access Management (IAM)",description:"Secure identities and manage access effectively with Azure AD and related technologies.",features:["Azure AD Premium Features Implementation","Privileged Identity Management (PIM)","Multi-Factor Authentication (MFA) Rollout","Single Sign-On (SSO) Integration"],color:"from-yellow-500 to-amber-600"},{icon:vk,title:"Data Security & Privacy Consulting",description:"Navigate complex data protection regulations and implement robust data security measures.",features:["GDPR, CCPA, HIPAA Compliance Advisory","Data Privacy Impact Assessments (DPIA)","Data Encryption Strategies","Secure Data Lifecycle Management"],color:"from-teal-500 to-cyan-600"}],nb=()=>{const e=n=>{He({title:`🚧 ${n} details feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀`})},t=({service:n,index:r,isCore:i})=>f.jsx(_.div,{initial:{y:50,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:.6,delay:r*.1},viewport:{once:!0},whileHover:{y:-10},className:"group flex",children:f.jsxs(Ke,{className:"h-full border-0 shadow-xl hover:shadow-2xl transition-all duration-300 overflow-hidden flex flex-col glass-effect bg-white/80 backdrop-blur-sm",children:[f.jsxs(mt,{className:"relative",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${n.color} flex items-center justify-center group-hover:scale-110 transition-transform duration-300`,children:f.jsx(n.icon,{className:"w-8 h-8 text-white"})}),i&&n.logo&&f.jsx("img-replace",{src:n.logo,alt:`${n.title} logo`,className:"w-16 h-16 object-contain group-hover:animate-pulse"})]}),f.jsx(gt,{className:"text-2xl font-bold text-gray-800 group-hover:text-blue-600 transition-colors",children:n.title}),f.jsx(Ys,{className:"text-gray-600 text-base leading-relaxed min-h-[80px]",children:n.description})]}),f.jsxs(ot,{className:"space-y-4 flex-grow flex flex-col justify-between",children:[f.jsx("div",{className:"space-y-2",children:n.features.map(o=>f.jsxs("div",{className:"flex items-start space-x-2",children:[f.jsx(Ly,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),f.jsx("span",{className:"text-gray-700 font-medium text-sm",children:o})]},o))}),f.jsxs(ge,{onClick:()=>e(n.title),className:"w-full mt-6 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold group-hover:scale-105 transition-transform duration-300",children:["Learn More",f.jsx(Li,{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform"})]})]})]})},n.title);return f.jsxs(Kn,{title:"Our Specialized Services",description:"We are experts in Microsoft Intune, Defender, and Purview, delivering tailored solutions to secure your modern workplace and govern your data effectively.",children:[f.jsxs("section",{className:"mb-16",children:[f.jsx("h2",{className:"text-3xl font-bold text-center mb-2 bg-gradient-to-r from-blue-700 to-purple-700 bg-clip-text text-transparent",children:"Core Expertise"}),f.jsx("p",{className:"text-lg text-gray-600 text-center mb-10 max-w-2xl mx-auto",children:"Deep specialization in Microsoft's leading security and management platforms."}),f.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-3 gap-8",children:eb.map((n,r)=>f.jsx(t,{service:n,index:r,isCore:!0},n.title))})]}),f.jsxs("section",{children:[f.jsx("h2",{className:"text-3xl font-bold text-center mb-2 bg-gradient-to-r from-orange-600 to-red-600 bg-clip-text text-transparent",children:"Additional Security Services"}),f.jsx("p",{className:"text-lg text-gray-600 text-center mb-10 max-w-2xl mx-auto",children:"Complementing our core offerings with services to further strengthen your security posture."}),f.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-3 gap-8",children:tb.map((n,r)=>f.jsx(t,{service:n,index:r,isCore:!1},n.title))})]})]})},rb=[{icon:gk,title:"Enterprise Modernization",description:"Transform legacy systems into agile, cloud-native applications. Enhance scalability, reduce costs, and improve operational efficiency with our modernization strategies.",imageName:"Enterprise building with modern architecture",color:"from-blue-600 to-indigo-600"},{icon:bk,title:"Digital Commerce Solutions",description:"Build robust e-commerce platforms and enhance customer experiences. We leverage Microsoft technologies to create seamless online shopping journeys.",imageName:"Modern e-commerce website interface on a laptop",color:"from-green-500 to-teal-500"},{icon:Dy,title:"Customer Experience (CX) Transformation",description:"Utilize Dynamics 365 and Power Platform to create personalized and engaging customer interactions across all touchpoints.",imageName:"Diverse group of happy customers interacting with a brand",color:"from-purple-500 to-pink-500"},{icon:wk,title:"Innovation & AI Accelerators",description:"Rapidly prototype and deploy AI-driven solutions. Leverage Azure AI to unlock new business opportunities and automate complex tasks.",imageName:"Glowing lightbulb symbolizing innovation with abstract AI patterns",color:"from-yellow-400 to-orange-500"},{icon:_y,title:"Employee Productivity Platforms",description:"Empower your workforce with Microsoft 365 and Teams. Foster collaboration, streamline communication, and boost productivity.",imageName:"Team collaborating effectively in a modern office environment",color:"from-red-500 to-rose-500"}],ib=()=>{const e=t=>{He({title:`🚧 ${t} details feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀`})};return f.jsx(Kn,{title:"Tailored Industry Solutions",description:"We provide industry-specific solutions powered by Microsoft technologies to address your unique business challenges and drive growth.",children:f.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-1 gap-12",children:rb.map((t,n)=>f.jsx(_.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:n*.15},viewport:{once:!0},className:"group",children:f.jsx(Ke,{className:"overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 glass-effect bg-white/80 backdrop-blur-sm",children:f.jsxs("div",{className:"md:flex",children:[f.jsx("div",{className:"md:w-2/5",children:f.jsx("img",{className:"h-64 w-full object-cover md:h-full group-hover:scale-105 transition-transform duration-500",alt:t.imageName,src:"https://images.unsplash.com/photo-1595872018818-97555653a011"})}),f.jsxs("div",{className:"md:w-3/5 p-8 flex flex-col justify-center",children:[f.jsx(mt,{className:"p-0 mb-4",children:f.jsxs("div",{className:"flex items-center space-x-3 mb-3",children:[f.jsx("div",{className:`w-12 h-12 rounded-lg bg-gradient-to-br ${t.color} flex items-center justify-center group-hover:rotate-12 transition-transform duration-300`,children:f.jsx(t.icon,{className:"w-6 h-6 text-white"})}),f.jsx(gt,{className:"text-3xl font-bold text-gray-800 group-hover:text-blue-600 transition-colors",children:t.title})]})}),f.jsxs(ot,{className:"p-0",children:[f.jsx("p",{className:"text-gray-600 text-lg leading-relaxed mb-6",children:t.description}),f.jsxs(ge,{onClick:()=>e(t.title),className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold group-hover:tracking-wider transition-all duration-300",size:"lg",children:["Explore Solution",f.jsx(Li,{className:"w-5 h-5 ml-2 group-hover:translate-x-1 transition-transform"})]})]})]})]})})},t.title))})})},ob=[{name:"Alex Chen",role:"Lead Intune & Endpoint Architect",imageName:"Professional person focused on a tablet"},{name:"Brenda Miller",role:"Head of Defender Security Solutions",imageName:"Woman analyzing security dashboard on multiple screens"},{name:"Carlos Rodriguez",role:"Purview & Data Governance Lead",imageName:"Man presenting data compliance strategy"},{name:"Diana Smith",role:"Client Success Manager",imageName:"Friendly woman in a video call with a client"}],sb=[{icon:kc,title:"Security First",description:"We prioritize the security and integrity of your digital assets in every solution."},{icon:hk,title:"Expert Innovation",description:"Leveraging deep expertise in Microsoft technologies to deliver innovative security solutions."},{icon:Dy,title:"Trusted Partnership",description:"Building transparent and collaborative relationships to achieve shared security goals."},{icon:fk,title:"Uncompromising Quality",description:"Dedicated to excellence in service delivery and measurable security outcomes."}],ab=()=>f.jsxs(Kn,{title:"About SecureTech Solutions",description:"Your dedicated experts in Microsoft Intune, Defender, and Purview. We empower businesses with robust security, modern management, and comprehensive data governance.",children:[f.jsx(_.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"mb-16",children:f.jsxs(Ke,{className:"shadow-xl glass-effect bg-white/80 backdrop-blur-sm",children:[f.jsx(mt,{children:f.jsx(gt,{className:"text-3xl font-bold text-blue-700",children:"Our Mission"})}),f.jsxs(ot,{children:[f.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:"To be the leading consultancy for Microsoft Intune, Defender, and Purview, enabling organizations to secure their digital estate, manage endpoints effectively, and govern data with confidence. We achieve this through deep technical expertise, tailored strategies, and a relentless commitment to our clients' security and operational excellence."}),f.jsxs("div",{className:"mt-6 flex flex-wrap gap-4",children:[f.jsxs(Mt,{className:"bg-sky-100 text-sky-700 py-1 px-3 text-sm",children:[f.jsx(Ks,{className:"w-4 h-4 mr-2"}),"Microsoft Intune Focus"]}),f.jsxs(Mt,{className:"bg-green-100 text-green-700 py-1 px-3 text-sm",children:[f.jsx(Gs,{className:"w-4 h-4 mr-2"}),"Microsoft Defender Specialization"]}),f.jsxs(Mt,{className:"bg-purple-100 text-purple-700 py-1 px-3 text-sm",children:[f.jsx(Hs,{className:"w-4 h-4 mr-2"}),"Microsoft Purview Expertise"]})]})]})]})}),f.jsxs(_.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"mb-16",children:[f.jsx("h2",{className:"text-3xl font-bold text-center mb-10 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Our Core Values"}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:sb.map((e,t)=>f.jsx(_.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},transition:{duration:.5,delay:t*.1},viewport:{once:!0},children:f.jsxs(Ke,{className:"text-center h-full shadow-lg hover:shadow-xl transition-shadow duration-300 glass-effect bg-white/70 backdrop-blur-sm",children:[f.jsxs(mt,{children:[f.jsx("div",{className:"mx-auto w-16 h-16 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center mb-4 text-white",children:f.jsx(e.icon,{className:"w-8 h-8"})}),f.jsx(gt,{className:"text-xl font-semibold text-gray-800",children:e.title})]}),f.jsx(ot,{children:f.jsx("p",{className:"text-gray-600",children:e.description})})]})},e.title))})]}),f.jsxs(_.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.6},className:"mb-16",children:[f.jsx("h2",{className:"text-3xl font-bold text-center mb-10 bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Meet Our Leadership Team"}),f.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:ob.map((e,t)=>f.jsx(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.15},viewport:{once:!0},className:"group",children:f.jsxs(Ke,{className:"overflow-hidden shadow-lg hover:shadow-xl transition-shadow duration-300 glass-effect bg-white/70 backdrop-blur-sm",children:[f.jsx("img",{className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300",alt:e.imageName,src:"https://images.unsplash.com/photo-1595872018818-97555653a011"}),f.jsxs(ot,{className:"p-6 text-center",children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-800 mb-1",children:e.name}),f.jsx("p",{className:"text-blue-600 font-medium",children:e.role})]})]})},e.name))})]}),f.jsx(_.section,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.8},children:f.jsx(Ke,{className:"p-8 bg-gradient-to-r from-blue-600 to-purple-700 text-white shadow-2xl",children:f.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[f.jsxs("div",{className:"md:w-2/3",children:[f.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Partner with Security Specialists"}),f.jsx("p",{className:"text-lg leading-relaxed mb-6",children:"At SecureTech Solutions, we live and breathe Microsoft security. Our focused expertise in Intune, Defender, and Purview means you get dedicated specialists committed to protecting and optimizing your digital environment. Let's build a more secure future for your business, together."}),f.jsxs(Mt,{variant:"secondary",className:"bg-white/20 text-white text-sm py-2 px-4",children:[f.jsx(Oy,{className:"w-5 h-5 mr-2"}),"Your Security, Our Priority"]})]}),f.jsx("div",{className:"md:w-1/3 flex justify-center",children:f.jsx(kc,{className:"w-32 h-32 text-white/50"})})]})})})]}),lb=[{title:"Azure Migration for Global Retailer",industry:"Retail & E-commerce",challenge:"Legacy on-premise infrastructure struggling with peak season demands and high operational costs.",solution:"Full migration to Azure, leveraging PaaS services and Azure Kubernetes Service (AKS) for scalability and cost-efficiency.",results:["40% reduction in IT operational costs","99.99% uptime during peak seasons","2x faster deployment cycles"],imageName:"Abstract representation of cloud migration with upward arrows",logo:"https://img.icons8.com/color/48/azure.png",tags:["Azure","Cloud Migration","AKS","Retail"]},{title:"Power Platform for Manufacturing Automation",industry:"Manufacturing",challenge:"Manual and inefficient shop floor reporting processes leading to delays and data inaccuracies.",solution:"Developed custom Power Apps for real-time data entry and Power BI dashboards for insightful reporting.",results:["75% reduction in reporting time","Improved data accuracy by 95%","Enhanced operational visibility"],imageName:"Robotic arm in a modern manufacturing plant",logo:"https://img.icons8.com/color/48/microsoft-power-platform.png",tags:["Power Platform","Automation","Power BI","Manufacturing"]},{title:"Microsoft 365 & Teams for Healthcare Collaboration",industry:"Healthcare",challenge:"Fragmented communication and collaboration tools hindering patient care coordination among distributed medical teams.",solution:"Implemented Microsoft 365 suite with a focus on Teams for secure communication, SharePoint for document management, and Intune for device security.",results:["Improved team collaboration by 60%","Enhanced HIPAA compliance","Streamlined patient data access"],imageName:"Medical professionals collaborating using tablets and computers",logo:"https://img.icons8.com/color/48/microsoft-teams-2019.png",tags:["Microsoft 365","Teams","Healthcare","Collaboration"]},{title:"Dynamics 365 CRM for Financial Services",industry:"Financial Services",challenge:"Siloed customer data and lack of a unified view leading to missed opportunities and inefficient client management.",solution:"Deployed Dynamics 365 Sales and Customer Service, integrating disparate data sources for a 360-degree customer view.",results:["30% increase in sales productivity","25% improvement in customer satisfaction scores","Unified client data platform"],imageName:"Financial advisor meeting with a client in a modern office",logo:"https://img.icons8.com/color/48/microsoft-dynamics-365.png",tags:["Dynamics 365","CRM","Financial Services","Customer Experience"]}],ub=()=>{const e=t=>{He({title:`🚧 Reading more about "${t}" isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀`})};return f.jsx(Kn,{title:"Success Stories",description:"Explore how we've helped businesses like yours achieve remarkable results with Microsoft technologies. Our case studies showcase real-world impact and transformative solutions.",children:f.jsx("div",{className:"space-y-12",children:lb.map((t,n)=>f.jsx(_.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},transition:{duration:.6,delay:n*.2},viewport:{once:!0},className:"group",children:f.jsxs(Ke,{className:"overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 md:flex glass-effect bg-white/80 backdrop-blur-sm",children:[f.jsxs("div",{className:"md:w-1/3 relative",children:[f.jsx("img",{className:"h-64 w-full object-cover md:h-full group-hover:scale-105 transition-transform duration-500",alt:t.imageName,src:"https://images.unsplash.com/photo-1534298435681-3fd5153b0b7c"}),f.jsx("div",{className:"absolute top-4 right-4 bg-white p-2 rounded-full shadow-md",children:f.jsx("img-replace",{src:t.logo,alt:`${t.industry} logo`,className:"w-10 h-10"})})]}),f.jsxs("div",{className:"md:w-2/3 p-6 md:p-8 flex flex-col",children:[f.jsxs(mt,{className:"p-0 mb-4",children:[f.jsx(Mt,{variant:"secondary",className:"mb-2 bg-blue-100 text-blue-700 w-fit group-hover:bg-blue-200 transition-colors",children:t.industry}),f.jsx(gt,{className:"text-2xl lg:text-3xl font-bold text-gray-800 group-hover:text-blue-600 transition-colors",children:t.title})]}),f.jsxs(ot,{className:"p-0 flex-grow space-y-4",children:[f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold text-gray-700",children:"The Challenge:"}),f.jsx("p",{className:"text-gray-600",children:t.challenge})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold text-gray-700",children:"Our Solution:"}),f.jsx("p",{className:"text-gray-600",children:t.solution})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold text-gray-700",children:"Key Results:"}),f.jsx("ul",{className:"list-disc list-inside text-gray-600 space-y-1",children:t.results.map(r=>f.jsxs("li",{className:"flex items-center",children:[f.jsx(Oy,{className:"w-4 h-4 mr-2 text-green-500 flex-shrink-0"})," ",r]},r))})]}),f.jsx("div",{className:"pt-2",children:t.tags.map(r=>f.jsx(Mt,{variant:"outline",className:"mr-2 mb-2 border-blue-400 text-blue-600",children:r},r))})]}),f.jsx("div",{className:"mt-6",children:f.jsxs(ge,{onClick:()=>e(t.title),className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold group-hover:pl-8 transition-all duration-300",children:["Read Full Case Study",f.jsx(Li,{className:"w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform"})]})})]})]})},t.title))})})},cb=()=>f.jsx(Kn,{children:f.jsx(Yy,{})}),db=()=>f.jsx(Kn,{children:f.jsxs("div",{className:"flex flex-col items-center justify-center text-center min-h-[calc(100vh-200px)]",children:[f.jsx(_.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:20,delay:.2},children:f.jsx(dk,{className:"w-32 h-32 text-yellow-400 mb-8"})}),f.jsx(_.h1,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.4,duration:.5},className:"text-6xl font-bold text-gray-800 mb-4",children:"404"}),f.jsx(_.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.6,duration:.5},className:"text-2xl text-gray-600 mb-8",children:"Oops! Page Not Found."}),f.jsx(_.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.8,duration:.5},className:"text-lg text-gray-500 mb-10 max-w-md",children:"The page you are looking for might have been removed, had its name changed, or is temporarily unavailable."}),f.jsx(_.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{delay:1,duration:.5},children:f.jsx(ge,{asChild:!0,size:"lg",className:"microsoft-gradient text-white hover:opacity-90 transition-opacity",children:f.jsxs($e,{to:"/",children:[f.jsx(xk,{className:"w-5 h-5 mr-2"}),"Go to Homepage"]})})})]})}),fb=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(""),i=()=>t(!e),o=s=>{s.preventDefault(),n.trim()&&(He({title:"🚧 Live Chat Message Sent (Simulated)",description:`Your message: "${n}" would be sent here. This feature is for demonstration.`}),r(""))};return f.jsxs(f.Fragment,{children:[f.jsx(_.div,{className:"fixed bottom-6 right-6 z-50",initial:{scale:0},animate:{scale:1},transition:{delay:1,duration:.5,type:"spring",stiffness:150},children:f.jsx(ge,{onClick:i,size:"lg",className:"rounded-full p-4 h-16 w-16 microsoft-gradient text-white shadow-xl hover:opacity-90 transition-opacity pulse-glow","aria-label":"Toggle Live Chat",children:e?f.jsx(eu,{className:"w-7 h-7"}):f.jsx(Jl,{className:"w-7 h-7"})})}),f.jsx(Zg,{children:e&&f.jsxs(_.div,{initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:50,scale:.9},transition:{duration:.3,ease:"easeInOut"},className:"fixed bottom-24 right-6 z-40 w-80 sm:w-96 bg-white rounded-xl shadow-2xl overflow-hidden border border-gray-200 glass-effect",children:[f.jsxs("header",{className:"p-4 bg-gradient-to-r from-blue-600 to-purple-600 text-white flex justify-between items-center",children:[f.jsx("h3",{className:"font-semibold text-lg",children:"Live Chat Support"}),f.jsx(ge,{variant:"ghost",size:"icon",onClick:i,className:"text-white hover:bg-white/20",children:f.jsx(eu,{className:"w-5 h-5"})})]}),f.jsx("div",{className:"p-4 h-64 overflow-y-auto bg-gray-50",children:f.jsxs("div",{className:"text-center text-gray-500 text-sm mt-4",children:[f.jsx(Jl,{className:"w-10 h-10 mx-auto mb-2 text-gray-400"}),"Welcome! How can we help you today?",f.jsx("p",{className:"text-xs mt-2",children:"(This is a demo chat interface)"})]})}),f.jsx("form",{onSubmit:o,className:"p-4 border-t border-gray-200 bg-white",children:f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(fr,{type:"text",placeholder:"Type your message...",value:n,onChange:s=>r(s.target.value),className:"flex-grow","aria-label":"Chat message input"}),f.jsx(ge,{type:"submit",size:"icon",className:"microsoft-gradient text-white","aria-label":"Send chat message",children:f.jsx(Vy,{className:"w-5 h-5"})})]})})]})})]})};function pb(){const e=Lr();return f.jsxs("div",{className:"min-h-screen flex flex-col",children:[f.jsx(_k,{}),f.jsx("main",{className:"flex-grow pt-20",children:f.jsx(Zg,{mode:"wait",children:f.jsxs(f1,{location:e,children:[f.jsx(Ut,{path:"/",element:f.jsx(Jk,{})}),f.jsx(Ut,{path:"/services",element:f.jsx(nb,{})}),f.jsx(Ut,{path:"/solutions",element:f.jsx(ib,{})}),f.jsx(Ut,{path:"/about",element:f.jsx(ab,{})}),f.jsx(Ut,{path:"/case-studies",element:f.jsx(ub,{})}),f.jsx(Ut,{path:"/contact",element:f.jsx(cb,{})}),f.jsx(Ut,{path:"*",element:f.jsx(db,{})})]},e.pathname)})}),f.jsx(Kk,{}),f.jsx(Vk,{}),f.jsx(fb,{})]})}_a.createRoot(document.getElementById("root")).render(f.jsx($.StrictMode,{children:f.jsx(w1,{children:f.jsx(pb,{})})}));