(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var np={exports:{}},rs={},rp={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 Ao=Symbol.for("react.element"),Iv=Symbol.for("react.portal"),Vv=Symbol.for("react.fragment"),Fv=Symbol.for("react.strict_mode"),zv=Symbol.for("react.profiler"),Bv=Symbol.for("react.provider"),Uv=Symbol.for("react.context"),$v=Symbol.for("react.forward_ref"),Hv=Symbol.for("react.suspense"),Wv=Symbol.for("react.memo"),Kv=Symbol.for("react.lazy"),vc=Symbol.iterator;function Gv(e){return e===null||typeof e!="object"?null:(e=vc&&e[vc]||e["@@iterator"],typeof e=="function"?e:null)}var op={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ip=Object.assign,sp={};function yr(e,t,n){this.props=e,this.context=t,this.refs=sp,this.updater=n||op}yr.prototype.isReactComponent={};yr.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")};yr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ap(){}ap.prototype=yr.prototype;function Il(e,t,n){this.props=e,this.context=t,this.refs=sp,this.updater=n||op}var Vl=Il.prototype=new ap;Vl.constructor=Il;ip(Vl,yr.prototype);Vl.isPureReactComponent=!0;var yc=Array.isArray,lp=Object.prototype.hasOwnProperty,Fl={current:null},up={key:!0,ref:!0,__self:!0,__source:!0};function cp(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)lp.call(t,r)&&!up.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,re=R[z];if(0>>1;zo(Rs,O))dno(Vo,Rs)?(R[z]=Vo,R[dn]=O,z=dn):(R[z]=Rs,R[dt]=O,z=dt);else if(dno(Vo,O))R[z]=Vo,R[dn]=O,z=dn;else break e}}return b}function o(R,b){var O=R.sortIndex-b.sortIndex;return O!==0?O:R.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,g=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=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(R){for(var b=n(u);b!==null;){if(b.callback===null)r(u);else if(b.startTime<=R)r(u),b.sortIndex=b.expirationTime,t(l,b);else break;b=n(u)}}function S(R){if(v=!1,m(R),!y)if(n(l)!==null)y=!0,pe(E);else{var b=n(u);b!==null&&H(S,b.startTime-R)}}function E(R,b){y=!1,v&&(v=!1,h(k),k=-1),g=!0;var O=f;try{for(m(b),d=n(l);d!==null&&(!(d.expirationTime>b)||R&&!U());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var re=z(d.expirationTime<=b);b=e.unstable_now(),typeof re=="function"?d.callback=re:d===n(l)&&r(l),m(b)}else r(l);d=n(l)}if(d!==null)var xt=!0;else{var dt=n(u);dt!==null&&H(S,dt.startTime-b),xt=!1}return xt}finally{d=null,f=O,g=!1}}var P=!1,C=null,k=-1,L=5,M=-1;function U(){return!(e.unstable_now()-MR||125z?(R.sortIndex=O,t(u,R),n(l)===null&&R===n(u)&&(v?(h(k),k=-1):v=!0,H(S,O-z))):(R.sortIndex=re,t(l,R),y||g||(y=!0,pe(E))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var b=f;return function(){var O=f;f=b;try{return R.apply(this,arguments)}finally{f=O}}}})(mp);hp.exports=mp;var oy=hp.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 iy=w,$e=oy;function A(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"),wa=Object.prototype.hasOwnProperty,sy=/^[: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]*$/,xc={},Tc={};function ay(e){return wa.call(Tc,e)?!0:wa.call(xc,e)?!1:sy.test(e)?Tc[e]=!0:(xc[e]=!0,!1)}function ly(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 uy(e,t,n,r){if(t===null||typeof t>"u"||ly(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 be(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){we[e]=new be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];we[t]=new be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){we[e]=new be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){we[e]=new be(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){we[e]=new be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){we[e]=new be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){we[e]=new be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){we[e]=new be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){we[e]=new be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bl=/[\-:]([a-z])/g;function Ul(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(Bl,Ul);we[t]=new be(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(Bl,Ul);we[t]=new be(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(Bl,Ul);we[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){we[e]=new be(e,1,!1,e.toLowerCase(),null,!1,!1)});we.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){we[e]=new be(e,1,!1,e.toLowerCase(),null,!0,!0)});function $l(e,t,n,r){var o=we.hasOwnProperty(t)?we[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{bs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_r(e):""}function cy(e){switch(e.tag){case 5:return _r(e.type);case 16:return _r("Lazy");case 13:return _r("Suspense");case 19:return _r("SuspenseList");case 0:case 2:case 15:return e=Ls(e.type,!1),e;case 11:return e=Ls(e.type.render,!1),e;case 1:return e=Ls(e.type,!0),e;default:return""}}function Ea(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 In:return"Fragment";case _n:return"Portal";case xa:return"Profiler";case Hl:return"StrictMode";case Ta:return"Suspense";case Sa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yp:return(e.displayName||"Context")+".Consumer";case vp:return(e._context.displayName||"Context")+".Provider";case Wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kl:return t=e.displayName||null,t!==null?t:Ea(e.type)||"Memo";case Ut:t=e._payload,e=e._init;try{return Ea(e(t))}catch{}}return null}function dy(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 Ea(t);case 8:return t===Hl?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fy(e){var t=xp(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 Bo(e){e._valueTracker||(e._valueTracker=fy(e))}function Tp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ci(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 Ca(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ec(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nn(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 Sp(e,t){t=t.checked,t!=null&&$l(e,"checked",t,!1)}function Pa(e,t){Sp(e,t);var n=nn(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")?ka(e,t.type,n):t.hasOwnProperty("defaultValue")&&ka(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Cc(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 ka(e,t,n){(t!=="number"||Ci(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ir=Array.isArray;function Jn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Uo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={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},py=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){py.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function kp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function Ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=kp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var hy=ne({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 Na(e,t){if(t){if(hy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ma(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 ba=null;function Gl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var La=null,er=null,tr=null;function Ac(e){if(e=Mo(e)){if(typeof La!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ls(t),La(e.stateNode,e.type,t))}}function Rp(e){er?tr?tr.push(e):tr=[e]:er=e}function Np(){if(er){var e=er,t=tr;if(tr=er=null,Ac(e),t)for(e=0;e>>=0,e===0?32:31-(Py(e)/ky|0)|0}var $o=64,Ho=4194304;function Vr(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 Ri(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Vr(a):(i&=s,i!==0&&(r=Vr(i)))}else s=n&~o,s!==0?r=Vr(s):i!==0&&(r=Vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function My(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=Wr),_c=String.fromCharCode(32),Ic=!1;function Yp(e,t){switch(e){case"keyup":return o0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function s0(e,t){switch(e){case"compositionend":return Qp(t);case"keypress":return t.which!==32?null:(Ic=!0,_c);case"textInput":return e=t.data,e===_c&&Ic?null:e;default:return null}}function a0(e,t){if(Vn)return e==="compositionend"||!tu&&Yp(e,t)?(e=Gp(),di=Zl=Kt=null,Vn=!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=Bc(n)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(){for(var e=window,t=Ci();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ci(e.document)}return t}function nu(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 g0(e){var t=th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eh(n.ownerDocument.documentElement,n)){if(r!==null&&nu(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Uc(n,i);var s=Uc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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,Fn=null,Va=null,Gr=null,Fa=!1;function $c(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fa||Fn==null||Fn!==Ci(r)||(r=Fn,"selectionStart"in r&&nu(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}),Gr&&uo(Gr,r)||(Gr=r,r=bi(Va,"onSelect"),0Un||(e.current=Wa[Un],Wa[Un]=null,Un--)}function W(e,t){Un++,Wa[Un]=e.current,e.current=t}var rn={},Pe=ln(rn),je=ln(!1),Pn=rn;function lr(e,t){var n=e.type.contextTypes;if(!n)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function Di(){X(je),X(Pe)}function Qc(e,t,n){if(Pe.current!==rn)throw Error(A(168));W(Pe,t),W(je,n)}function ch(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,dy(e)||"Unknown",o));return ne({},n,r)}function Oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,Pn=Pe.current,W(Pe,e),W(je,je.current),!0}function qc(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=ch(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,X(je),X(Pe),W(Pe,e)):X(je),W(je,n)}var Ct=null,us=!1,Ks=!1;function dh(e){Ct===null?Ct=[e]:Ct.push(e)}function R0(e){us=!0,dh(e)}function un(){if(!Ks&&Ct!==null){Ks=!0;var e=0,t=$;try{var n=Ct;for($=1;e>=s,o-=s,Pt=1<<32-lt(t)+o|n<k?(L=C,C=null):L=C.sibling;var M=f(h,C,m[k],S);if(M===null){C===null&&(C=L);break}e&&C&&M.alternate===null&&t(h,C),p=i(M,p,k),P===null?E=M:P.sibling=M,P=M,C=L}if(k===m.length)return n(h,C),Z&&pn(h,k),E;if(C===null){for(;kk?(L=C,C=null):L=C.sibling;var U=f(h,C,M.value,S);if(U===null){C===null&&(C=L);break}e&&C&&U.alternate===null&&t(h,C),p=i(U,p,k),P===null?E=U:P.sibling=U,P=U,C=L}if(M.done)return n(h,C),Z&&pn(h,k),E;if(C===null){for(;!M.done;k++,M=m.next())M=d(h,M.value,S),M!==null&&(p=i(M,p,k),P===null?E=M:P.sibling=M,P=M);return Z&&pn(h,k),E}for(C=r(h,C);!M.done;k++,M=m.next())M=g(C,h,k,M.value,S),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?k:M.key),p=i(M,p,k),P===null?E=M:P.sibling=M,P=M);return e&&C.forEach(function(I){return t(h,I)}),Z&&pn(h,k),E}function x(h,p,m,S){if(typeof m=="object"&&m!==null&&m.type===In&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case zo:e:{for(var E=m.key,P=p;P!==null;){if(P.key===E){if(E=m.type,E===In){if(P.tag===7){n(h,P.sibling),p=o(P,m.props.children),p.return=h,h=p;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ut&&ed(E)===P.type){n(h,P.sibling),p=o(P,m.props),p.ref=Rr(h,P,m),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}m.type===In?(p=Sn(m.props.children,h.mode,S,m.key),p.return=h,h=p):(S=wi(m.type,m.key,m.props,null,h.mode,S),S.ref=Rr(h,p,m),S.return=h,h=S)}return s(h);case _n:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ea(m,h.mode,S),p.return=h,h=p}return s(h);case Ut:return P=m._init,x(h,p,P(m._payload),S)}if(Ir(m))return y(h,p,m,S);if(Er(m))return v(h,p,m,S);qo(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=Js(m,h.mode,S),p.return=h,h=p),s(h)):n(h,p)}return x}var cr=mh(!0),gh=mh(!1),Ii=ln(null),Vi=null,Wn=null,su=null;function au(){su=Wn=Vi=null}function lu(e){var t=Ii.current;X(Ii),e._currentValue=t}function Xa(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 rr(e,t){Vi=e,su=Wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Je(e){var t=e._currentValue;if(su!==e)if(e={context:e,memoizedValue:t,next:null},Wn===null){if(Vi===null)throw Error(A(308));Wn=e,Vi.dependencies={lanes:0,firstContext:e}}else Wn=Wn.next=e;return t}var yn=null;function uu(e){yn===null?yn=[e]:yn.push(e)}function vh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Lt(e,r)}function Lt(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 $t=!1;function cu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yh(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 At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lt(e,n)}return o=r.interleaved,o===null?(t.next=t,uu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Lt(e,n)}function pi(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,Yl(e,n)}}function td(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Fi(e,t,n,r){var o=e.updateQueue;$t=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=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(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,g=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(f=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(g,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(g,d,f):y,f==null)break e;d=ne({},d,f);break e;case 2:$t=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Rn|=s,e.lanes=s,e.memoizedState=d}}function nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{$=n,Xs.transition=r}}function jh(){return et().memoizedState}function L0(e,t,n){var r=en(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_h(e))Ih(t,n);else if(n=vh(e,t,n,r),n!==null){var o=Ne();ut(n,e,r,o),Vh(n,t,r)}}function D0(e,t,n){var r=en(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_h(e))Ih(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ct(a,s)){var l=t.interleaved;l===null?(o.next=o,uu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=vh(e,t,o,r),n!==null&&(o=Ne(),ut(n,e,r,o),Vh(n,t,r))}}function _h(e){var t=e.alternate;return e===te||t!==null&&t===te}function Ih(e,t){Xr=Bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}var Ui={readContext:Je,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},O0={readContext:Je,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mi(4194308,4,Mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return mi(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();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=L0.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:rd,useDebugValue:yu,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=rd(!1),t=e[0];return e=b0.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,o=pt();if(Z){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),me===null)throw Error(A(349));An&30||Sh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,od(Ch.bind(null,r,i,e),[e]),r.flags|=2048,yo(9,Eh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=me.identifierPrefix;if(Z){var n=kt,r=Pt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,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[ht]=t,e[po]=r,Xh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ma(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;opr&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304)}else{if(!r)if(e=zi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Z)return Te(t),null}else 2*ae()-i.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Nr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ae(),t.sibling=null,n=J.current,W(J,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Cu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function U0(e,t){switch(ou(t),t.tag){case 1:return _e(t.type)&&Di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),X(je),X(Pe),pu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fu(t),null;case 13:if(X(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(J),null;case 4:return dr(),null;case 10:return lu(t.type._context),null;case 22:case 23:return Cu(),null;case 24:return null;default:return null}}var Jo=!1,Ee=!1,$0=typeof WeakSet=="function"?WeakSet:Set,N=null;function Kn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ie(e,t,r)}else n.current=null}function rl(e,t,n){try{n()}catch(r){ie(e,t,r)}}var md=!1;function H0(e,t){if(za=Ni,e=th(),nu(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(g=d.nextSibling)!==null)break;d=f,f=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(Ba={focusedElem:e,selectionRange:n},Ni=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,x=y.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:rt(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=p}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(A(163))}}catch(S){ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=md,md=!1,y}function Yr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rl(t,n,i)}o=o.next}while(o!==r)}}function fs(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 ol(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 qh(e){var t=e.alternate;t!==null&&(e.alternate=null,qh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[po],delete t[Ha],delete t[k0],delete t[A0])),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 Zh(e){return e.tag===5||e.tag===3||e.tag===4}function gd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zh(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 il(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=Li));else if(r!==4&&(e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function sl(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(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}var ge=null,ot=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(os,n)}catch{}switch(n.tag){case 5:Ee||Kn(n,t);case 6:var r=ge,o=ot;ge=null,Vt(e,t,n),ge=r,ot=o,ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?Ws(e.parentNode,n):e.nodeType===1&&Ws(e,n),ao(e)):Ws(ge,n.stateNode));break;case 4:r=ge,o=ot,ge=n.stateNode.containerInfo,ot=!0,Vt(e,t,n),ge=r,ot=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&rl(n,t,s),o=o.next}while(o!==r)}Vt(e,t,n);break;case 1:if(!Ee&&(Kn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ie(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Vt(e,t,n),Ee=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $0),t.forEach(function(r){var o=J0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*K0(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Wi=0,B&6)throw Error(A(331));var o=B;for(B|=4,N=e.current;N!==null;){var i=N,s=i.child;if(N.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lae()-Su?Tn(e,0):Tu|=n),Ie(e,t)}function am(e,t){t===0&&(e.mode&1?(t=Ho,Ho<<=1,!(Ho&130023424)&&(Ho=4194304)):t=1);var n=Ne();e=Lt(e,t),e!==null&&(Ro(e,t,n),Ie(e,n))}function Z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),am(e,n)}function J0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),am(e,n)}var lm;lm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,z0(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,Z&&t.flags&1048576&&fh(t,_i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gi(e,t),e=t.pendingProps;var o=lr(t,Pe.current);rr(t,n),o=mu(null,t,r,e,o,n);var i=gu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,Oi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cu(t),o.updater=ds,t.stateNode=o,o._reactInternals=t,Qa(t,r,e,n),t=Ja(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&ru(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t1(r),e=rt(r,e),o){case 0:t=Za(null,t,r,e,n);break e;case 1:t=fd(null,t,r,e,n);break e;case 11:t=cd(null,t,r,e,n);break e;case 14:t=dd(null,t,r,rt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),Za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),fd(e,t,r,o,n);case 3:e:{if(Wh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yh(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=fr(Error(A(423)),t),t=pd(e,t,r,n,o);break e}else if(r!==o){o=fr(Error(A(424)),t),t=pd(e,t,r,n,o);break e}else for(ze=qt(t.stateNode.containerInfo.firstChild),Be=t,Z=!0,it=null,n=gh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===o){t=Dt(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return wh(t),e===null&&Ga(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ua(r,o)?s=null:i!==null&&Ua(r,i)&&(t.flags|=32),Hh(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&Ga(t),null;case 13:return Kh(e,t,n);case 4:return du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),cd(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,W(Ii,r._currentValue),r._currentValue=s,i!==null)if(ct(i.value,s)){if(i.children===o.children&&!je.current){t=Dt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=At(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Xa(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(A(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Xa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,rr(t,n),o=Je(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=rt(r,t.pendingProps),o=rt(r.type,o),dd(e,t,r,o,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:rt(r,o),gi(e,t),t.tag=1,_e(r)?(e=!0,Oi(t)):e=!1,rr(t,n),Fh(t,r,o),Qa(t,r,o,n),Ja(null,t,r,!0,e,n);case 19:return Gh(e,t,n);case 22:return $h(e,t,n)}throw Error(A(156,t.tag))};function um(e,t){return _p(e,t)}function e1(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 qe(e,t,n,r){return new e1(e,t,n,r)}function ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t1(e){if(typeof e=="function")return ku(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wl)return 11;if(e===Kl)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=qe(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 wi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ku(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case In:return Sn(n.children,o,i,t);case Hl:s=8,o|=8;break;case xa:return e=qe(12,n,t,o|2),e.elementType=xa,e.lanes=i,e;case Ta:return e=qe(13,n,t,o),e.elementType=Ta,e.lanes=i,e;case Sa:return e=qe(19,n,t,o),e.elementType=Sa,e.lanes=i,e;case wp:return hs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vp:s=10;break e;case yp:s=9;break e;case Wl:s=11;break e;case Kl:s=14;break e;case Ut:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=qe(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Sn(e,t,n,r){return e=qe(7,e,r,t),e.lanes=n,e}function hs(e,t,n,r){return e=qe(22,e,r,t),e.elementType=wp,e.lanes=n,e.stateNode={isHidden:!1},e}function Js(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function ea(e,t,n){return t=qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n1(e,t,n,r,o){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=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Au(e,t,n,r,o,i,s,a,l){return e=new n1(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cu(i),e}function r1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pm)}catch(e){console.error(e)}}pm(),pp.exports=We;var ws=pp.exports;const l1=vr(ws);var Pd=ws;ya.createRoot=Pd.createRoot,ya.hydrateRoot=Pd.hydrateRoot;var hm={exports:{}},u1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",c1=u1,d1=c1;function mm(){}function gm(){}gm.resetWarningCache=mm;var f1=function(){function e(r,o,i,s,a,l){if(l!==d1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gm,resetWarningCache:mm};return n.PropTypes=n,n};hm.exports=f1();var p1=hm.exports;const Q=vr(p1);function h1(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var vm=w,m1=h1(vm);function kd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var v1=!!(typeof window<"u"&&window.document&&window.document.createElement);function y1(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){g1(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=a;return a=void 0,s=[],y};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var y=s.indexOf(this);s.splice(y,1),l()},f.render=function(){return m1.createElement(i,this.props)},d}(vm.PureComponent);return kd(u,"displayName","SideEffect("+r(i)+")"),kd(u,"canUseDOM",v1),u}}var w1=y1;const x1=vr(w1);var T1=typeof Element<"u",S1=typeof Map=="function",E1=typeof Set=="function",C1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!xi(e[r],t[r]))return!1;return!0}var i;if(S1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!xi(r.value[1],t.get(r.value[0])))return!1;return!0}if(E1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(C1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(T1&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!xi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var P1=function(t,n){try{return xi(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const k1=vr(P1);/* object-assign (c) Sindre Sorhus @license MIT */var Ad=Object.getOwnPropertySymbols,A1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable;function N1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function M1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var b1=M1()?Object.assign:function(e,t){for(var n,r=N1(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},F1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},dl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},z1=function(t){var n=ir(t,_.TITLE),r=ir(t,xo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=ir(t,xo.DEFAULT_TITLE);return n||o||void 0},B1=function(t){return ir(t,xo.ON_CHANGE_CLIENT_STATE)||function(){}},ta=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return Le({},r,o)},{})},U1=function(t,n){return n.filter(function(r){return typeof r[_.BASE]<"u"}).map(function(r){return r[_.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},$1=function(t){return{baseTag:U1([q.HREF,q.TARGET],t),bodyAttributes:ta(En.BODY,t),defer:ir(t,xo.DEFER),encode:ir(t,xo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ta(En.HTML,t),linkTags:br(_.LINK,[q.REL,q.HREF],t),metaTags:br(_.META,[q.NAME,q.CHARSET,q.HTTPEQUIV,q.PROPERTY,q.ITEM_PROP],t),noscriptTags:br(_.NOSCRIPT,[q.INNER_HTML],t),onChangeClientState:B1(t),scriptTags:br(_.SCRIPT,[q.SRC,q.INNER_HTML],t),styleTags:br(_.STYLE,[q.CSS_TEXT],t),title:z1(t),titleAttributes:ta(En.TITLE,t)}},fl=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){fl(t)},0)}}(),Nd=function(t){return clearTimeout(t)},H1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||fl:global.requestAnimationFrame||fl,W1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Nd:global.cancelAnimationFrame||Nd,K1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Lr=null,G1=function(t){Lr&&W1(Lr),t.defer?Lr=H1(function(){Md(t,function(){Lr=null})}):(Md(t),Lr=null)},Md=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,g=t.titleAttributes;pl(_.BODY,o),pl(_.HTML,i),X1(f,g);var y={baseTag:jn(_.BASE,r),linkTags:jn(_.LINK,s),metaTags:jn(_.META,a),noscriptTags:jn(_.NOSCRIPT,l),scriptTags:jn(_.SCRIPT,c),styleTags:jn(_.STYLE,d)},v={},x={};Object.keys(y).forEach(function(h){var p=y[h],m=p.newTags,S=p.oldTags;m.length&&(v[h]=m),S.length&&(x[h]=y[h].oldTags)}),n&&n(),u(t,v,x)},ym=function(t){return Array.isArray(t)?t.join(""):t},X1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=ym(t)),pl(_.TITLE,n)},pl=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(st),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(st):r.getAttribute(st)!==a.join(",")&&r.setAttribute(st,a.join(","))}},jn=function(t,n){var r=document.head||document.querySelector(_.HEAD),o=r.querySelectorAll(t+"["+st+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===q.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===q.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(st,"true"),i.some(function(f,g){return a=g,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},wm=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Y1=function(t,n,r,o){var i=wm(r),s=ym(n);return i?"<"+t+" "+st+'="true" '+i+">"+dl(s,o)+"":"<"+t+" "+st+'="true">'+dl(s,o)+""},Q1=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===q.INNER_HTML||u===q.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+dl(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=O1.indexOf(t)===-1;return o+"<"+t+" "+st+'="true" '+s+(l?"/>":">"+a+"")},"")},xm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Xi[o]||o]=t[o],r},n)},q1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[D1[o]||o]=t[o],r},n)},Z1=function(t,n,r){var o,i=(o={key:n},o[st]=!0,o),s=xm(r,i);return[ce.createElement(_.TITLE,s,n)]},J1=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[st]=!0,i);return Object.keys(r).forEach(function(a){var l=Xi[a]||a;if(l===q.INNER_HTML||l===q.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),ce.createElement(t,s)})},Tt=function(t,n,r){switch(t){case _.TITLE:return{toComponent:function(){return Z1(t,n.title,n.titleAttributes)},toString:function(){return Y1(t,n.title,n.titleAttributes,r)}};case En.BODY:case En.HTML:return{toComponent:function(){return xm(n)},toString:function(){return wm(n)}};default:return{toComponent:function(){return J1(t,n)},toString:function(){return Q1(t,n,r)}}}},Tm=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,g=t.titleAttributes;return{base:Tt(_.BASE,n,o),bodyAttributes:Tt(En.BODY,r,o),htmlAttributes:Tt(En.HTML,i,o),link:Tt(_.LINK,s,o),meta:Tt(_.META,a,o),noscript:Tt(_.NOSCRIPT,l,o),script:Tt(_.SCRIPT,u,o),style:Tt(_.STYLE,c,o),title:Tt(_.TITLE,{title:f,titleAttributes:g},o)}},ew=function(t){var n,r;return r=n=function(o){V1(i,o);function i(){return _1(this,i),F1(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!k1(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:l};case _.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Le({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Le({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,g=a.nestedChildren;switch(c.type){case _.TITLE:return Le({},d,(l={},l[c.type]=g,l.titleAttributes=Le({},f),l));case _.BODY:return Le({},d,{bodyAttributes:Le({},f)});case _.HTML:return Le({},d,{htmlAttributes:Le({},f)})}return Le({},d,(u={},u[c.type]=Le({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Le({},l);return Object.keys(a).forEach(function(c){var d;u=Le({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return ce.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,g=f.children,y=Rd(f,["children"]),v=q1(y);switch(u.warnOnInvalidChildren(d,g),d.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:v,nestedChildren:g});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:v,nestedChildren:g});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=Rd(a,["children"]),c=Le({},u);return l&&(c=this.mapChildrenToProps(l,c)),ce.createElement(t,c)},I1(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(ce.Component),n.propTypes={base:Q.object,bodyAttributes:Q.object,children:Q.oneOfType([Q.arrayOf(Q.node),Q.node]),defaultTitle:Q.string,defer:Q.bool,encodeSpecialCharacters:Q.bool,htmlAttributes:Q.object,link:Q.arrayOf(Q.object),meta:Q.arrayOf(Q.object),noscript:Q.arrayOf(Q.object),onChangeClientState:Q.func,script:Q.arrayOf(Q.object),style:Q.arrayOf(Q.object),title:Q.string,titleAttributes:Q.object,titleTemplate:Q.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=Tm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},tw=function(){return null},nw=x1($1,G1,Tm)(tw),hl=ew(nw);hl.renderStatic=hl.rewind;function rw(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function xs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ml=e=>Array.isArray(e);function Sm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function bu(e,t,n,r){if(typeof t=="function"){const[o,i]=bd(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=bd(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Ts(e,t,n){const r=e.getProps();return bu(r,t,n!==void 0?n:r.custom,e)}const Lu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Du=["initial",...Lu],Lo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(Lo),Rt=e=>e*1e3,Nt=e=>e/1e3,ow={type:"spring",stiffness:500,damping:25,restSpeed:10},iw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sw={type:"keyframes",duration:.8},aw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lw=(e,{keyframes:t})=>t.length>2?sw:Dn.has(e)?e.startsWith("scale")?iw(t[1]):ow:aw;function Ou(e,t){return e?e[t]||e.default||e:void 0}const uw={skipAnimations:!1,useManualTiming:!1},cw=e=>e!==null;function Ss(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(cw),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const Ue=e=>e;let Em=Ue;function dw(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const g=d&&r?t:n;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const ni=["read","resolveKeyframes","update","preRender","render","postRender"],fw=40;function Cm(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ni.reduce((h,p)=>(h[p]=dw(i),h),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,g=()=>{const h=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(h-o.timestamp,fw),1),o.timestamp=h,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:ni.reduce((h,p)=>{const m=s[p];return h[p]=(S,E=!1,P=!1)=>(n||y(),m.schedule(S,E,P)),h},{}),cancel:h=>{for(let p=0;p(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pw=1e-7,hw=12;function mw(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Pm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>pw&&++amw(i,0,1,e,n);return i=>i===0||i===1?i:Pm(o(i),t,r)}const km=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Am=e=>t=>1-e(1-t),Rm=Do(.33,1.53,.69,.99),ju=Am(Rm),Nm=km(ju),Mm=e=>(e*=2)<1?.5*ju(e):.5*(2-Math.pow(2,-10*(e-1))),_u=e=>1-Math.sin(Math.acos(e)),bm=Am(_u),Lm=km(_u),Dm=e=>/^0[^.\s]+$/u.test(e);function gw(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dm(e):!0}const Om=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jm=e=>t=>typeof t=="string"&&t.startsWith(e),_m=jm("--"),vw=jm("var(--"),Iu=e=>vw(e)?yw.test(e.split("/*")[0].trim()):!1,yw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ww=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xw(e){const t=ww.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Im(e,t,n=1){const[r,o]=xw(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Om(s)?parseFloat(s):s}return Iu(o)?Im(o,t,n+1):o}const Ot=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},So={...Tr,transform:e=>Ot(0,1,e)},ri={...Tr,default:1},Oo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bt=Oo("deg"),vt=Oo("%"),D=Oo("px"),Tw=Oo("vh"),Sw=Oo("vw"),Ld={...vt,parse:e=>vt.parse(e)/100,transform:e=>vt.transform(e*100)},Ew=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Dd=e=>e===Tr||e===D,Od=(e,t)=>parseFloat(e.split(", ")[t]),jd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Od(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Od(i[1],e):0}},Cw=new Set(["x","y","z"]),Pw=Lo.filter(e=>!Cw.has(e));function kw(e){const t=[];return Pw.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const hr={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:jd(4,13),y:jd(5,14)};hr.translateX=hr.x;hr.translateY=hr.y;const Vm=e=>t=>t.test(e),Aw={test:e=>e==="auto",parse:e=>e},Fm=[Tr,D,vt,Bt,Sw,Tw,Aw],_d=e=>Fm.find(Vm(e)),Cn=new Set;let gl=!1,vl=!1;function zm(){if(vl){const e=Array.from(Cn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=kw(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vl=!1,gl=!1,Cn.forEach(e=>e.complete()),Cn.clear()}function Bm(){Cn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vl=!0)})}function Rw(){Bm(),zm()}class Vu{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cn.add(this),gl||(gl=!0,Y.read(Bm),Y.resolveKeyframes(zm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Fu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nw(e){return e==null}const Mw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zu=(e,t)=>n=>!!(typeof n=="string"&&Mw.test(n)&&n.startsWith(e)||t&&!Nw(n)&&Object.prototype.hasOwnProperty.call(n,t)),Um=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Fu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},bw=e=>Ot(0,255,e),ra={...Tr,transform:e=>Math.round(bw(e))},xn={test:zu("rgb","red"),parse:Um("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ra.transform(e)+", "+ra.transform(t)+", "+ra.transform(n)+", "+Zr(So.transform(r))+")"};function Lw(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const yl={test:zu("#"),parse:Lw,transform:xn.transform},Xn={test:zu("hsl","hue"),parse:Um("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vt.transform(Zr(t))+", "+vt.transform(Zr(n))+", "+Zr(So.transform(r))+")"},Se={test:e=>xn.test(e)||yl.test(e)||Xn.test(e),parse:e=>xn.test(e)?xn.parse(e):Xn.test(e)?Xn.parse(e):yl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xn.transform(e):Xn.transform(e)},Dw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ow(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Dw))===null||n===void 0?void 0:n.length)||0)>0}const $m="number",Hm="color",jw="var",_w="var(",Id="${}",Iw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Iw,l=>(Se.test(l)?(r.color.push(i),o.push(Hm),n.push(Se.parse(l))):l.startsWith(_w)?(r.var.push(i),o.push(jw),n.push(l)):(r.number.push(i),o.push($m),n.push(parseFloat(l))),++i,Id)).split(Id);return{values:n,split:a,indexes:r,types:o}}function Wm(e){return Eo(e).values}function Km(e){const{split:t,types:n}=Eo(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Fw(e){const t=Wm(e);return Km(e)(t.map(Vw))}const sn={test:Ow,parse:Wm,createTransformer:Km,getAnimatableNone:Fw},zw=new Set(["brightness","contrast","saturate","opacity"]);function Bw(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fu)||[];if(!r)return e;const o=n.replace(r,"");let i=zw.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Uw=/\b([a-z-]*)\(.*?\)/gu,wl={...sn,getAnimatableNone:e=>{const t=e.match(Uw);return t?t.map(Bw).join(" "):e}},$w={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,backgroundPositionX:D,backgroundPositionY:D},Hw={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:ri,scaleX:ri,scaleY:ri,scaleZ:ri,skew:Bt,skewX:Bt,skewY:Bt,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:So,originX:Ld,originY:Ld,originZ:D},Vd={...Tr,transform:Math.round},Bu={...$w,...Hw,zIndex:Vd,size:D,fillOpacity:So,strokeOpacity:So,numOctaves:Vd},Ww={...Bu,color:Se,backgroundColor:Se,outlineColor:Se,fill:Se,stroke:Se,borderColor:Se,borderTopColor:Se,borderRightColor:Se,borderBottomColor:Se,borderLeftColor:Se,filter:wl,WebkitFilter:wl},Uu=e=>Ww[e];function Gm(e,t){let n=Uu(e);return n!==wl&&(n=sn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Kw=new Set(["auto","none","0"]);function Gw(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function $u(e){return typeof e=="function"}let Ti;function Xw(){Ti=void 0}const yt={now:()=>(Ti===void 0&&yt.set(ve.isProcessing||uw.useManualTiming?ve.timestamp:performance.now()),Ti),set:e=>{Ti=e,queueMicrotask(Xw)}},Fd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sn.test(e)||e==="0")&&!e.startsWith("url("));function Yw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nqw?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Rw(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=yt.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Qw(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(Ss(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const mr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Qm=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,g=xl(u,s),y=Math.exp(-d);return oa-f/g*y},i=u=>{const d=u*s*e,f=d*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),v=xl(Math.pow(u,2),s);return(-o(u)+oa>0?-1:1)*((f-g)*y)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-oa+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=tx(o,i,a);if(e=Rt(e),isNaN(l))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const ex=12;function tx(e,t,n){let r=n;for(let o=1;o=Tl?1/0:t}const nx=["duration","bounce"],rx=["stiffness","damping","mass"];function zd(e,t){return t.some(n=>e[n]!==void 0)}function ox(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!zd(e,rx)&&zd(e,nx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ot(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=Jw(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function eg(e=oe.visualDuration,t=oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:g}=ox({...n,velocity:-Nt(n.velocity||0)}),y=f||0,v=u/(2*Math.sqrt(l*c)),x=s-i,h=Nt(Math.sqrt(l/c)),p=Math.abs(x)<5;r||(r=p?oe.restSpeed.granular:oe.restSpeed.default),o||(o=p?oe.restDelta.granular:oe.restDelta.default);let m;if(v<1){const E=xl(h,v);m=P=>{const C=Math.exp(-v*h*P);return s-C*((y+v*h*x)/E*Math.sin(E*P)+x*Math.cos(E*P))}}else if(v===1)m=E=>s-Math.exp(-h*E)*(x+(y+h*x)*E);else{const E=h*Math.sqrt(v*v-1);m=P=>{const C=Math.exp(-v*h*P),k=Math.min(E*P,300);return s-C*((y+v*h*x)*Math.sinh(k)+E*x*Math.cosh(k))/E}}const S={calculatedDuration:g&&d||null,next:E=>{const P=m(E);if(g)a.done=E>=d;else{let C=0;v<1&&(C=E===0?Rt(y):Zm(m,E,P));const k=Math.abs(C)<=r,L=Math.abs(s-P)<=o;a.done=k&&L}return a.value=a.done?s:P,a},toString:()=>{const E=Math.min(Jm(S),Tl),P=Qm(C=>S.next(E*C).value,E,30);return E+"ms "+P}};return S}function Bd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},g=k=>a!==void 0&&kl,y=k=>a===void 0?l:l===void 0||Math.abs(a-k)-v*Math.exp(-k/r),m=k=>h+p(k),S=k=>{const L=p(k),M=m(k);f.done=Math.abs(L)<=u,f.value=f.done?h:M};let E,P;const C=k=>{g(f.value)&&(E=k,P=eg({keyframes:[f.value,y(f.value)],velocity:Zm(m,k,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let L=!1;return!P&&E===void 0&&(L=!0,S(k),C(k)),E!==void 0&&k>=E?P.next(k-E):(!L&&S(k),f)}}}const ix=Do(.42,0,1,1),sx=Do(0,0,.58,1),tg=Do(.42,0,.58,1),ax=e=>Array.isArray(e)&&typeof e[0]!="number",Hu=e=>Array.isArray(e)&&typeof e[0]=="number",lx={linear:Ue,easeIn:ix,easeInOut:tg,easeOut:sx,circIn:_u,circInOut:Lm,circOut:bm,backIn:ju,backInOut:Nm,backOut:Rm,anticipate:Mm},Ud=e=>{if(Hu(e)){Em(e.length===4);const[t,n,r,o]=e;return Do(t,n,r,o)}else if(typeof e=="string")return lx[e];return e},ux=(e,t)=>n=>t(e(n)),jo=(...e)=>e.reduce(ux),ee=(e,t,n)=>e+(t-e)*n;function ia(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 cx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=ia(l,a,e+1/3),i=ia(l,a,e),s=ia(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Yi(e,t){return n=>n>0?t:e}const sa=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},dx=[yl,xn,Xn],fx=e=>dx.find(t=>t.test(e));function $d(e){const t=fx(e);if(!t)return!1;let n=t.parse(e);return t===Xn&&(n=cx(n)),n}const Hd=(e,t)=>{const n=$d(e),r=$d(t);if(!n||!r)return Yi(e,t);const o={...n};return i=>(o.red=sa(n.red,r.red,i),o.green=sa(n.green,r.green,i),o.blue=sa(n.blue,r.blue,i),o.alpha=ee(n.alpha,r.alpha,i),xn.transform(o))},Sl=new Set(["none","hidden"]);function px(e,t){return Sl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hx(e,t){return n=>ee(e,t,n)}function Wu(e){return typeof e=="number"?hx:typeof e=="string"?Iu(e)?Yi:Se.test(e)?Hd:vx:Array.isArray(e)?ng:typeof e=="object"?Se.test(e)?Hd:mx:Yi}function ng(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Wu(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function gx(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=sn.createTransformer(t),r=Eo(e),o=Eo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Sl.has(e)&&!o.values.length||Sl.has(t)&&!r.values.length?px(e,t):jo(ng(gx(r,o),o.values),n):Yi(e,t)};function rg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Wu(e)(e,t)}function yx(e,t,n){const r=[],o=n||rg,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=yx(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Ot(e[0],e[i-1],u)):l}function xx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=mr(0,t,r);e.push(ee(n,1,o))}}function Tx(e){const t=[0];return xx(t,e.length-1),t}function Sx(e,t){return e.map(n=>n*t)}function Ex(e,t){return e.map(()=>t||tg).splice(0,e.length-1)}function Qi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ax(r)?r.map(Ud):Ud(r),i={done:!1,value:t[0]},s=Sx(n&&n.length===t.length?n:Tx(t),e),a=wx(s,t,{ease:Array.isArray(o)?o:Ex(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Cx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>on(t),now:()=>ve.isProcessing?ve.timestamp:yt.now()}},Px={decay:Bd,inertia:Bd,tween:Qi,keyframes:Qi,spring:eg},kx=e=>e/100;class Ku extends Ym{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||Vu,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=$u(n)?n:Px[n]||Qi;let l,u;a!==Qi&&typeof t[0]!="number"&&(l=jo(kx,rg(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Jm(c));const{calculatedDuration:d}=c,f=d+o,g=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:g,repeatType:y,repeatDelay:v,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,S=i;if(g){const k=Math.min(this.currentTime,c)/d;let L=Math.floor(k),M=k%1;!M&&k>=1&&(M=1),M===1&&L--,L=Math.min(L,g+1),!!(L%2)&&(y==="reverse"?(M=1-M,v&&(M-=v/d)):y==="mirror"&&(S=s)),m=Ot(0,1,M)*d}const E=p?{done:!1,value:l[0]}:S.next(m);a&&(E.value=a(E.value));let{done:P}=E;!p&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return C&&o!==void 0&&(E.value=Ss(l,this.options,o)),x&&x(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Nt(t.calculatedDuration):0}get time(){return Nt(this.currentTime)}set time(t){t=Rt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Nt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Cx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Ax=new Set(["opacity","clipPath","filter","transform"]);function Gu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rx={linearEasing:void 0};function Nx(e,t){const n=Gu(e);return()=>{var r;return(r=Rx[t])!==null&&r!==void 0?r:n()}}const qi=Nx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function og(e){return!!(typeof e=="function"&&qi()||!e||typeof e=="string"&&(e in El||qi())||Hu(e)||Array.isArray(e)&&e.every(og))}const zr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,El={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zr([0,.65,.55,1]),circOut:zr([.55,0,1,.45]),backIn:zr([.31,.01,.66,-.59]),backOut:zr([.33,1.53,.69,.99])};function ig(e,t){if(e)return typeof e=="function"&&qi()?Qm(e,t):Hu(e)?zr(e):Array.isArray(e)?e.map(n=>ig(n,t)||El.easeOut):El[e]}function Mx(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=ig(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Wd(e,t){e.timeline=t,e.onfinish=null}const bx=Gu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zi=10,Lx=2e4;function Dx(e){return $u(e.type)||e.type==="spring"||!og(e.ease)}function Ox(e,t){const n=new Ku({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&qi()&&jx(s)&&(s=sg[s]),Dx(this.options)){const{onComplete:f,onUpdate:g,motionValue:y,element:v,...x}=this.options,h=Ox(t,x);t=h.keyframes,t.length===1&&(t[1]=t[0]),o=h.duration,i=h.times,s=h.ease,a="keyframes"}const d=Mx(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Wd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Ss(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Nt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Nt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ue;const{animation:r}=n;Wd(r,t)}return Ue}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...g}=this.options,y=new Ku({...g,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),v=Rt(this.time);u.setWithVelocity(y.sample(v-Zi).value,y.sample(v).value,Zi)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return bx()&&r&&Ax.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const _x=Gu(()=>window.ScrollTimeline!==void 0);class Ix{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r_x()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Vx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Xu=(e,t,n,r={},o,i)=>s=>{const a=Ou(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Rt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Vx(a)||(c={...c,...lw(e,c)}),c.duration&&(c.duration=Rt(c.duration)),c.repeatDelay&&(c.repeatDelay=Rt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Ss(c.keyframes,a);if(f!==void 0)return Y.update(()=>{c.onUpdate(f),c.onComplete()}),new Ix([])}return!i&&Kd.supports(c)?new Kd(c):new Ku(c)},Fx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),zx=e=>ml(e)?e[e.length-1]||0:e;function Yu(e,t){e.indexOf(t)===-1&&e.push(t)}function Qu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qu{constructor(){this.subscriptions=[]}add(t){return Yu(this.subscriptions,t),()=>Qu(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Ux{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=yt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Bx(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gd);return qm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Co(e,t){return new Ux(e,t)}function $x(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Co(n))}function Hx(e,t){const n=Ts(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=zx(i[s]);$x(e,s,a)}}const Zu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Wx="framerAppearId",ag="data-"+Zu(Wx);function lg(e){return e.props[ag]}const Ce=e=>!!(e&&e.getVelocity);function Kx(e){return!!(Ce(e)&&e.add)}function Cl(e,t){const n=e.getValue("willChange");if(Kx(n))return n.add(t)}function Gx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ug(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),g=l[d];if(g===void 0||c&&Gx(c,d))continue;const y={delay:n,...Ou(s||{},d)};let v=!1;if(window.MotionHandoffAnimation){const h=lg(e);if(h){const p=window.MotionHandoffAnimation(h,d,Y);p!==null&&(y.startTime=p,v=!0)}}Cl(e,d),f.start(Xu(d,f,g,e.shouldReduceMotion&&Dn.has(d)?{type:!1}:y,e,v));const x=f.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{Y.update(()=>{a&&Hx(e,a)})}),u}function Pl(e,t,n={}){var r;const o=Ts(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(ug(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return Xx(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function Xx(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(Yx).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Pl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function Yx(e,t){return e.sortNodePosition(t)}function Qx(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Pl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Pl(e,t,n);else{const o=typeof t=="function"?Ts(e,t,n.custom):t;r=Promise.all(ug(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const qx=Du.length;function cg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Qx(e,n,r)))}function tT(e){let t=eT(e),n=Xd(),r=!0;const o=l=>(u,c)=>{var d;const f=Ts(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:y,...v}=f;u={...u,...v,...y}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=cg(e.parent)||{},d=[],f=new Set;let g={},y=1/0;for(let x=0;xy&&S,L=!1;const M=Array.isArray(m)?m:[m];let U=M.reduce(o(h),{});E===!1&&(U={});const{prevResolvedValues:I={}}=p,ke={...I,...U},j=H=>{k=!0,f.has(H)&&(L=!0,f.delete(H)),p.needsAnimating[H]=!0;const R=e.getValue(H);R&&(R.liveStyle=!1)};for(const H in ke){const R=U[H],b=I[H];if(g.hasOwnProperty(H))continue;let O=!1;ml(R)&&ml(b)?O=!Sm(R,b):O=R!==b,O?R!=null?j(H):f.add(H):R!==void 0&&f.has(H)?j(H):p.protectedKeys[H]=!0}p.prevProp=m,p.prevResolvedValues=U,p.isActive&&(g={...g,...U}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(P&&C)||L)&&d.push(...M.map(H=>({animation:H,options:{type:h}})))}if(f.size){const x={};f.forEach(h=>{const p=e.getBaseTarget(h),m=e.getValue(h);m&&(m.liveStyle=!0),x[h]=p??null}),d.push({animation:x})}let v=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Xd(),r=!0}}}function nT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sm(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xd(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class cn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rT extends cn{constructor(t){super(t),t.animationState||(t.animationState=tT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let oT=0;class iT extends cn{constructor(){super(...arguments),this.id=oT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sT={animation:{Feature:rT},exit:{Feature:iT}},nt={x:!1,y:!1};function dg(){return nt.x||nt.y}function aT(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const i=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function fg(e,t){const n=aT(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Yd(e){return t=>{t.pointerType==="touch"||dg()||e(t)}}function lT(e,t,n={}){const[r,o,i]=fg(e,n),s=Yd(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=Yd(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ju=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Br=new WeakSet;function Qd(e){return t=>{t.key==="Enter"&&e(t)}}function aa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uT=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Qd(()=>{if(Br.has(n))return;aa(n,"down");const o=Qd(()=>{aa(n,"up")}),i=()=>aa(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},cT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dT(e){return cT.has(e.tagName)||e.tabIndex!==-1}const pg=(e,t)=>t?e===t?!0:pg(e,t.parentElement):!1;function qd(e){return Ju(e)&&!dg()}function fT(e,t,n={}){const[r,o,i]=fg(e,n),s=a=>{const l=a.currentTarget;if(!qd(a)||Br.has(l))return;Br.add(l);const u=t(a),c=(g,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!qd(g)||!Br.has(l))&&(Br.delete(l),u&&u(g,{success:y}))},d=g=>{c(g,n.useGlobalTarget||pg(l,g.target))},f=g=>{c(g,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{dT(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>uT(u,o),o)}),i}function pT(e){return e==="x"||e==="y"?nt[e]?null:(nt[e]=!0,()=>{nt[e]=!1}):nt.x||nt.y?null:(nt.x=nt.y=!0,()=>{nt.x=nt.y=!1})}function _o(e){return{point:{x:e.pageX,y:e.pageY}}}const hT=e=>t=>Ju(t)&&e(t,_o(t));function Po(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Jr(e,t,n,r){return Po(e,t,hT(n),r)}const Zd=(e,t)=>Math.abs(e-t);function mT(e,t){const n=Zd(e.x,t.x),r=Zd(e.y,t.y);return Math.sqrt(n**2+r**2)}class hg{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!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=ua(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=mT(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:y}=d,{timestamp:v}=ve;this.history.push({...y,timestamp:v});const{onStart:x,onMove:h}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=la(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ua(d.type==="pointercancel"?this.lastMoveEventInfo:la(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,x),y&&y(d,x)},!Ju(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=_o(t),a=la(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=ve;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,ua(a,this.history)),this.removeListeners=jo(Jr(this.contextWindow,"pointermove",this.handlePointerMove),Jr(this.contextWindow,"pointerup",this.handlePointerUp),Jr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),on(this.updatePoint)}}function la(e,t){return t?{point:t(e.point)}:e}function Jd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ua({point:e},t){return{point:e,delta:Jd(e,mg(t)),offset:Jd(e,gT(t)),velocity:vT(t,.1)}}function gT(e){return e[0]}function mg(e){return e[e.length-1]}function vT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=mg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Rt(t)));)n--;if(!r)return{x:0,y:0};const i=Nt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const gg=1e-4,yT=1-gg,wT=1+gg,vg=.01,xT=0-vg,TT=0+vg;function He(e){return e.max-e.min}function ST(e,t,n){return Math.abs(e-t)<=n}function ef(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=He(n)/He(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yT&&e.scale<=wT||isNaN(e.scale))&&(e.scale=1),(e.translate>=xT&&e.translate<=TT||isNaN(e.translate))&&(e.translate=0)}function eo(e,t,n,r){ef(e.x,t.x,n.x,r?r.originX:void 0),ef(e.y,t.y,n.y,r?r.originY:void 0)}function tf(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function ET(e,t,n){tf(e.x,t.x,n.x),tf(e.y,t.y,n.y)}function nf(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function to(e,t,n){nf(e.x,t.x,n.x),nf(e.y,t.y,n.y)}function CT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function rf(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 PT(e,{top:t,left:n,bottom:r,right:o}){return{x:rf(e.x,n,o),y:rf(e.y,t,r)}}function of(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=mr(t.min,t.max-r,e.min):r>o&&(n=mr(e.min,e.max-o,t.min)),Ot(0,1,n)}function RT(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 kl=.35;function NT(e=kl){return e===!1?e=0:e===!0&&(e=kl),{x:sf(e,"left","right"),y:sf(e,"top","bottom")}}function sf(e,t,n){return{min:af(e,t),max:af(e,n)}}function af(e,t){return typeof e=="number"?e:e[t]||0}const lf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:lf(),y:lf()}),uf=()=>({min:0,max:0}),se=()=>({x:uf(),y:uf()});function Xe(e){return[e("x"),e("y")]}function yg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function MT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function bT(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 ca(e){return e===void 0||e===1}function Al({scale:e,scaleX:t,scaleY:n}){return!ca(e)||!ca(t)||!ca(n)}function mn(e){return Al(e)||wg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wg(e){return cf(e.x)||cf(e.y)}function cf(e){return e&&e!=="0%"}function Ji(e,t,n){const r=e-n,o=t*r;return n+o}function df(e,t,n,r,o){return o!==void 0&&(e=Ji(e,o,r)),Ji(e,n,r)+t}function Rl(e,t=0,n=1,r,o){e.min=df(e.min,t,n,r,o),e.max=df(e.max,t,n,r,o)}function xg(e,{x:t,y:n}){Rl(e.x,t.translate,t.scale,t.originPoint),Rl(e.y,n.translate,n.scale,n.originPoint)}const ff=.999999999999,pf=1.0000000000001;function LT(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aff&&(t.x=1),t.yff&&(t.y=1)}function qn(e,t){e.min=e.min+t,e.max=e.max+t}function hf(e,t,n,r,o=.5){const i=ee(e.min,e.max,o);Rl(e,t,n,i,r)}function Zn(e,t){hf(e.x,t.x,t.scaleX,t.scale,t.originX),hf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tg(e,t){return yg(bT(e.getBoundingClientRect(),t))}function DT(e,t,n){const r=Tg(e,n),{scroll:o}=t;return o&&(qn(r.x,o.offset.x),qn(r.y,o.offset.y)),r}const Sg=({current:e})=>e?e.ownerDocument.defaultView:null,OT=new WeakMap;class jT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=se(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_o(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:g,onDragStart:y}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pT(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(x=>{let h=this.getAxisMotionValue(x).get()||0;if(vt.test(h)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[x];m&&(h=He(m)*(parseFloat(h)/100))}}this.originPoint[x]=h}),y&&Y.postRender(()=>y(c,d)),Cl(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:y,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(g&&this.currentDirection===null){this.currentDirection=_T(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),v&&v(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Xe(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 hg(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Sg(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Y.postRender(()=>i(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!oi(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=CT(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Yn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=PT(o.layoutBox,n):this.constraints=!1,this.elastic=NT(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xe(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=RT(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Yn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=DT(r,o.root,this.visualElement.getTransformPagePoint());let s=kT(o.layout.layoutBox,i);if(n){const a=n(MT(s));this.hasMutatedConstraints=!!a,a&&(s=yg(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Xe(c=>{if(!oi(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,g=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Cl(this.visualElement,t),r.start(Xu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Xe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xe(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(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Xe(n=>{const{drag:r}=this.getProps();if(!oi(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ee(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Xe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=AT({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(s=>{if(!oi(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ee(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;OT.set(this.visualElement,this);const t=this.visualElement.current,n=Jr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Yn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Y.read(r);const s=Po(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Xe(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(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=kl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function oi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _T(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IT extends cn{constructor(t){super(t),this.removeGroupControls=Ue,this.removeListeners=Ue,this.controls=new jT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ue}unmount(){this.removeGroupControls(),this.removeListeners()}}const mf=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class VT extends cn{constructor(){super(...arguments),this.removePointerDownListener=Ue}onPointerDown(t){this.session=new hg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:mf(t),onStart:mf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Y.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Jr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Es=w.createContext(null);function FT(){const e=w.useContext(Es);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=w.useId();w.useEffect(()=>r(o),[]);const i=w.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}const ec=w.createContext({}),Eg=w.createContext({}),Si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Dr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=gf(e,t.target.x),r=gf(e,t.target.y);return`${n}% ${r}%`}},zT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=sn.parse(e);if(o.length>5)return r;const i=sn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ee(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},es={};function BT(e){Object.assign(es,e)}const{schedule:tc,cancel:vP}=Cm(queueMicrotask,!1);class UT extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;BT($T),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Y.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cg(e){const[t,n]=FT(),r=w.useContext(ec);return T.jsx(UT,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Eg),isPresent:t,safeToRemove:n})}const $T={borderRadius:{...Dr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dr,borderTopRightRadius:Dr,borderBottomLeftRadius:Dr,borderBottomRightRadius:Dr,boxShadow:zT},Pg=["TopLeft","TopRight","BottomLeft","BottomRight"],HT=Pg.length,vf=e=>typeof e=="string"?parseFloat(e):e,yf=e=>typeof e=="number"||D.test(e);function WT(e,t,n,r,o,i){o?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,KT(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,GT(r))):i&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(mr(e,t,r))}function xf(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){xf(e.x,t.x),xf(e.y,t.y)}function Tf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Sf(e,t,n,r,o){return e-=t,e=Ji(e,1/n,r),o!==void 0&&(e=Ji(e,1/o,r)),e}function XT(e,t=0,n=1,r=.5,o,i=e,s=e){if(vt.test(t)&&(t=parseFloat(t),t=ee(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ee(i.min,i.max,r);e===i&&(a-=t),e.min=Sf(e.min,t,n,a,o),e.max=Sf(e.max,t,n,a,o)}function Ef(e,t,[n,r,o],i,s){XT(e,t[n],t[r],t[o],t.scale,i,s)}const YT=["x","scaleX","originX"],QT=["y","scaleY","originY"];function Cf(e,t,n,r){Ef(e.x,t,YT,n?n.x:void 0,r?r.x:void 0),Ef(e.y,t,QT,n?n.y:void 0,r?r.y:void 0)}function Pf(e){return e.translate===0&&e.scale===1}function Ag(e){return Pf(e.x)&&Pf(e.y)}function kf(e,t){return e.min===t.min&&e.max===t.max}function qT(e,t){return kf(e.x,t.x)&&kf(e.y,t.y)}function Af(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rg(e,t){return Af(e.x,t.x)&&Af(e.y,t.y)}function Rf(e){return He(e.x)/He(e.y)}function Nf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZT{constructor(){this.members=[]}add(t){Yu(this.members,t),t.scheduleRender()}remove(t){if(Qu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;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:o}=t.options;o===!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 JT(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:g,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const eS=(e,t)=>e.depth-t.depth;class tS{constructor(){this.children=[],this.isDirty=!1}add(t){Yu(this.children,t),this.isDirty=!0}remove(t){Qu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eS),this.isDirty=!1,this.children.forEach(t)}}function Ei(e){const t=Ce(e)?e.get():e;return Fx(t)?t.toValue():t}function nS(e,t){const n=yt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(on(r),e(i-t))};return Y.read(r,!0),()=>on(r)}function rS(e){return e instanceof SVGElement&&e.tagName!=="svg"}function oS(e,t,n){const r=Ce(e)?e:Co(e);return r.start(Xu("",r,t,n)),r.animation}const gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ur=typeof window<"u"&&window.MotionDebug!==void 0,da=["","X","Y","Z"],iS={visibility:"hidden"},Mf=1e3;let sS=0;function fa(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ng(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ng(r)}function Mg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=sS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ur&&(gn.totalNodes=gn.resolvedTargetDeltas=gn.recalculatedProjection=0),this.nodes.forEach(uS),this.nodes.forEach(hS),this.nodes.forEach(mS),this.nodes.forEach(cS),Ur&&window.MotionDebug.record(gn)},this.resolvedRelativeTargetAt=0,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=nS(f,250),Si.hasAnimatedSinceResize&&(Si.hasAnimatedSinceResize=!1,this.nodes.forEach(Lf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||xS,{onLayoutAnimationStart:x,onLayoutAnimationComplete:h}=c.getProps(),p=!this.targetLayout||!Rg(this.targetLayout,y)||g,m=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const S={...Ou(v,"layout"),onPlay:x,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Lf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}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,on(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(gS),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ng(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 E=S/1e3;Df(d.x,s.x,E),Df(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(to(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yS(this.relativeTarget,this.relativeTargetOrigin,f,E),m&&qT(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=se()),Ge(m,this.relativeTarget)),v&&(this.animationValues=c,WT(c,u,this.latestValues,E,p,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(on(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{Si.hasAnimatedSinceResize=!0,this.currentAnimation=oS(0,Mf,{...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(Mf),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&&bg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||se();const d=He(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=He(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ge(a,l),Zn(a,c),eo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ZT),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}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&fa("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(bf),this.root.sharedNodes.clear()}}}function aS(e){e.updateLayout()}function lS(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:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Xe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=He(f);f.min=r[d].min,f.max=f.min+g}):bg(i,n.layoutBox,r)&&Xe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=He(r[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=Qn();eo(a,r,n.layoutBox);const l=Qn();s?eo(l,e.applyTransform(o,!0),n.measuredBox):eo(l,r,n.layoutBox);const u=!Ag(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const y=se();to(y,n.layoutBox,f.layoutBox);const v=se();to(v,r,g.layoutBox),Rg(y,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,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 uS(e){Ur&&gn.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 cS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dS(e){e.clearSnapshot()}function bf(e){e.clearMeasurements()}function fS(e){e.isLayoutDirty=!1}function pS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hS(e){e.resolveTargetDelta()}function mS(e){e.calcProjection()}function gS(e){e.resetSkewAndRotation()}function vS(e){e.removeLeadSnapshot()}function Df(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Of(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function yS(e,t,n,r){Of(e.x,t.x,n.x,r),Of(e.y,t.y,n.y,r)}function wS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xS={duration:.45,ease:[.4,0,.1,1]},jf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_f=jf("applewebkit/")&&!jf("chrome/")?Math.round:Ue;function If(e){e.min=_f(e.min),e.max=_f(e.max)}function TS(e){If(e.x),If(e.y)}function bg(e,t,n){return e==="position"||e==="preserve-aspect"&&!ST(Rf(t),Rf(n),.2)}function SS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ES=Mg({attachResizeListener:(e,t)=>Po(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pa={current:void 0},Lg=Mg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pa.current){const e=new ES({});e.mount(window),e.setOptions({layoutScroll:!0}),pa.current=e}return pa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),CS={pan:{Feature:VT},drag:{Feature:IT,ProjectionNode:Lg,MeasureLayout:Cg}};function Vf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Y.postRender(()=>i(t,_o(t)))}class PS extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=lT(t,n=>(Vf(this.node,n,"Start"),r=>Vf(this.node,r,"End"))))}unmount(){}}class kS extends cn{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=jo(Po(this.node.current,"focus",()=>this.onFocus()),Po(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ff(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Y.postRender(()=>i(t,_o(t)))}class AS extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=fT(t,n=>(Ff(this.node,n,"Start"),(r,{success:o})=>Ff(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Nl=new WeakMap,ha=new WeakMap,RS=e=>{const t=Nl.get(e.target);t&&t(e)},NS=e=>{e.forEach(RS)};function MS({root:e,...t}){const n=e||document;ha.has(n)||ha.set(n,{});const r=ha.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(NS,{root:e,...t})),r[o]}function bS(e,t,n){const r=MS(t);return Nl.set(e,n),r.observe(e),()=>{Nl.delete(e),r.unobserve(e)}}const LS={some:0,all:1};class DS extends cn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:LS[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!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(),f=u?c:d;f&&f(l)};return bS(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(OS(t,n))&&this.startObserver()}unmount(){}}function OS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jS={inView:{Feature:DS},tap:{Feature:AS},focus:{Feature:kS},hover:{Feature:PS}},_S={layout:{ProjectionNode:Lg,MeasureLayout:Cg}},nc=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Cs=w.createContext({}),rc=typeof window<"u",Dg=rc?w.useLayoutEffect:w.useEffect,Og=w.createContext({strict:!1});function IS(e,t,n,r,o){var i,s;const{visualElement:a}=w.useContext(Cs),l=w.useContext(Og),u=w.useContext(Es),c=w.useContext(nc).reducedMotion,d=w.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,g=w.useContext(Eg);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&VS(d.current,n,o,g);const y=w.useRef(!1);w.useInsertionEffect(()=>{f&&y.current&&f.update(n,u)});const v=n[ag],x=w.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,v)));return Dg(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),tc.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),w.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var h;(h=window.MotionHandoffMarkAsComplete)===null||h===void 0||h.call(window,v)}),x.current=!1))}),f}function VS(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jg(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Yn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function jg(e){if(e)return e.options.allowProjection!==!1?e.projection:jg(e.parent)}function FS(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Yn(n)&&(n.current=r))},[t])}function Ps(e){return xs(e.animate)||Du.some(t=>To(e[t]))}function _g(e){return!!(Ps(e)||e.variants)}function zS(e,t){if(Ps(e)){const{initial:n,animate:r}=e;return{initial:n===!1||To(n)?n:void 0,animate:To(r)?r:void 0}}return e.inherit!==!1?t:{}}function BS(e){const{initial:t,animate:n}=zS(e,w.useContext(Cs));return w.useMemo(()=>({initial:t,animate:n}),[zf(t),zf(n)])}function zf(e){return Array.isArray(e)?e.join(" "):e}const Bf={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"]},gr={};for(const e in Bf)gr[e]={isEnabled:t=>Bf[e].some(n=>!!t[n])};function US(e){for(const t in e)gr[t]={...gr[t],...e[t]}}const $S=Symbol.for("motionComponentSymbol");function HS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&US(e);function i(a,l){let u;const c={...w.useContext(nc),...a,layoutId:WS(a)},{isStatic:d}=c,f=BS(a),g=r(a,d);if(!d&&rc){KS();const y=GS(c);u=y.MeasureLayout,f.visualElement=IS(o,g,c,t,y.ProjectionNode)}return T.jsxs(Cs.Provider,{value:f,children:[u&&f.visualElement?T.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,FS(g,f.visualElement,l),g,d,f.visualElement)]})}const s=w.forwardRef(i);return s[$S]=o,s}function WS({layoutId:e}){const t=w.useContext(ec).id;return t&&e!==void 0?t+"-"+e:e}function KS(e,t){w.useContext(Og).strict}function GS(e){const{drag:t,layout:n}=gr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const XS=["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 oc(e){return typeof e!="string"||e.includes("-")?!1:!!(XS.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ig(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Vg=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 Fg(e,t,n,r){Ig(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Vg.has(o)?o:Zu(o),t.attrs[o])}function zg(e,{layout:t,layoutId:n}){return Dn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!es[e]||e==="opacity")}function ic(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ce(o[s])||t.style&&Ce(t.style[s])||zg(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Bg(e,t,n){const r=ic(e,t,n);for(const o in e)if(Ce(e[o])||Ce(t[o])){const i=Lo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function sc(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function YS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:QS(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Ug=e=>(t,n)=>{const r=w.useContext(Cs),o=w.useContext(Es),i=()=>YS(e,t,r,o);return n?i():sc(i)};function QS(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ei(i[f]);let{initial:s,animate:a}=e;const l=Ps(e),u=_g(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;if(d&&typeof d!="boolean"&&!xs(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g({style:{},transform:{},transformOrigin:{},vars:{}}),$g=()=>({...ac(),attrs:{}}),Hg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZS=Lo.length;function JS(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",oE={useVisualState:Ug({scrapeMotionValuesFromProps:Bg,createRenderState:$g,onMount:(e,t,{renderState:n,latestValues:r})=>{Y.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Y.render(()=>{uc(n,r,cc(t.tagName),e.transformTemplate),Fg(t,n)})}})},iE={useVisualState:Ug({scrapeMotionValuesFromProps:ic,createRenderState:ac})};function Wg(e,t,n){for(const r in t)!Ce(t[r])&&!zg(r,n)&&(e[r]=t[r])}function sE({transformTemplate:e},t){return w.useMemo(()=>{const n=ac();return lc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function aE(e,t){const n=e.style||{},r={};return Wg(r,n,e),Object.assign(r,sE(e,t)),r}function lE(e,t){const n={},r=aE(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const uE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ts(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uE.has(e)}let Kg=e=>!ts(e);function cE(e){e&&(Kg=t=>t.startsWith("on")?!ts(t):e(t))}try{cE(require("@emotion/is-prop-valid").default)}catch{}function dE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Kg(o)||n===!0&&ts(o)||!t&&!ts(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function fE(e,t,n,r){const o=w.useMemo(()=>{const i=$g();return uc(i,t,cc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wg(i,e.style,e),o.style={...i,...o.style}}return o}function pE(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(oc(n)?fE:lE)(r,i,s,n),u=dE(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=w.useMemo(()=>Ce(d)?d.get():d,[d]);return w.createElement(n,{...c,children:f})}}function hE(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...oc(r)?oE:iE,preloadedFeatures:e,useRender:pE(o),createVisualElement:t,Component:r};return HS(s)}}const Ml={current:null},Gg={current:!1};function mE(){if(Gg.current=!0,!!rc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ml.current=e.matches;e.addListener(t),t()}else Ml.current=!1}function gE(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ce(o))e.addValue(r,o);else if(Ce(i))e.addValue(r,Co(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,Co(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $f=new WeakMap,vE=[...Fm,Se,sn],yE=e=>vE.find(Vm(e)),Hf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wE{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=yt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Gg.current||mE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ml.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$f.delete(this.current),this.projection&&this.projection.unmount(),on(this.notifyUpdate),on(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Dn.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gr){const n=gr[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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=Co(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Om(o)||Dm(o))?o=parseFloat(o):!yE(o)&&sn.test(n)&&(o=Gm(t,n)),this.setBaseTarget(t,Ce(o)?o.get():o)),Ce(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=bu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ce(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Xg extends wE{constructor(){super(...arguments),this.KeyframeResolver=Xm}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xE(e){return window.getComputedStyle(e)}class TE extends Xg{constructor(){super(...arguments),this.type="html",this.renderInstance=Ig}readValueFromInstance(t,n){if(Dn.has(n)){const r=Uu(n);return r&&r.default||0}else{const r=xE(t),o=(_m(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tg(t,n)}build(t,n,r){lc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ic(t,n,r)}}class SE extends Xg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dn.has(n)){const r=Uu(n);return r&&r.default||0}return n=Vg.has(n)?n:Zu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Bg(t,n,r)}build(t,n,r){uc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Fg(t,n,r,o)}mount(t){this.isSVGTag=cc(t.tagName),super.mount(t)}}const EE=(e,t)=>oc(e)?new SE(t):new TE(t,{allowProjection:e!==w.Fragment}),CE=hE({...sT,...jS,...CS,..._S},EE),jt=rw(CE);class PE extends w.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 kE({children:e,isPresent:t}){const n=w.useId(),r=w.useRef(null),o=w.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=w.useContext(nc);return w.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; height: ${a}px !important; top: ${l}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),T.jsx(PE,{isPresent:t,childRef:r,sizeRef:o,children:w.cloneElement(e,{ref:r})})}const AE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=sc(RE),l=w.useId(),u=w.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=w.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return w.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),w.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(kE,{isPresent:n,children:e})),T.jsx(Es.Provider,{value:c,children:e})};function RE(){return new Map}const ii=e=>e.key||"";function Wf(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const NE=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=w.useMemo(()=>Wf(e),[e]),l=a.map(ii),u=w.useRef(!0),c=w.useRef(a),d=sc(()=>new Map),[f,g]=w.useState(a),[y,v]=w.useState(a);Dg(()=>{u.current=!1,c.current=a;for(let p=0;p{const m=ii(p),S=a===y||l.includes(m),E=()=>{if(d.has(m))d.set(m,!0);else return;let P=!0;d.forEach(C=>{C||(P=!1)}),P&&(h==null||h(),v(c.current),o&&o())};return T.jsx(AE,{isPresent:S,initial:!u.current||r?void 0:!1,custom:S?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:S?void 0:E,children:p},m)})})};function Yg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const t=LE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(dc);return a[0]===""&&a.length!==1&&a.shift(),qg(a,t)||bE(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},qg=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(dc);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Kf=/^\[(.+)\]$/,bE=e=>{if(Kf.test(e)){const t=Kf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},LE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return OE(Object.entries(e.classGroups),n).forEach(([i,s])=>{bl(s,r,i,t)}),r},bl=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Gf(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(DE(o)){bl(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{bl(s,Gf(t,i),n,r)})})},Gf=(e,t)=>{let n=e;return t.split(dc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},DE=e=>e.isThemeGetter,OE=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,jE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Zg="!",_E=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const l=[];let u=0,c=0,d;for(let x=0;xc?d-c:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:s}):s},IE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},VE=e=>({cache:jE(e.cacheSize),parseClassName:_E(e),...ME(e)}),FE=/\s+/,zE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(FE);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}=n(u);let y=!!g,v=r(y?f.substring(0,g):f);if(!v){if(!y){a=u+(a.length>0?" "+a:a);continue}if(v=r(f),!v){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=IE(c).join(":"),h=d?x+Zg:x,p=h+v;if(i.includes(p))continue;i.push(p);const m=o(v,y);for(let S=0;S0?" "+a:a)}return a};function BE(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=VE(u),r=n.cache.get,o=n.cache.set,i=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=zE(l,n);return o(l,c),c}return function(){return i(BE.apply(null,arguments))}}const K=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ev=/^\[(?:([a-z-]+):)?(.+)\]$/i,$E=/^\d+\/\d+$/,HE=new Set(["px","full","screen"]),WE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,XE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>sr(e)||HE.has(e)||$E.test(e),Ft=e=>Sr(e,"length",rC),sr=e=>!!e&&!Number.isNaN(Number(e)),ma=e=>Sr(e,"number",sr),Or=e=>!!e&&Number.isInteger(Number(e)),QE=e=>e.endsWith("%")&&sr(e.slice(0,-1)),V=e=>ev.test(e),zt=e=>WE.test(e),qE=new Set(["length","size","percentage"]),ZE=e=>Sr(e,qE,tv),JE=e=>Sr(e,"position",tv),eC=new Set(["image","url"]),tC=e=>Sr(e,eC,iC),nC=e=>Sr(e,"",oC),jr=()=>!0,Sr=(e,t,n)=>{const r=ev.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},rC=e=>KE.test(e)&&!GE.test(e),tv=()=>!1,oC=e=>XE.test(e),iC=e=>YE.test(e),sC=()=>{const e=K("colors"),t=K("spacing"),n=K("blur"),r=K("brightness"),o=K("borderColor"),i=K("borderRadius"),s=K("borderSpacing"),a=K("borderWidth"),l=K("contrast"),u=K("grayscale"),c=K("hueRotate"),d=K("invert"),f=K("gap"),g=K("gradientColorStops"),y=K("gradientColorStopPositions"),v=K("inset"),x=K("margin"),h=K("opacity"),p=K("padding"),m=K("saturate"),S=K("scale"),E=K("sepia"),P=K("skew"),C=K("space"),k=K("translate"),L=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",V,t],I=()=>[V,t],ke=()=>["",St,Ft],j=()=>["auto",sr,V],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],b=()=>["","0",V],O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[sr,V];return{cacheSize:500,separator:":",theme:{colors:[jr],spacing:[St,Ft],blur:["none","",zt,V],brightness:z(),borderColor:[e],borderRadius:["none","","full",zt,V],borderSpacing:I(),borderWidth:ke(),contrast:z(),grayscale:b(),hueRotate:z(),invert:b(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[QE,Ft],inset:U(),margin:U(),opacity:z(),padding:I(),saturate:z(),scale:z(),sepia:b(),skew:z(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[zt]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),V]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Or,V]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:b()}],shrink:[{shrink:b()}],order:[{order:["first","last","none",Or,V]}],"grid-cols":[{"grid-cols":[jr]}],"col-start-end":[{col:["auto",{span:["full",Or,V]},V]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[jr]}],"row-start-end":[{row:["auto",{span:[Or,V]},V]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[zt]},zt]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zt,Ft]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ma]}],"font-family":[{font:[jr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",sr,ma]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",St,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",St,Ft]}],"underline-offset":[{"underline-offset":["auto",St,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),JE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:pe()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[St,V]}],"outline-w":[{outline:[St,Ft]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[St,Ft]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zt,nC]}],"shadow-color":[{shadow:[jr]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",zt,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[m]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Or,V]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[St,Ft,ma]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},aC=UE(sC);function at(...e){return aC(Qg(e))}function Xf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nv(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Xf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{const{children:n,...r}=e,o=w.Children.toArray(n),i=o.find(uC);if(i){const s=i.props.children,a=o.map(l=>l===i?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:l);return T.jsx(Ll,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,a):null})}return T.jsx(Ll,{...r,ref:t,children:n})});ko.displayName="Slot";var Ll=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const o=dC(n);return w.cloneElement(n,{...cC(r,n.props),ref:t?nv(t,o):o})}return w.Children.count(n)>1?w.Children.only(null):null});Ll.displayName="SlotClone";var lC=({children:e})=>T.jsx(T.Fragment,{children:e});function uC(e){return w.isValidElement(e)&&e.type===lC}function cC(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function dC(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Yf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qf=Qg,rv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=Yf(c)||Yf(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...g}=c;return Object.entries(g).every(y=>{let[v,x]=y;return Array.isArray(x)?x.includes({...i,...a}[v]):{...i,...a}[v]===x})?[...u,d,f]:u},[]);return Qf(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},fC=rv("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"}}),Io=ce.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?ko:"button";return T.jsx(s,{className:at(fC({variant:t,size:n,className:e})),ref:i,...o})});Io.displayName="Button";const pC=()=>{const[e,t]=w.useState(!1);w.useEffect(()=>{const r=()=>{window.scrollY>50?t(!0):t(!1)};return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]);const n=()=>{window.location.href="tel:+528005125015"};return T.jsx(jt.header,{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-white shadow-md",initial:{y:-100},animate:{y:0},transition:{duration:.6},children:T.jsx("div",{className:"container mx-auto px-4",children:T.jsxs("div",{className:"relative flex items-center justify-center h-20",children:[" ",T.jsx("div",{className:"absolute left-1/2 -translate-x-1/2",children:T.jsx("img",{src:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/efb9968d4961031978630d97858e0165.png",alt:"Hoteles Xcaret logo",className:"h-12 md:h-14 object-contain"})}),T.jsx(jt.div,{className:"absolute right-4 md:right-0",whileHover:{scale:1.05},whileTap:{scale:.95},children:T.jsx(Io,{onClick:n,className:"bg-orange-500 hover:bg-orange-600 text-white font-['Montserrat'] font-bold px-6 py-3 rounded-md transition-all duration-300",children:"RESERVAR AHORA"})})]})})})},hC=()=>T.jsx("section",{className:"relative w-full h-screen flex items-center justify-center overflow-hidden",children:T.jsx("a",{href:"tel:+528005125015",className:"absolute inset-0 flex items-center justify-center z-10 cursor-pointer","aria-label":"Call 800 512 5015 for reservations",children:T.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/ae2406d87f3f5f9547d7b046613a69b3.jpg)"}})})}),mC=()=>T.jsx("section",{className:"w-full py-20 bg-[#fffaf5]",children:T.jsxs("div",{className:"container mx-auto px-4 max-w-6xl flex flex-col items-center",children:[" ",T.jsxs(jt.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"text-center",children:[T.jsxs("h2",{className:"font-serif font-bold text-[36px] text-[#333333] mb-10 leading-tight",children:["HOTELES XCARET ALL-FUN INCLUSIVE®",T.jsx("br",{}),"EN CANCÚN Y RIVIERA MAYA"]}),T.jsxs("div",{className:"space-y-6 text-[#333333] max-w-4xl mx-auto",children:[" ",T.jsxs("p",{className:"font-sans font-normal text-[16px] leading-relaxed mb-6",children:["Agregamos la diversión a los ",T.jsx("span",{className:"font-bold",children:'hoteles "Todo Incluido"'})," con nuestro All-Fun Inclusive®, un concepto de turismo sostenible con más de 200 experiencias."]}),T.jsxs("p",{className:"font-sans font-normal text-[16px] leading-relaxed mb-6",children:["El principal beneficio es que al hospedarte en ",T.jsx("span",{className:"font-bold",children:"Hoteles Xcaret"})," tienes acceso ilimitado a los parques de Grupo Xcaret, así como boletos de ferry de Cancún a Isla Mujeres y de Playa del Carmen a Cozumel con Xcaret Xailing. La transportación ida y vuelta a los parques y al aeropuerto es parte de este concepto único."]}),T.jsxs("p",{className:"font-sans font-normal text-[16px] leading-relaxed mb-6",children:["Además, contamos con un ",T.jsx("span",{className:"font-bold",children:"Colectivo Gastronómico"})," conformado por celebrity chefs para deleitarte con experiencias culinarias premium."]}),T.jsxs("p",{className:"font-sans font-normal text-[16px] leading-relaxed mb-6",children:["El concepto ",T.jsx("span",{className:"font-bold",children:"All-Fun Inclusive®"})," tiene matices distintos en cada hotel y según la categoría elegida."]})]})]})]})}),gC=({hotel:e,index:t})=>{const n=()=>{window.location.href="tel:+528005125015"},r=t===0;return T.jsxs(jt.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:t*.2},className:"bg-white rounded-lg overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300",children:[T.jsx("div",{className:"relative h-64 overflow-hidden group",children:T.jsx("img",{src:e.image,alt:`${e.title} - Vista de las instalaciones`,className:"w-full h-full object-cover transform group-hover:scale-110 transition-transform duration-500"})}),T.jsxs("div",{className:"p-6 space-y-4",children:[T.jsx("div",{className:"flex justify-center mb-4",children:T.jsx("img",{src:e.logo,alt:`Logo de ${e.title}`,className:"h-20 object-contain"})}),T.jsx("h3",{className:at("text-center text-gray-800",r?"font-serif text-2xl font-bold":"font-serif font-bold text-2xl"),children:e.title}),T.jsx("p",{className:at("text-center text-gray-600 uppercase",r?"font-sans text-sm":"text-sm font-medium"),children:e.subtitle}),T.jsx("p",{className:at("text-gray-700 leading-relaxed text-center",r?"font-sans text-base":""),children:e.description}),T.jsx("div",{className:"pt-4 flex justify-center",children:T.jsx(Io,{className:at("w-full text-white font-bold transition-all duration-300",r?"bg-[#B3550E] hover:bg-opacity-90":"bg-amber-700 hover:bg-amber-800"),onClick:n,children:"RESERVAR"})})]})]})},vC=()=>{const e=[{image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/63f44d61cf09e1b14882c2e9da800218.webp",logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/0f7736e4cc3cad0a0e261b5da94110e4.png",title:"HOTEL XCARET MÉXICO",subtitle:'"LO MEJOR DE MÉXICO INCLUIDO"',description:"Magnífico hotel en Riviera Maya, que evoluciona con nuevos espacios, hasta 20 restaurantes, diversión para toda la familia y galardonado con Cinco Diamantes por la AAA."},{image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/8846d64cc9c7876d9b45a69b90c7c0ab.webp",logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/e97a80cbd327f336305ebdc00a808e8d.png",title:"HOTEL XCARET ARTE",subtitle:'"LA EXPERIENCIA DE VIVIR EL ARTE MEXICANO"',description:"Un homenaje a los mejores artistas de México en un resort All-Fun Inclusive® solo para adultos, que da la bienvenida a jóvenes mayores de 16 años."},{image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/eb9afafba2b71303d106084ea381078f.webp",logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/c59c4da0b5802c8704928d9a3b2174e7.png",title:"LA CASA DE LA PLAYA",subtitle:'"LO MEJOR DE UNA CASA CON LO MEJOR DE UN HOTEL "',description:"Un hotel boutique sólo para adultos, en el que la calidad, la belleza del lugar y la calidez presentan a México de manera íntima y sublime."}];return T.jsx("section",{className:"w-full py-20 bg-white",children:T.jsx("div",{className:"container mx-auto px-4",children:T.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto",children:e.map((t,n)=>T.jsx(gC,{hotel:t,index:n},n))})})})},yC=()=>{const e=()=>{window.location.href="tel:+528005125015"};return T.jsxs("section",{className:"w-full pt-20 bg-[#fffaf5]",children:[T.jsx("div",{className:"container mx-auto px-4 flex flex-col items-center",children:T.jsxs(jt.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"text-center space-y-8 w-full flex flex-col items-center",children:[T.jsx("h2",{className:"font-[Georgia] font-bold text-[28px] text-gray-800 text-center",children:"BEYOND ALL-FUN INCLUSIVE®"}),T.jsx("p",{className:"font-sans text-[16px] text-gray-700 leading-relaxed max-w-[600px] text-center mx-auto",children:"Paquetes exclusivos al reservar directo en Hoteles Xcaret, con énfasis en gastronomía, romance o wellness para unos días memorables en el paraíso."}),T.jsx(jt.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"pt-4",children:T.jsx(Io,{onClick:e,className:"bg-transparent border border-black text-black px-10 py-6 text-lg font-bold rounded-md hover:bg-black hover:text-white transition-all duration-300",children:"RESERVAR"})})]})}),T.jsx("div",{className:"mt-10 w-full",children:T.jsx("img",{src:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/7808c821e41f04f185aab89b34e1578e.webp",alt:"Montage showing spa, gastronomy, and pool experiences",className:"w-full h-auto object-cover block"})})]})};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ov=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var xC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TC=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>w.createElement("svg",{ref:l,...xC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ov("lucide",o),...a},[...s.map(([u,c])=>w.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fc=(e,t)=>{const n=w.forwardRef(({className:r,...o},i)=>w.createElement(TC,{ref:i,iconNode:t,className:ov(`lucide-${wC(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qf=fc("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zf=fc("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SC=fc("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),EC=()=>{const[e,t]=w.useState(0),n=[{id:1,logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/b5477a9195be3b57f842c7e328036bec.png",hotelName:"HOTEL XCARET MÉXICO",suiteTitle:"SUITE RÍO",description:"Disfruta de una vista privilegiada al río desde tu balcón. Estas suites combinan el confort moderno con detalles artesanales mexicanos, ofreciendo un refugio de paz y conexión con la naturaleza.",image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/e2f67ad07eb54c7f9a82d05872a155aa.webp"},{id:2,logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/9d0810ccc24a5723ffc62ff6cd84efde.png",hotelName:"HOTEL XCARET ARTE",suiteTitle:"SUITE RÍO ADULTOS",description:"900 suites inspiradas en el México artesanal y artístico, exquisitas por su diseño mexicano contemporáneo y artesanías creadas por talento nacional.",image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/2f1643f7f375c89d12415f71cbec4f11.png"},{id:3,logo:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/a0caccb0c28c4516d3febda557d6e29b.png",hotelName:"LA CASA DE LA PLAYA",suiteTitle:"LA CASA DE LA PLAYA",description:"63 suites frente al Caribe te consentirán con la calidez de una casa y el lujo de un hotel boutique. Únicas por su diseño eco-integrador y amenidades premium.",image:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/a07f4ea7de998da3b01784a12face974.png"}],r=()=>{t(s=>(s+1)%n.length)},o=()=>{t(s=>(s-1+n.length)%n.length)},i=()=>{window.location.href="tel:+528005125015"};return T.jsxs("section",{className:"relative w-full py-20 overflow-hidden",children:[T.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url('https://images.unsplash.com/photo-1597459429022-36402a5de6d3')",opacity:.7,filter:"blur(8px)",transform:"scale(1.1)"}}),T.jsxs("div",{className:"relative z-10 container mx-auto px-4",children:[T.jsx("h2",{className:"font-[Georgia] font-bold text-[28px] text-center mb-10 mt-[60px] text-gray-900 drop-shadow-sm",children:"NUESTRAS SUITES"}),T.jsxs("div",{className:"max-w-5xl mx-auto relative group",children:[T.jsx("div",{className:"bg-white shadow-xl rounded-lg overflow-hidden min-h-[500px] flex flex-col md:flex-row",children:T.jsx(NE,{mode:"wait",children:T.jsxs(jt.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.4},className:"flex flex-col md:flex-row w-full h-full",children:[T.jsxs("div",{className:"w-full md:w-1/2 p-10 flex flex-col justify-center items-start space-y-6",children:[n[e].logo?T.jsx("img",{src:n[e].logo,alt:"Hotel Logo",className:"h-auto max-w-[140px] max-h-[80px] object-contain mb-2"}):T.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center text-xs text-gray-500 mb-2",children:"LOGO"}),T.jsx("h3",{className:"font-sans text-[14px] uppercase tracking-wide text-[#333] font-bold",children:n[e].hotelName}),T.jsx("h2",{className:"font-[Georgia] text-[24px] text-gray-900 font-bold leading-tight",children:n[e].suiteTitle}),T.jsx("p",{className:"font-sans text-[16px] text-gray-600 leading-relaxed",children:n[e].description}),T.jsx(jt.div,{whileHover:{scale:1.05},whileTap:{scale:.95},children:T.jsx(Io,{onClick:i,className:"bg-transparent border border-black text-black px-8 py-2 rounded-none hover:bg-black hover:text-white transition-colors duration-300 mt-4",children:"RESERVAR"})})]}),T.jsx("div",{className:"w-full md:w-1/2 h-64 md:h-auto relative",children:T.jsx("img",{src:n[e].image,alt:n[e].suiteTitle,className:"w-full h-full object-cover absolute inset-0"})})]},e)})}),T.jsx("button",{onClick:o,className:"absolute left-[-50px] top-1/2 -translate-y-1/2 p-2 rounded-full bg-white/80 hover:bg-white text-gray-800 shadow-md transition-all hidden lg:flex","aria-label":"Previous slide",children:T.jsx(qf,{size:24})}),T.jsx("button",{onClick:r,className:"absolute right-[-50px] top-1/2 -translate-y-1/2 p-2 rounded-full bg-white/80 hover:bg-white text-gray-800 shadow-md transition-all hidden lg:flex","aria-label":"Next slide",children:T.jsx(Zf,{size:24})}),T.jsxs("div",{className:"absolute inset-x-0 top-1/2 -translate-y-1/2 flex justify-between px-4 lg:hidden pointer-events-none",children:[T.jsx("button",{onClick:o,className:"p-2 rounded-full bg-white/80 shadow-md pointer-events-auto",children:T.jsx(qf,{size:20})}),T.jsx("button",{onClick:r,className:"p-2 rounded-full bg-white/80 shadow-md pointer-events-auto",children:T.jsx(Zf,{size:20})})]}),T.jsx("div",{className:"absolute -bottom-10 left-0 right-0 flex justify-center space-x-3",children:n.map((s,a)=>T.jsx("button",{onClick:()=>t(a),className:`w-3 h-3 rounded-full transition-all duration-300 border border-gray-400 ${e===a?"bg-gray-800 scale-110":"bg-transparent hover:bg-gray-400"}`,"aria-label":`Go to slide ${a+1}`},a))})]})]})]})},CC=()=>T.jsx(jt.footer,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,ease:"easeOut"},className:"w-full bg-[#E5E1D8] py-[60px]",children:T.jsxs("div",{className:"container mx-auto px-4 flex flex-col items-center justify-center space-y-[20px]",children:[T.jsx("div",{className:"flex justify-center w-full",children:T.jsx("img",{src:"https://horizons-cdn.hostinger.com/d75e954f-8a1b-40dc-88df-1d1ff230961f/1d852aa14314ef55962a3e15689594dc.jpg",alt:"Grupo Xcaret Logo",className:"w-[180px] h-auto object-contain mix-blend-multiply"})}),T.jsx("p",{className:"font-[Georgia] text-[16px] text-[#333333] text-center",children:"Atención a Clientes MÉXICO 800 512 5015"}),T.jsx("p",{className:"font-sans text-[12px] uppercase text-[#666666] font-medium text-center",children:"© 2026 HOTELES XCARET. TODOS LOS DERECHOS RESERVADOS."})]})});function Fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function iv(e,t=[]){let n=[];function r(i,s){const a=w.createContext(s),l=n.length;n=[...n,s];const u=d=>{var h;const{scope:f,children:g,...y}=d,v=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,x=w.useMemo(()=>y,Object.values(y));return T.jsx(v.Provider,{value:x,children:g})};u.displayName=i+"Provider";function c(d,f){var v;const g=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,y=w.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,PC(o,...t)]}function PC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function kC(e){const t=e+"CollectionProvider",[n,r]=iv(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:y,children:v}=g,x=ce.useRef(null),h=ce.useRef(new Map).current;return T.jsx(o,{scope:y,itemMap:h,collectionRef:x,children:v})};s.displayName=t;const a=e+"CollectionSlot",l=ce.forwardRef((g,y)=>{const{scope:v,children:x}=g,h=i(a,v),p=Mn(y,h.collectionRef);return T.jsx(ko,{ref:p,children:x})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=ce.forwardRef((g,y)=>{const{scope:v,children:x,...h}=g,p=ce.useRef(null),m=Mn(y,p),S=i(u,v);return ce.useEffect(()=>(S.itemMap.set(p,{ref:p,...h}),()=>void S.itemMap.delete(p))),T.jsx(ko,{[c]:"",ref:m,children:x})});d.displayName=u;function f(g){const y=i(e+"CollectionConsumer",g);return ce.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((S,E)=>h.indexOf(S.ref.current)-h.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},f,r]}var AC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],wt=AC.reduce((e,t)=>{const n=w.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?ko:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(a,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sv(e,t){e&&ws.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function RC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var NC="DismissableLayer",Dl="dismissableLayer.update",MC="dismissableLayer.pointerDownOutside",bC="dismissableLayer.focusOutside",Jf,av=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lv=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(av),[c,d]=w.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=w.useState({}),y=Mn(t,C=>d(C)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=v.indexOf(x),p=c?v.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=h,E=DC(C=>{const k=C.target,L=[...u.branches].some(M=>M.contains(k));!S||L||(o==null||o(C),s==null||s(C),C.defaultPrevented||a==null||a())},f),P=OC(C=>{const k=C.target;[...u.branches].some(M=>M.contains(k))||(i==null||i(C),s==null||s(C),C.defaultPrevented||a==null||a())},f);return RC(C=>{p===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},f),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),ep(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Jf)}},[c,f,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),ep())},[c,u]),w.useEffect(()=>{const C=()=>g({});return document.addEventListener(Dl,C),()=>document.removeEventListener(Dl,C)},[]),T.jsx(wt.div,{...l,ref:y,style:{pointerEvents:m?S?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,E.onPointerDownCapture)})});lv.displayName=NC;var LC="DismissableLayerBranch",uv=w.forwardRef((e,t)=>{const n=w.useContext(av),r=w.useRef(null),o=Mn(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),T.jsx(wt.div,{...e,ref:o})});uv.displayName=LC;function DC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){cv(MC,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function OC(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&cv(bC,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ep(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function cv(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sv(o,i):o.dispatchEvent(i)}var jC=lv,_C=uv,ns=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},IC="Portal",dv=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=w.useState(!1);ns(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?l1.createPortal(T.jsx(wt.div,{...r,ref:t}),s):null});dv.displayName=IC;function VC(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var fv=e=>{const{present:t,children:n}=e,r=FC(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=Mn(r.ref,zC(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};fv.displayName="Presence";function FC(e){const[t,n]=w.useState(),r=w.useRef({}),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=VC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=si(r.current);i.current=a==="mounted"?u:"none"},[a]),ns(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,g=si(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ns(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=g=>{const v=si(r.current).includes(g.animationName);if(g.target===t&&v&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=g=>{g.target===t&&(i.current=si(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function si(e){return(e==null?void 0:e.animationName)||"none"}function zC(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function BC({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=UC({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=_t(n),l=w.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else o(u)},[i,e,o,a]);return[s,l]}function UC({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),i=_t(t);return w.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var $C="VisuallyHidden",pc=w.forwardRef((e,t)=>T.jsx(wt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));pc.displayName=$C;var hc="ToastProvider",[mc,HC,WC]=kC("Toast"),[pv,wP]=iv("Toast",[WC]),[KC,ks]=pv(hc),hv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),d=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${hc}\`. Expected non-empty \`string\`.`),T.jsx(mc.Provider,{scope:t,children:T.jsx(KC,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(g=>g+1),[]),onToastRemove:w.useCallback(()=>c(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};hv.displayName=hc;var mv="ToastViewport",GC=["F8"],Ol="toast.viewportPause",jl="toast.viewportResume",gv=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=GC,label:o="Notifications ({hotkey})",...i}=e,s=ks(mv,n),a=HC(n),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=Mn(t,d,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;w.useEffect(()=>{const x=h=>{var m;r.length!==0&&r.every(S=>h[S]||h.code===S)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=l.current,h=d.current;if(y&&x&&h){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Ol);h.dispatchEvent(P),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(jl);h.dispatchEvent(P),s.isClosePausedRef.current=!1}},S=P=>{!x.contains(P.relatedTarget)&&m()},E=()=>{x.contains(document.activeElement)||m()};return x.addEventListener("focusin",p),x.addEventListener("focusout",S),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[y,s.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:x})=>{const p=a().map(m=>{const S=m.ref.current,E=[S,...sP(S)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const x=d.current;if(x){const h=p=>{var E,P,C;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const k=document.activeElement,L=p.shiftKey;if(p.target===x&&L){(E=u.current)==null||E.focus();return}const I=v({tabbingDirection:L?"backwards":"forwards"}),ke=I.findIndex(j=>j===k);ga(I.slice(ke+1))?p.preventDefault():L?(P=u.current)==null||P.focus():(C=c.current)==null||C.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[a,v]),T.jsxs(_C,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&T.jsx(_l,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});ga(x)}}),T.jsx(mc.Slot,{scope:n,children:T.jsx(wt.ol,{tabIndex:-1,...i,ref:f})}),y&&T.jsx(_l,{ref:c,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});ga(x)}})]})});gv.displayName=mv;var vv="ToastFocusProxy",_l=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ks(vv,n);return T.jsx(pc,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});_l.displayName=vv;var As="Toast",XC="toast.swipeStart",YC="toast.swipeMove",QC="toast.swipeCancel",qC="toast.swipeEnd",yv=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a=!0,l]=BC({prop:r,defaultProp:o,onChange:i});return T.jsx(fv,{present:n||a,children:T.jsx(eP,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:_t(e.onPause),onResume:_t(e.onResume),onSwipeStart:Fe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Fe(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:Fe(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:Fe(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)})})})});yv.displayName=As;var[ZC,JC]=pv(As,{onClose(){}}),eP=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:g,...y}=e,v=ks(As,n),[x,h]=w.useState(null),p=Mn(t,j=>h(j)),m=w.useRef(null),S=w.useRef(null),E=o||v.duration,P=w.useRef(0),C=w.useRef(E),k=w.useRef(0),{onToastAdd:L,onToastRemove:M}=v,U=_t(()=>{var fe;(x==null?void 0:x.contains(document.activeElement))&&((fe=v.viewport)==null||fe.focus()),s()}),I=w.useCallback(j=>{!j||j===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(U,j))},[U]);w.useEffect(()=>{const j=v.viewport;if(j){const fe=()=>{I(C.current),u==null||u()},pe=()=>{const H=new Date().getTime()-P.current;C.current=C.current-H,window.clearTimeout(k.current),l==null||l()};return j.addEventListener(Ol,pe),j.addEventListener(jl,fe),()=>{j.removeEventListener(Ol,pe),j.removeEventListener(jl,fe)}}},[v.viewport,E,l,u,I]),w.useEffect(()=>{i&&!v.isClosePausedRef.current&&I(E)},[i,E,v.isClosePausedRef,I]),w.useEffect(()=>(L(),()=>M()),[L,M]);const ke=w.useMemo(()=>x?Pv(x):null,[x]);return v.viewport?T.jsxs(T.Fragment,{children:[ke&&T.jsx(tP,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ke}),T.jsx(ZC,{scope:n,onClose:U,children:ws.createPortal(T.jsx(mc.ItemSlot,{scope:n,children:T.jsx(jC,{asChild:!0,onEscapeKeyDown:Fe(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||U(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:T.jsx(wt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Fe(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Fe(e.onPointerDown,j=>{j.button===0&&(m.current={x:j.clientX,y:j.clientY})}),onPointerMove:Fe(e.onPointerMove,j=>{if(!m.current)return;const fe=j.clientX-m.current.x,pe=j.clientY-m.current.y,H=!!S.current,R=["left","right"].includes(v.swipeDirection),b=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,O=R?b(0,fe):0,z=R?0:b(0,pe),re=j.pointerType==="touch"?10:2,xt={x:O,y:z},dt={originalEvent:j,delta:xt};H?(S.current=xt,ai(YC,d,dt,{discrete:!1})):tp(xt,v.swipeDirection,re)?(S.current=xt,ai(XC,c,dt,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(fe)>re||Math.abs(pe)>re)&&(m.current=null)}),onPointerUp:Fe(e.onPointerUp,j=>{const fe=S.current,pe=j.target;if(pe.hasPointerCapture(j.pointerId)&&pe.releasePointerCapture(j.pointerId),S.current=null,m.current=null,fe){const H=j.currentTarget,R={originalEvent:j,delta:fe};tp(fe,v.swipeDirection,v.swipeThreshold)?ai(qC,g,R,{discrete:!0}):ai(QC,f,R,{discrete:!0}),H.addEventListener("click",b=>b.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),tP=e=>{const{__scopeToast:t,children:n,...r}=e,o=ks(As,t),[i,s]=w.useState(!1),[a,l]=w.useState(!1);return oP(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:T.jsx(dv,{asChild:!0,children:T.jsx(pc,{...r,children:i&&T.jsxs(T.Fragment,{children:[o.label," ",n]})})})},nP="ToastTitle",wv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return T.jsx(wt.div,{...r,ref:t})});wv.displayName=nP;var rP="ToastDescription",xv=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return T.jsx(wt.div,{...r,ref:t})});xv.displayName=rP;var Tv="ToastAction",Sv=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?T.jsx(Cv,{altText:n,asChild:!0,children:T.jsx(gc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tv}\`. Expected non-empty \`string\`.`),null)});Sv.displayName=Tv;var Ev="ToastClose",gc=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=JC(Ev,n);return T.jsx(Cv,{asChild:!0,children:T.jsx(wt.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,o.onClose)})})});gc.displayName=Ev;var Cv=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return T.jsx(wt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Pv(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),iP(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Pv(r))}}),t}function ai(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sv(o,i):o.dispatchEvent(i)}var tp=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function oP(e=()=>{}){const t=_t(e);ns(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function iP(e){return e.nodeType===e.ELEMENT_NODE}function sP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ga(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var aP=hv,kv=gv,Av=yv,Rv=wv,Nv=xv,Mv=Sv,bv=gc;const lP=aP,Lv=ce.forwardRef(({className:e,...t},n)=>T.jsx(kv,{ref:n,className:at("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}));Lv.displayName=kv.displayName;const uP=rv("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"}}),Dv=ce.forwardRef(({className:e,variant:t,...n},r)=>T.jsx(Av,{ref:r,className:at(uP({variant:t}),e),...n}));Dv.displayName=Av.displayName;const cP=ce.forwardRef(({className:e,...t},n)=>T.jsx(Mv,{ref:n,className:at("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}));cP.displayName=Mv.displayName;const Ov=ce.forwardRef(({className:e,...t},n)=>T.jsx(bv,{ref:n,className:at("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:T.jsx(SC,{className:"h-4 w-4"})}));Ov.displayName=bv.displayName;const jv=ce.forwardRef(({className:e,...t},n)=>T.jsx(Rv,{ref:n,className:at("text-sm font-semibold",e),...t}));jv.displayName=Rv.displayName;const _v=ce.forwardRef(({className:e,...t},n)=>T.jsx(Nv,{ref:n,className:at("text-sm opacity-90",e),...t}));_v.displayName=Nv.displayName;const dP=1;let va=0;function fP(){return va=(va+1)%Number.MAX_VALUE,va.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},pP=({...e})=>{const t=fP(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,dP)})),{id:t,dismiss:r,update:n}};function hP(){const[e,t]=w.useState(Ae.getState());return w.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),w.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:pP,toasts:e.toasts}}function mP(){const{toasts:e}=hP();return T.jsxs(lP,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>T.jsxs(Dv,{...i,children:[T.jsxs("div",{className:"grid gap-1",children:[n&&T.jsx(jv,{children:n}),r&&T.jsx(_v,{children:r})]}),o,T.jsx(Ov,{})]},t)),T.jsx(Lv,{})]})}function gP(){return T.jsxs(T.Fragment,{children:[T.jsxs(hl,{children:[T.jsx("title",{children:"Hoteles Xcaret - All-Fun Inclusive en Cancún y Riviera Maya"}),T.jsx("meta",{name:"description",content:"Descubre los hoteles Xcaret Todo Incluido en Cancún y Riviera Maya. Experiencias únicas con acceso ilimitado a parques, gastronomía premium y más de 200 actividades."}),T.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),T.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),T.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&display=swap",rel:"stylesheet"})]}),T.jsxs("div",{className:"min-h-screen bg-[#fffaf5]",children:[T.jsx(pC,{}),T.jsx(hC,{}),T.jsx(mC,{}),T.jsx(vC,{}),T.jsx(yC,{}),T.jsx(EC,{}),T.jsx(CC,{}),T.jsx(mP,{})]})]})}ya.createRoot(document.getElementById("root")).render(T.jsx(gP,{}));