var ay=Object.defineProperty;var ly=(e,t,n)=>t in e?ay(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vt=(e,t,n)=>(ly(e,typeof t!="symbol"?t+"":t,n),n);function uy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const 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 Co(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rf={exports:{}},ts={},Nf={exports:{}},_={};/** * @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 Po=Symbol.for("react.element"),cy=Symbol.for("react.portal"),dy=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),hy=Symbol.for("react.provider"),my=Symbol.for("react.context"),gy=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),vy=Symbol.for("react.memo"),xy=Symbol.for("react.lazy"),tc=Symbol.iterator;function wy(e){return e===null||typeof e!="object"?null:(e=tc&&e[tc]||e["@@iterator"],typeof e=="function"?e:null)}var bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lf=Object.assign,Df={};function xr(e,t,n){this.props=e,this.context=t,this.refs=Df,this.updater=n||bf}xr.prototype.isReactComponent={};xr.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")};xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jf(){}jf.prototype=xr.prototype;function Dl(e,t,n){this.props=e,this.context=t,this.refs=Df,this.updater=n||bf}var jl=Dl.prototype=new jf;jl.constructor=Dl;Lf(jl,xr.prototype);jl.isPureReactComponent=!0;var nc=Array.isArray,Vf=Object.prototype.hasOwnProperty,Vl={current:null},Of={key:!0,ref:!0,__self:!0,__source:!0};function If(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)Vf.call(t,r)&&!Of.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,B=M[j];if(0>>1;jo(Vn,I))_eo(ln,Vn)?(M[j]=ln,M[_e]=I,j=_e):(M[j]=Vn,M[Ie]=I,j=Ie);else if(_eo(ln,I))M[j]=ln,M[_e]=I,j=_e;else break e}}return b}function o(M,b){var I=M.sortIndex-b.sortIndex;return I!==0?I:M.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,m=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,g=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 h(M){for(var b=n(u);b!==null;){if(b.callback===null)r(u);else if(b.startTime<=M)r(u),b.sortIndex=b.expirationTime,t(l,b);else break;b=n(u)}}function x(M){if(y=!1,h(M),!v)if(n(l)!==null)v=!0,z(C);else{var b=n(u);b!==null&&ae(x,b.startTime-M)}}function C(M,b){v=!1,y&&(y=!1,g(E),E=-1),m=!0;var I=f;try{for(h(b),d=n(l);d!==null&&(!(d.expirationTime>b)||M&&!$());){var j=d.callback;if(typeof j=="function"){d.callback=null,f=d.priorityLevel;var B=j(d.expirationTime<=b);b=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),h(b)}else r(l);d=n(l)}if(d!==null)var W=!0;else{var Ie=n(u);Ie!==null&&ae(x,Ie.startTime-b),W=!1}return W}finally{d=null,f=I,m=!1}}var k=!1,P=null,E=-1,L=5,D=-1;function $(){return!(e.unstable_now()-DM||125j?(M.sortIndex=I,t(u,M),n(l)===null&&M===n(u)&&(y?(g(E),E=-1):y=!0,ae(x,I-j))):(M.sortIndex=B,t(l,M),v||m||(v=!0,z(C))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var b=f;return function(){var I=f;f=b;try{return M.apply(this,arguments)}finally{f=I}}}})(Uf);Bf.exports=Uf;var Ly=Bf.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 Dy=T,$e=Ly;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"),va=Object.prototype.hasOwnProperty,jy=/^[: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]*$/,oc={},ic={};function Vy(e){return va.call(ic,e)?!0:va.call(oc,e)?!1:jy.test(e)?ic[e]=!0:(oc[e]=!0,!1)}function Oy(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 Iy(e,t,n,r){if(t===null||typeof t>"u"||Oy(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 Ne(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 ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new Ne(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){ve[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var Il=/[\-:]([a-z])/g;function _l(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(Il,_l);ve[t]=new Ne(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(Il,_l);ve[t]=new Ne(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(Il,_l);ve[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fl(e,t,n,r){var o=ve.hasOwnProperty(t)?ve[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{Rs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Or(e):""}function _y(e){switch(e.tag){case 5:return Or(e.type);case 16:return Or("Lazy");case 13:return Or("Suspense");case 19:return Or("SuspenseList");case 0:case 2:case 15:return e=Ns(e.type,!1),e;case 11:return e=Ns(e.type.render,!1),e;case 1:return e=Ns(e.type,!0),e;default:return""}}function Ta(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 Fn:return"Fragment";case _n:return"Portal";case xa:return"Profiler";case zl:return"StrictMode";case wa:return"Suspense";case Sa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wf:return(e.displayName||"Context")+".Consumer";case Hf:return(e._context.displayName||"Context")+".Provider";case Bl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ul:return t=e.displayName||null,t!==null?t:Ta(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Ta(e(t))}catch{}}return null}function Fy(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 Ta(t);case 8:return t===zl?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zy(e){var t=Kf(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 Io(e){e._valueTracker||(e._valueTracker=zy(e))}function Qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ti(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 oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(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 Yf(e,t){t=t.checked,t!=null&&Fl(e,"checked",t,!1)}function Pa(e,t){Yf(e,t);var n=Jt(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,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lc(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"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ir=Array.isArray;function er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_o.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function to(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={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},By=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){By.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function Jf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function ep(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Uy=oe({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 Ma(e,t){if(t){if(Uy[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 Ra(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 Na=null;function $l(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ba=null,tr=null,nr=null;function dc(e){if(e=Ao(e)){if(typeof ba!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ss(t),ba(e.stateNode,e.type,t))}}function tp(e){tr?nr?nr.push(e):nr=[e]:tr=e}function np(){if(tr){var e=tr,t=nr;if(nr=tr=null,dc(e),t)for(e=0;e>>=0,e===0?32:31-(Jy(e)/ev|0)|0}var Fo=64,zo=4194304;function _r(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 Ei(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=_r(a):(i&=s,i!==0&&(r=_r(i)))}else s=n&~o,s!==0?r=_r(s):i!==0&&(r=_r(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 ko(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 ov(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=$r),wc=String.fromCharCode(32),Sc=!1;function Tp(e,t){switch(e){case"keyup":return Lv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function jv(e,t){switch(e){case"compositionend":return Cp(t);case"keypress":return t.which!==32?null:(Sc=!0,wc);case"textInput":return e=t.data,e===wc&&Sc?null:e;default:return null}}function Vv(e,t){if(zn)return e==="compositionend"||!Zl&&Tp(e,t)?(e=wp(),ui=Ql=Bt=null,zn=!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=kc(n)}}function Ap(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ap(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mp(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function ql(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 Hv(e){var t=Mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ap(n.ownerDocument.documentElement,n)){if(r!==null&&ql(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=Ec(n,i);var s=Ec(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,Bn=null,Ia=null,Wr=null,_a=!1;function Ac(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_a||Bn==null||Bn!==Ti(r)||(r=Bn,"selectionStart"in r&&ql(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}),Wr&&ao(Wr,r)||(Wr=r,r=Ri(Ia,"onSelect"),0Hn||(e.current=Ha[Hn],Ha[Hn]=null,Hn--)}function K(e,t){Hn++,Ha[Hn]=e.current,e.current=t}var en={},Ce=on(en),De=on(!1),Tn=en;function cr(e,t){var n=e.type.contextTypes;if(!n)return en;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 je(e){return e=e.childContextTypes,e!=null}function bi(){X(De),X(Ce)}function jc(e,t,n){if(Ce.current!==en)throw Error(A(168));K(Ce,t),K(De,n)}function Ip(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,Fy(e)||"Unknown",o));return oe({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||en,Tn=Ce.current,K(Ce,e),K(De,De.current),!0}function Vc(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Ip(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,X(De),X(Ce),K(Ce,e)):X(De),K(De,n)}var wt=null,as=!1,Hs=!1;function _p(e){wt===null?wt=[e]:wt.push(e)}function n0(e){as=!0,_p(e)}function sn(){if(!Hs&&wt!==null){Hs=!0;var e=0,t=H;try{var n=wt;for(H=1;e>=s,o-=s,St=1<<32-lt(t)+o|n<E?(L=P,P=null):L=P.sibling;var D=f(g,P,h[E],x);if(D===null){P===null&&(P=L);break}e&&P&&D.alternate===null&&t(g,P),p=i(D,p,E),k===null?C=D:k.sibling=D,k=D,P=L}if(E===h.length)return n(g,P),J&&dn(g,E),C;if(P===null){for(;EE?(L=P,P=null):L=P.sibling;var $=f(g,P,D.value,x);if($===null){P===null&&(P=L);break}e&&P&&$.alternate===null&&t(g,P),p=i($,p,E),k===null?C=$:k.sibling=$,k=$,P=L}if(D.done)return n(g,P),J&&dn(g,E),C;if(P===null){for(;!D.done;E++,D=h.next())D=d(g,D.value,x),D!==null&&(p=i(D,p,E),k===null?C=D:k.sibling=D,k=D);return J&&dn(g,E),C}for(P=r(g,P);!D.done;E++,D=h.next())D=m(P,g,E,D.value,x),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?E:D.key),p=i(D,p,E),k===null?C=D:k.sibling=D,k=D);return e&&P.forEach(function(V){return t(g,V)}),J&&dn(g,E),C}function S(g,p,h,x){if(typeof h=="object"&&h!==null&&h.type===Fn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Oo:e:{for(var C=h.key,k=p;k!==null;){if(k.key===C){if(C=h.type,C===Fn){if(k.tag===7){n(g,k.sibling),p=o(k,h.props.children),p.return=g,g=p;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ot&&_c(C)===k.type){n(g,k.sibling),p=o(k,h.props),p.ref=Ar(g,k,h),p.return=g,g=p;break e}n(g,k);break}else t(g,k);k=k.sibling}h.type===Fn?(p=Sn(h.props.children,g.mode,x,h.key),p.return=g,g=p):(x=yi(h.type,h.key,h.props,null,g.mode,x),x.ref=Ar(g,p,h),x.return=g,g=x)}return s(g);case _n:e:{for(k=h.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(g,p.sibling),p=o(p,h.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=qs(h,g.mode,x),p.return=g,g=p}return s(g);case Ot:return k=h._init,S(g,p,k(h._payload),x)}if(Ir(h))return v(g,p,h,x);if(Tr(h))return y(g,p,h,x);Ko(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,h),p.return=g,g=p):(n(g,p),p=Zs(h,g.mode,x),p.return=g,g=p),s(g)):n(g,p)}return S}var fr=Up(!0),$p=Up(!1),Vi=on(null),Oi=null,Kn=null,nu=null;function ru(){nu=Kn=Oi=null}function ou(e){var t=Vi.current;X(Vi),e._currentValue=t}function Ka(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 or(e,t){Oi=e,nu=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(nu!==e)if(e={context:e,memoizedValue:t,next:null},Kn===null){if(Oi===null)throw Error(A(308));Kn=e,Oi.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return t}var gn=null;function iu(e){gn===null?gn=[e]:gn.push(e)}function Hp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,iu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rt(e,r)}function Rt(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 It=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wp(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 Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rt(e,n)}return o=r.interleaved,o===null?(t.next=t,iu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rt(e,n)}function di(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,Wl(e,n)}}function Fc(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 Ii(e,t,n,r){var o=e.updateQueue;It=!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,m=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,y=a;switch(f=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(m,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(m,d,f):v,f==null)break e;d=oe({},d,f);break e;case 2:It=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,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);kn|=s,e.lanes=s,e.memoizedState=d}}function zc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gs.transition;Gs.transition={};try{e(!1),t()}finally{H=n,Gs.transition=r}}function lh(){return tt().memoizedState}function s0(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uh(e))ch(t,n);else if(n=Hp(e,t,n,r),n!==null){var o=Me();ut(n,e,r,o),dh(n,t,r)}}function a0(e,t,n){var r=Yt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uh(e))ch(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,iu(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Hp(e,t,o,r),n!==null&&(o=Me(),ut(n,e,r,o),dh(n,t,r))}}function uh(e){var t=e.alternate;return e===re||t!==null&&t===re}function ch(e,t){Gr=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wl(e,n)}}var zi={readContext:et,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},l0={readContext:et,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Uc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();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=s0.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Bc,useDebugValue:hu,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Bc(!1),t=e[0];return e=i0.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=re,o=ft();if(J){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),me===null)throw Error(A(349));Pn&30||Yp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uc(Zp.bind(null,r,i,e),[e]),r.flags|=2048,go(9,Xp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=me.identifierPrefix;if(J){var n=Tt,r=St;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ho++,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[pt]=t,e[co]=r,Sh(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ra(n,r),n){case"dialog":Y("cancel",e),Y("close",e),o=r;break;case"iframe":case"object":case"embed":Y("load",e),o=r;break;case"video":case"audio":for(o=0;omr&&(t.flags|=128,r=!0,Mr(i,!1),t.lanes=4194304)}else{if(!r)if(e=_i(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!J)return we(t),null}else 2*le()-i.renderingStartTime>mr&&n!==1073741824&&(t.flags|=128,r=!0,Mr(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=le(),t.sibling=null,n=te.current,K(te,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return wu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function g0(e,t){switch(eu(t),t.tag){case 1:return je(t.type)&&bi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pr(),X(De),X(Ce),uu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lu(t),null;case 13:if(X(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(te),null;case 4:return pr(),null;case 10:return ou(t.type._context),null;case 22:case 23:return wu(),null;case 24:return null;default:return null}}var Yo=!1,Te=!1,y0=typeof WeakSet=="function"?WeakSet:Set,R=null;function Qn(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 nl(e,t,n){try{n()}catch(r){ie(e,t,r)}}var Jc=!1;function v0(e,t){if(Fa=Ai,e=Mp(),ql(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 m;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),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},Ai=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ot(t.type,y),S);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(x){ie(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return v=Jc,Jc=!1,v}function Kr(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&&nl(t,n,i)}o=o.next}while(o!==r)}}function cs(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 rl(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 Ph(e){var t=e.alternate;t!==null&&(e.alternate=null,Ph(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[co],delete t[$a],delete t[e0],delete t[t0])),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 kh(e){return e.tag===5||e.tag===3||e.tag===4}function ed(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(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 ol(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=Ni));else if(r!==4&&(e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function il(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(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}var ge=null,it=!1;function Dt(e,t,n){for(n=n.child;n!==null;)Eh(e,t,n),n=n.sibling}function Eh(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ns,n)}catch{}switch(n.tag){case 5:Te||Qn(n,t);case 6:var r=ge,o=it;ge=null,Dt(e,t,n),ge=r,it=o,ge!==null&&(it?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(it?(e=ge,n=n.stateNode,e.nodeType===8?$s(e.parentNode,n):e.nodeType===1&&$s(e,n),io(e)):$s(ge,n.stateNode));break;case 4:r=ge,o=it,ge=n.stateNode.containerInfo,it=!0,Dt(e,t,n),ge=r,it=o;break;case 0:case 11:case 14:case 15:if(!Te&&(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)&&nl(n,t,s),o=o.next}while(o!==r)}Dt(e,t,n);break;case 1:if(!Te&&(Qn(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)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Dt(e,t,n),Te=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function td(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new y0),t.forEach(function(r){var o=A0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function nt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w0(r/1960))-r,10e?16:e,Ut===null)var r=!1;else{if(e=Ut,Ut=null,$i=0,U&6)throw Error(A(331));var o=U;for(U|=4,R=e.current;R!==null;){var i=R,s=i.child;if(R.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lle()-vu?wn(e,0):yu|=n),Ve(e,t)}function jh(e,t){t===0&&(e.mode&1?(t=zo,zo<<=1,!(zo&130023424)&&(zo=4194304)):t=1);var n=Me();e=Rt(e,t),e!==null&&(ko(e,t,n),Ve(e,n))}function E0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jh(e,n)}function A0(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),jh(e,n)}var Vh;Vh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,h0(e,t,n);Le=!!(e.flags&131072)}else Le=!1,J&&t.flags&1048576&&Fp(t,ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var o=cr(t,Ce.current);or(t,n),o=du(null,t,r,e,o,n);var i=fu();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,je(r)?(i=!0,Li(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,su(t),o.updater=us,t.stateNode=o,o._reactInternals=t,Ya(t,r,e,n),t=qa(null,t,r,!0,i,n)):(t.tag=0,J&&i&&Jl(t),Ae(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=R0(r),e=ot(r,e),o){case 0:t=Za(null,t,r,e,n);break e;case 1:t=Xc(null,t,r,e,n);break e;case 11:t=Qc(null,t,r,e,n);break e;case 14:t=Yc(null,t,r,ot(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:ot(r,o),Za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ot(r,o),Xc(e,t,r,o,n);case 3:e:{if(vh(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Wp(e,t),Ii(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=hr(Error(A(423)),t),t=Zc(e,t,r,n,o);break e}else if(r!==o){o=hr(Error(A(424)),t),t=Zc(e,t,r,n,o);break e}else for(Be=Gt(t.stateNode.containerInfo.firstChild),Ue=t,J=!0,st=null,n=$p(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dr(),r===o){t=Nt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&Ga(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ba(r,o)?s=null:i!==null&&Ba(r,i)&&(t.flags|=32),yh(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&Ga(t),null;case 13:return xh(e,t,n);case 4:return au(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ot(r,o),Qc(e,t,r,o,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(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,K(Vi,r._currentValue),r._currentValue=s,i!==null)if(ct(i.value,s)){if(i.children===o.children&&!De.current){t=Nt(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=Pt(-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),Ka(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),Ka(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}Ae(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,or(t,n),o=et(o),r=r(o),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,o=ot(r,t.pendingProps),o=ot(r.type,o),Yc(e,t,r,o,n);case 15:return mh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ot(r,o),hi(e,t),t.tag=1,je(r)?(e=!0,Li(t)):e=!1,or(t,n),fh(t,r,o),Ya(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return wh(e,t,n);case 22:return gh(e,t,n)}throw Error(A(156,t.tag))};function Oh(e,t){return up(e,t)}function M0(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 M0(e,t,n,r)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R0(e){if(typeof e=="function")return Tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bl)return 11;if(e===Ul)return 14}return 2}function Xt(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 yi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Tu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return Sn(n.children,o,i,t);case zl:s=8,o|=8;break;case xa:return e=qe(12,n,t,o|2),e.elementType=xa,e.lanes=i,e;case wa:return e=qe(13,n,t,o),e.elementType=wa,e.lanes=i,e;case Sa:return e=qe(19,n,t,o),e.elementType=Sa,e.lanes=i,e;case Gf:return fs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hf:s=10;break e;case Wf:s=9;break e;case Bl:s=11;break e;case Ul:s=14;break e;case Ot: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 fs(e,t,n,r){return e=qe(22,e,r,t),e.elementType=Gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Zs(e,t,n){return e=qe(6,e,null,t),e.lanes=n,e}function qs(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 N0(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=Ls(0),this.expirationTimes=Ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ls(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cu(e,t,n,r,o,i,s,a,l){return e=new N0(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},su(i),e}function b0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zf.exports=We;var ys=zf.exports;const O0=Co(ys);var ud=ys;ya.createRoot=ud.createRoot,ya.hydrateRoot=ud.hydrateRoot;var I0=typeof Element<"u",_0=typeof Map=="function",F0=typeof Set=="function",z0=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vi(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(!vi(e[r],t[r]))return!1;return!0}var i;if(_0&&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(!vi(r.value[1],t.get(r.value[0])))return!1;return!0}if(F0&&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(z0&&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(I0&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!vi(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var B0=function(t,n){try{return vi(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 U0=Co(B0);var $0=function(e,t,n,r,o,i,s,a){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},H0=$0;const cd=Co(H0);var W0=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Bh||{}),Js={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},dd=Object.values(Bh),Au={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},K0=Object.entries(Au).reduce((e,[t,n])=>(e[n]=t,e),{}),at="data-rh",sr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ar=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Q0=e=>{let t=ar(e,"title");const n=ar(e,sr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=ar(e,sr.DEFAULT_TITLE);return t||r||void 0},Y0=e=>ar(e,sr.ON_CHANGE_CLIENT_STATE)||(()=>{}),ea=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),X0=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;iconsole&&typeof console.warn=="function"&&console.warn(e),Nr=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&Z0(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const s={};i.filter(l=>{let u;const c=Object.keys(l);for(let f=0;fo.push(l));const a=Object.keys(s);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:X0(["href"],e),bodyAttributes:ea("bodyAttributes",e),defer:ar(e,sr.DEFER),encode:ar(e,sr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ea("htmlAttributes",e),linkTags:Nr("link",["rel","href"],e),metaTags:Nr("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Nr("noscript",["innerHTML"],e),onChangeClientState:Y0(e),scriptTags:Nr("script",["src","innerHTML"],e),styleTags:Nr("style",["cssText"],e),title:Q0(e),titleAttributes:ea("titleAttributes",e),prioritizeSeoTags:q0(e,sr.PRIORITIZE_SEO_TAGS)}),Uh=e=>Array.isArray(e)?e.join(""):e,e1=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(e1(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},fd=(e,t)=>({...e,[t]:void 0}),t1=["noscript","script","style"],cl=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),$h=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),n1=(e,t,n,r)=>{const o=$h(n),i=Uh(t);return o?`<${e} ${at}="true" ${o}>${cl(i,r)}`:`<${e} ${at}="true">${cl(i,r)}`},r1=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,s=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,c)=>{const d=typeof i[c]>"u"?c:`${c}="${cl(i[c],n)}"`;return u?`${u} ${d}`:d},""),a=i.innerHTML||i.cssText||"",l=t1.indexOf(e)===-1;return`${r}<${e} ${at}="true" ${s}${l?"/>":`>${a}`}`},""),Hh=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=Au[r];return n[o||r]=e[r],n},t),o1=(e,t,n)=>{const r={key:t,[at]:!0},o=Hh(n,r);return[G.createElement("title",o,t)]},xi=(e,t)=>t.map((n,r)=>{const o={key:r,[at]:!0};return Object.keys(n).forEach(i=>{const a=Au[i]||i;if(a==="innerHTML"||a==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[a]=n[i]}),G.createElement(e,o)}),Ye=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>o1(e,t.title,t.titleAttributes),toString:()=>n1(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Hh(t),toString:()=>$h(t)};default:return{toComponent:()=>xi(e,t),toString:()=>r1(e,t,n)}}},i1=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=ta(e,Js.meta),i=ta(t,Js.link),s=ta(n,Js.script);return{priorityMethods:{toComponent:()=>[...xi("meta",o.priority),...xi("link",i.priority),...xi("script",s.priority)],toString:()=>`${Ye("meta",o.priority,r)} ${Ye("link",i.priority,r)} ${Ye("script",s.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:s.default}},s1=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:s,title:a="",titleAttributes:l,prioritizeSeoTags:u}=e;let{linkTags:c,metaTags:d,scriptTags:f}=e,m={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:m,linkTags:c,metaTags:d,scriptTags:f}=i1(e)),{priority:m,base:Ye("base",t,r),bodyAttributes:Ye("bodyAttributes",n,r),htmlAttributes:Ye("htmlAttributes",o,r),link:Ye("link",c,r),meta:Ye("meta",d,r),noscript:Ye("noscript",i,r),script:Ye("script",f,r),style:Ye("style",s,r),title:Ye("title",{title:a,titleAttributes:l},r)}},dl=s1,qo=[],Wh=!!(typeof window<"u"&&window.document&&window.document.createElement),fl=class{constructor(e,t){vt(this,"instances",[]);vt(this,"canUseDOM",Wh);vt(this,"context");vt(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?qo:this.instances,add:e=>{(this.canUseDOM?qo:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?qo:this.instances).indexOf(e);(this.canUseDOM?qo:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=dl({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},a1={},Gh=G.createContext(a1),lr,Kh=(lr=class extends T.Component{constructor(n){super(n);vt(this,"helmetData");this.helmetData=new fl(this.props.context||{},lr.canUseDOM)}render(){return G.createElement(Gh.Provider,{value:this.helmetData.value},this.props.children)}},vt(lr,"canUseDOM",Wh),lr),In=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${at}]`),o=[].slice.call(r),i=[];let s;return t&&t.length&&t.forEach(a=>{const l=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const c=u,d=typeof a[c]>"u"?"":a[c];l.setAttribute(u,d)}l.setAttribute(at,"true"),o.some((u,c)=>(s=c,l.isEqualNode(u)))?o.splice(s,1):i.push(l)}),o.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>n.appendChild(a)),{oldTags:o,newTags:i}},pl=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(at),o=r?r.split(","):[],i=[...o],s=Object.keys(t);for(const a of s){const l=t[a]||"";n.getAttribute(a)!==l&&n.setAttribute(a,l),o.indexOf(a)===-1&&o.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)n.removeAttribute(i[a]);o.length===i.length?n.removeAttribute(at):n.getAttribute(at)!==s.join(",")&&n.setAttribute(at,s.join(","))},l1=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Uh(e)),pl("title",t)},pd=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:s,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:c,title:d,titleAttributes:f}=e;pl("body",r),pl("html",o),l1(d,f);const m={baseTag:In("base",n),linkTags:In("link",i),metaTags:In("meta",s),noscriptTags:In("noscript",a),scriptTags:In("script",u),styleTags:In("style",c)},v={},y={};Object.keys(m).forEach(S=>{const{newTags:g,oldTags:p}=m[S];g.length&&(v[S]=g),p.length&&(y[S]=m[S].oldTags)}),t&&t(),l(e,v,y)},br=null,u1=e=>{br&&cancelAnimationFrame(br),e.defer?br=requestAnimationFrame(()=>{pd(e,()=>{br=null})}):(pd(e),br=null)},c1=u1,hd=class extends T.Component{constructor(){super(...arguments);vt(this,"rendered",!1)}shouldComponentUpdate(t){return!G0(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const o=J0(t.get().map(i=>{const s={...i.props};return delete s.context,s}));Kh.canUseDOM?c1(o):dl&&(r=dl(o)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},ga,d1=(ga=class extends T.Component{shouldComponentUpdate(e){return!U0(fd(this.props,"helmetData"),fd(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return cd(dd.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${dd.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),cd(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return G.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,s=Object.keys(i).reduce((l,u)=>(l[K0[u]||u]=i[u],l),{});let{type:a}=r;switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,o),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,s,o);break;default:t=this.mapObjectTypeChildren(r,t,s,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof fl)){const o=r;r=new fl(o.context,!0),delete n.helmetData}return r?G.createElement(hd,{...n,context:r.value}):G.createElement(Gh.Consumer,null,o=>G.createElement(hd,{...n,context:o}))}},vt(ga,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),ga);function Qh(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;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var qh="!";function x1(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:S}}}function w1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function S1(e){return{cache:v1(e.cacheSize),splitModifiers:x1(e),...p1(e)}}var T1=/\s+/;function C1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(T1).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),m=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};m=!1}var v=w1(l).join(":"),y=u?v+qh:v;return{isTailwindClass:!0,modifierId:y,classGroupId:f,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function P1(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=vd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var g;const{scope:f,children:m,...v}=d,y=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,S=T.useMemo(()=>v,Object.values(v));return w.jsx(y.Provider,{value:S,children:m})};u.displayName=i+"Provider";function c(d,f){var y;const m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,v=T.useContext(m);if(v)return v;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=>T.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return T.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,z1(o,...t)]}function z1(...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 T.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Gi(e){const t=U1(e),n=T.forwardRef((r,o)=>{const{children:i,...s}=r,a=T.Children.toArray(i),l=a.find(H1);if(l){const u=l.props.children,c=a.map(d=>d===l?T.Children.count(u)>1?T.Children.only(null):T.isValidElement(u)?u.props.children:null:d);return w.jsx(t,{...s,ref:o,children:T.isValidElement(u)?T.cloneElement(u,void 0,c):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var B1=Gi("Slot");function U1(e){const t=T.forwardRef((n,r)=>{const{children:o,...i}=n;if(T.isValidElement(o)){const s=G1(o),a=W1(i,o.props);return o.type!==T.Fragment&&(a.ref=r?tm(r,s):s),T.cloneElement(o,a)}return T.Children.count(o)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $1=Symbol("radix.slottable");function H1(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$1}function W1(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)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function G1(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 K1(e){const t=e+"CollectionProvider",[n,r]=nm(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:S,children:g}=y,p=G.useRef(null),h=G.useRef(new Map).current;return w.jsx(o,{scope:S,itemMap:h,collectionRef:p,children:g})};s.displayName=t;const a=e+"CollectionSlot",l=Gi(a),u=G.forwardRef((y,S)=>{const{scope:g,children:p}=y,h=i(a,g),x=An(S,h.collectionRef);return w.jsx(l,{ref:x,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Gi(c),m=G.forwardRef((y,S)=>{const{scope:g,children:p,...h}=y,x=G.useRef(null),C=An(S,x),k=i(c,g);return G.useEffect(()=>(k.itemMap.set(x,{ref:x,...h}),()=>void k.itemMap.delete(x))),w.jsx(f,{[d]:"",ref:C,children:p})});m.displayName=c;function v(y){const S=i(e+"CollectionConsumer",y);return G.useCallback(()=>{const p=S.collectionRef.current;if(!p)return[];const h=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(S.itemMap.values()).sort((k,P)=>h.indexOf(k.ref.current)-h.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},v,r]}var Q1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yt=Q1.reduce((e,t)=>{const n=Gi(`Primitive.${t}`),r=T.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rm(e,t){e&&ys.flushSync(()=>e.dispatchEvent(t))}function Mn(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Y1(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e);T.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 X1="DismissableLayer",gl="dismissableLayer.update",Z1="dismissableLayer.pointerDownOutside",q1="dismissableLayer.focusOutside",xd,om=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),im=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=T.useContext(om),[c,d]=T.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=T.useState({}),v=An(t,P=>d(P)),y=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(S),p=c?y.indexOf(c):-1,h=u.layersWithOutsidePointerEventsDisabled.size>0,x=p>=g,C=ex(P=>{const E=P.target,L=[...u.branches].some(D=>D.contains(E));!x||L||(o==null||o(P),s==null||s(P),P.defaultPrevented||a==null||a())},f),k=tx(P=>{const E=P.target;[...u.branches].some(D=>D.contains(E))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},f);return Y1(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),T.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),wd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xd)}},[c,f,n,u]),T.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),wd())},[c,u]),T.useEffect(()=>{const P=()=>m({});return document.addEventListener(gl,P),()=>document.removeEventListener(gl,P)},[]),w.jsx(yt.div,{...l,ref:v,style:{pointerEvents:h?x?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,C.onPointerDownCapture)})});im.displayName=X1;var J1="DismissableLayerBranch",sm=T.forwardRef((e,t)=>{const n=T.useContext(om),r=T.useRef(null),o=An(t,r);return T.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(yt.div,{...e,ref:o})});sm.displayName=J1;function ex(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=T.useRef(!1),o=T.useRef(()=>{});return T.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){am(Z1,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 tx(e,t=globalThis==null?void 0:globalThis.document){const n=Mn(e),r=T.useRef(!1);return T.useEffect(()=>{const o=i=>{i.target&&!r.current&&am(q1,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 wd(){const e=new CustomEvent(gl);document.dispatchEvent(e)}function am(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?rm(o,i):o.dispatchEvent(i)}var nx=im,rx=sm,vo=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},ox="Portal",lm=T.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=T.useState(!1);vo(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?O0.createPortal(w.jsx(yt.div,{...r,ref:t}),s):null});lm.displayName=ox;function ix(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var um=e=>{const{present:t,children:n}=e,r=sx(t),o=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),i=An(r.ref,ax(o));return typeof n=="function"||r.isPresent?T.cloneElement(o,{ref:i}):null};um.displayName="Presence";function sx(e){const[t,n]=T.useState(),r=T.useRef(null),o=T.useRef(e),i=T.useRef("none"),s=e?"mounted":"unmounted",[a,l]=ix(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const u=ei(r.current);i.current=a==="mounted"?u:"none"},[a]),vo(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,m=ei(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),vo(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=m=>{const y=ei(r.current).includes(m.animationName);if(m.target===t&&y&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},f=m=>{m.target===t&&(i.current=ei(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:T.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ei(e){return(e==null?void 0:e.animationName)||"none"}function ax(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)}var lx=ky[" useInsertionEffect ".trim().toString()]||vo;function ux({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=cx({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=T.useRef(e!==void 0);T.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=T.useCallback(c=>{var d;if(a){const f=dx(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function cx({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),o=T.useRef(n),i=T.useRef(t);return lx(()=>{i.current=t},[t]),T.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function dx(e){return typeof e=="function"}var fx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),px="VisuallyHidden",Ru=T.forwardRef((e,t)=>w.jsx(yt.span,{...e,ref:t,style:{...fx,...e.style}}));Ru.displayName=px;var Nu="ToastProvider",[bu,hx,mx]=K1("Toast"),[cm,PP]=nm("Toast",[mx]),[gx,vs]=cm(Nu),dm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=T.useState(null),[u,c]=T.useState(0),d=T.useRef(!1),f=T.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Nu}\`. Expected non-empty \`string\`.`),w.jsx(bu.Provider,{scope:t,children:w.jsx(gx,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:T.useCallback(()=>c(m=>m+1),[]),onToastRemove:T.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};dm.displayName=Nu;var fm="ToastViewport",yx=["F8"],yl="toast.viewportPause",vl="toast.viewportResume",pm=T.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=yx,label:o="Notifications ({hotkey})",...i}=e,s=vs(fm,n),a=hx(n),l=T.useRef(null),u=T.useRef(null),c=T.useRef(null),d=T.useRef(null),f=An(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;T.useEffect(()=>{const S=g=>{var h;r.length!==0&&r.every(x=>g[x]||g.code===x)&&((h=d.current)==null||h.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),T.useEffect(()=>{const S=l.current,g=d.current;if(v&&S&&g){const p=()=>{if(!s.isClosePausedRef.current){const k=new CustomEvent(yl);g.dispatchEvent(k),s.isClosePausedRef.current=!0}},h=()=>{if(s.isClosePausedRef.current){const k=new CustomEvent(vl);g.dispatchEvent(k),s.isClosePausedRef.current=!1}},x=k=>{!S.contains(k.relatedTarget)&&h()},C=()=>{S.contains(document.activeElement)||h()};return S.addEventListener("focusin",p),S.addEventListener("focusout",x),S.addEventListener("pointermove",p),S.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",h),()=>{S.removeEventListener("focusin",p),S.removeEventListener("focusout",x),S.removeEventListener("pointermove",p),S.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",h)}}},[v,s.isClosePausedRef]);const y=T.useCallback(({tabbingDirection:S})=>{const p=a().map(h=>{const x=h.ref.current,C=[x,...Nx(x)];return S==="forwards"?C:C.reverse()});return(S==="forwards"?p.reverse():p).flat()},[a]);return T.useEffect(()=>{const S=d.current;if(S){const g=p=>{var C,k,P;const h=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!h){const E=document.activeElement,L=p.shiftKey;if(p.target===S&&L){(C=u.current)==null||C.focus();return}const V=y({tabbingDirection:L?"backwards":"forwards"}),ee=V.findIndex(N=>N===E);na(V.slice(ee+1))?p.preventDefault():L?(k=u.current)==null||k.focus():(P=c.current)==null||P.focus()}};return S.addEventListener("keydown",g),()=>S.removeEventListener("keydown",g)}},[a,y]),w.jsxs(rx,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&w.jsx(xl,{ref:u,onFocusFromOutsideViewport:()=>{const S=y({tabbingDirection:"forwards"});na(S)}}),w.jsx(bu.Slot,{scope:n,children:w.jsx(yt.ol,{tabIndex:-1,...i,ref:f})}),v&&w.jsx(xl,{ref:c,onFocusFromOutsideViewport:()=>{const S=y({tabbingDirection:"backwards"});na(S)}})]})});pm.displayName=fm;var hm="ToastFocusProxy",xl=T.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=vs(hm,n);return w.jsx(Ru,{"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()}})});xl.displayName=hm;var Ro="Toast",vx="toast.swipeStart",xx="toast.swipeMove",wx="toast.swipeCancel",Sx="toast.swipeEnd",mm=T.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=ux({prop:r,defaultProp:o??!0,onChange:i,caller:Ro});return w.jsx(um,{present:n||a,children:w.jsx(Px,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:Mn(e.onPause),onResume:Mn(e.onResume),onSwipeStart:ze(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ze(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:ze(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:ze(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)})})})});mm.displayName=Ro;var[Tx,Cx]=cm(Ro,{onClose(){}}),Px=T.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:m,...v}=e,y=vs(Ro,n),[S,g]=T.useState(null),p=An(t,N=>g(N)),h=T.useRef(null),x=T.useRef(null),C=o||y.duration,k=T.useRef(0),P=T.useRef(C),E=T.useRef(0),{onToastAdd:L,onToastRemove:D}=y,$=Mn(()=>{var q;(S==null?void 0:S.contains(document.activeElement))&&((q=y.viewport)==null||q.focus()),s()}),V=T.useCallback(N=>{!N||N===1/0||(window.clearTimeout(E.current),k.current=new Date().getTime(),E.current=window.setTimeout($,N))},[$]);T.useEffect(()=>{const N=y.viewport;if(N){const q=()=>{V(P.current),u==null||u()},z=()=>{const ae=new Date().getTime()-k.current;P.current=P.current-ae,window.clearTimeout(E.current),l==null||l()};return N.addEventListener(yl,z),N.addEventListener(vl,q),()=>{N.removeEventListener(yl,z),N.removeEventListener(vl,q)}}},[y.viewport,C,l,u,V]),T.useEffect(()=>{i&&!y.isClosePausedRef.current&&V(C)},[i,C,y.isClosePausedRef,V]),T.useEffect(()=>(L(),()=>D()),[L,D]);const ee=T.useMemo(()=>S?Tm(S):null,[S]);return y.viewport?w.jsxs(w.Fragment,{children:[ee&&w.jsx(kx,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ee}),w.jsx(Tx,{scope:n,onClose:$,children:ys.createPortal(w.jsx(bu.ItemSlot,{scope:n,children:w.jsx(nx,{asChild:!0,onEscapeKeyDown:ze(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:w.jsx(yt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ze(e.onKeyDown,N=>{N.key==="Escape"&&(a==null||a(N.nativeEvent),N.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ze(e.onPointerDown,N=>{N.button===0&&(h.current={x:N.clientX,y:N.clientY})}),onPointerMove:ze(e.onPointerMove,N=>{if(!h.current)return;const q=N.clientX-h.current.x,z=N.clientY-h.current.y,ae=!!x.current,M=["left","right"].includes(y.swipeDirection),b=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=M?b(0,q):0,j=M?0:b(0,z),B=N.pointerType==="touch"?10:2,W={x:I,y:j},Ie={originalEvent:N,delta:W};ae?(x.current=W,ti(xx,d,Ie,{discrete:!1})):Sd(W,y.swipeDirection,B)?(x.current=W,ti(vx,c,Ie,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(q)>B||Math.abs(z)>B)&&(h.current=null)}),onPointerUp:ze(e.onPointerUp,N=>{const q=x.current,z=N.target;if(z.hasPointerCapture(N.pointerId)&&z.releasePointerCapture(N.pointerId),x.current=null,h.current=null,q){const ae=N.currentTarget,M={originalEvent:N,delta:q};Sd(q,y.swipeDirection,y.swipeThreshold)?ti(Sx,m,M,{discrete:!0}):ti(wx,f,M,{discrete:!0}),ae.addEventListener("click",b=>b.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),kx=e=>{const{__scopeToast:t,children:n,...r}=e,o=vs(Ro,t),[i,s]=T.useState(!1),[a,l]=T.useState(!1);return Mx(()=>s(!0)),T.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:w.jsx(lm,{asChild:!0,children:w.jsx(Ru,{...r,children:i&&w.jsxs(w.Fragment,{children:[o.label," ",n]})})})},Ex="ToastTitle",gm=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(yt.div,{...r,ref:t})});gm.displayName=Ex;var Ax="ToastDescription",ym=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return w.jsx(yt.div,{...r,ref:t})});ym.displayName=Ax;var vm="ToastAction",xm=T.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?w.jsx(Sm,{altText:n,asChild:!0,children:w.jsx(Lu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${vm}\`. Expected non-empty \`string\`.`),null)});xm.displayName=vm;var wm="ToastClose",Lu=T.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Cx(wm,n);return w.jsx(Sm,{asChild:!0,children:w.jsx(yt.button,{type:"button",...r,ref:t,onClick:ze(e.onClick,o.onClose)})})});Lu.displayName=wm;var Sm=T.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return w.jsx(yt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Tm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Rx(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(...Tm(r))}}),t}function ti(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?rm(o,i):o.dispatchEvent(i)}var Sd=(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 Mx(e=()=>{}){const t=Mn(e);vo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Rx(e){return e.nodeType===e.ELEMENT_NODE}function Nx(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 na(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var bx=dm,Cm=pm,Pm=mm,km=gm,Em=ym,Am=xm,Mm=Lu;const Td=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cd=Yh,Rm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Cd(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=Td(c)||Td(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,...m}=c;return Object.entries(m).every(v=>{let[y,S]=v;return Array.isArray(S)?S.includes({...i,...a}[y]):{...i,...a}[y]===S})?[...u,d,f]:u},[]);return Cd(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var Lx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Dx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pe=(e,t)=>{const n=T.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>T.createElement("svg",{ref:u,...Lx,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${Dx(e)}`,...l},[...t.map(([c,d])=>T.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},Nm=Pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),jx=Pe("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),Vx=Pe("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Ox=Pe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),Ix=Pe("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]),Du=Pe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),_x=Pe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),Fx=Pe("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),bm=Pe("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Lm=Pe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),zx=Pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Dm=Pe("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]),Bx=Pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),Ux=Pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),$x=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hx=Pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),Wx=bx,jm=G.forwardRef(({className:e,...t},n)=>w.jsx(Cm,{ref:n,className:Ln("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}));jm.displayName=Cm.displayName;const Gx=Rm("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"}}),Vm=G.forwardRef(({className:e,variant:t,...n},r)=>w.jsx(Pm,{ref:r,className:Ln(Gx({variant:t}),e),...n}));Vm.displayName=Pm.displayName;const Kx=G.forwardRef(({className:e,...t},n)=>w.jsx(Am,{ref:n,className:Ln("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}));Kx.displayName=Am.displayName;const Om=G.forwardRef(({className:e,...t},n)=>w.jsx(Mm,{ref:n,className:Ln("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:w.jsx($x,{className:"h-4 w-4"})}));Om.displayName=Mm.displayName;const Im=G.forwardRef(({className:e,...t},n)=>w.jsx(km,{ref:n,className:Ln("text-sm font-semibold",e),...t}));Im.displayName=km.displayName;const _m=G.forwardRef(({className:e,...t},n)=>w.jsx(Em,{ref:n,className:Ln("text-sm opacity-90",e),...t}));_m.displayName=Em.displayName;const Qx=1;let ra=0;function Yx(){return ra=(ra+1)%Number.MAX_VALUE,ra.toString()}const ke={state:{toasts:[]},listeners:[],getState:()=>ke.state,setState:e=>{typeof e=="function"?ke.state=e(ke.state):ke.state={...ke.state,...e},ke.listeners.forEach(t=>t(ke.state))},subscribe:e=>(ke.listeners.push(e),()=>{ke.listeners=ke.listeners.filter(t=>t!==e)})},gr=({...e})=>{const t=Yx(),n=o=>ke.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>ke.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return ke.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,Qx)})),{id:t,dismiss:r,update:n}};function Xx(){const[e,t]=T.useState(ke.getState());return T.useEffect(()=>ke.subscribe(r=>{t(r)}),[]),T.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:gr,toasts:e.toasts}}function Zx(){const{toasts:e}=Xx();return w.jsxs(Wx,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>w.jsxs(Vm,{...i,children:[w.jsxs("div",{className:"grid gap-1",children:[n&&w.jsx(Im,{children:n}),r&&w.jsx(_m,{children:r})]}),o,w.jsx(Om,{})]},t)),w.jsx(jm,{})]})}const Fm=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xs=T.createContext({}),ju=T.createContext(null),ws=typeof document<"u",qx=ws?T.useLayoutEffect:T.useEffect,zm=T.createContext({strict:!1}),Vu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Jx="framerAppearId",Bm="data-"+Vu(Jx);function ew(e,t,n,r){const{visualElement:o}=T.useContext(xs),i=T.useContext(zm),s=T.useContext(ju),a=T.useContext(Fm).reducedMotion,l=T.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;T.useInsertionEffect(()=>{u&&u.update(n,s)});const c=T.useRef(!!(n[Bm]&&!window.HandoffComplete));return qx(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),T.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Xn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tw(e,t,n){return T.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xn(n)&&(n.current=r))},[t])}function xo(e){return typeof e=="string"||Array.isArray(e)}function Ss(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ou=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Iu=["initial",...Ou];function Ts(e){return Ss(e.animate)||Iu.some(t=>xo(e[t]))}function Um(e){return!!(Ts(e)||e.variants)}function nw(e,t){if(Ts(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xo(n)?n:void 0,animate:xo(r)?r:void 0}}return e.inherit!==!1?t:{}}function rw(e){const{initial:t,animate:n}=nw(e,T.useContext(xs));return T.useMemo(()=>({initial:t,animate:n}),[Pd(t),Pd(n)])}function Pd(e){return Array.isArray(e)?e.join(" "):e}const kd={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"]},wo={};for(const e in kd)wo[e]={isEnabled:t=>kd[e].some(n=>!!t[n])};function ow(e){for(const t in e)wo[t]={...wo[t],...e[t]}}const $m=T.createContext({}),Hm=T.createContext({}),iw=Symbol.for("motionComponentSymbol");function sw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&ow(e);function i(a,l){let u;const c={...T.useContext(Fm),...a,layoutId:aw(a)},{isStatic:d}=c,f=rw(a),m=r(a,d);if(!d&&ws){f.visualElement=ew(o,m,c,t);const v=T.useContext(Hm),y=T.useContext(zm).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,v))}return T.createElement(xs.Provider,{value:f},u&&f.visualElement?T.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,tw(m,f.visualElement,l),m,d,f.visualElement))}const s=T.forwardRef(i);return s[iw]=o,s}function aw({layoutId:e}){const t=T.useContext($m).id;return t&&e!==void 0?t+"-"+e:e}function lw(e){function t(r,o={}){return sw(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const uw=["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 _u(e){return typeof e!="string"||e.includes("-")?!1:!!(uw.indexOf(e)>-1||/[A-Z]/.test(e))}const Ki={};function cw(e){Object.assign(Ki,e)}const No=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(No);function Wm(e,{layout:t,layoutId:n}){return Dn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ki[e]||e==="opacity")}const Oe=e=>!!(e&&e.getVelocity),dw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fw=No.length;function pw(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Km=Gm("--"),wl=Gm("var(--"),hw=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,mw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,tn=(e,t,n)=>Math.min(Math.max(n,e),t),jn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xr={...jn,transform:e=>tn(0,1,e)},ni={...jn,default:1},Zr=e=>Math.round(e*1e5)/1e5,Cs=/(-)?([\d]*\.?[\d])+/g,Qm=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bo(e){return typeof e=="string"}const Lo=e=>({test:t=>bo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vt=Lo("deg"),gt=Lo("%"),O=Lo("px"),yw=Lo("vh"),vw=Lo("vw"),Ed={...gt,parse:e=>gt.parse(e)/100,transform:e=>gt.transform(e*100)},Ad={...jn,transform:Math.round},Ym={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,size:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,rotate:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:ni,scaleX:ni,scaleY:ni,scaleZ:ni,skew:Vt,skewX:Vt,skewY:Vt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Xr,originX:Ed,originY:Ed,originZ:O,zIndex:Ad,fillOpacity:Xr,strokeOpacity:Xr,numOctaves:Ad};function Fu(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Km(d)){i[d]=f;continue}const m=Ym[d],v=mw(f,m);if(Dn.has(d)){if(l=!0,s[d]=v,!c)continue;f!==(m.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=v):o[d]=v}if(t.transform||(l||r?o.transform=pw(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=a;o.transformOrigin=`${d} ${f} ${m}`}}const zu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xm(e,t,n){for(const r in t)!Oe(t[r])&&!Wm(r,n)&&(e[r]=t[r])}function xw({transformTemplate:e},t,n){return T.useMemo(()=>{const r=zu();return Fu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ww(e,t,n){const r=e.style||{},o={};return Xm(o,r,e),Object.assign(o,xw(e,t,n)),e.transformValues?e.transformValues(o):o}function Sw(e,t,n){const r={},o=ww(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Tw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Tw.has(e)}let Zm=e=>!Qi(e);function Cw(e){e&&(Zm=t=>t.startsWith("on")?!Qi(t):e(t))}try{Cw(require("@emotion/is-prop-valid").default)}catch{}function Pw(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zm(o)||n===!0&&Qi(o)||!t&&!Qi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Md(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function kw(e,t,n){const r=Md(t,e.x,e.width),o=Md(n,e.y,e.height);return`${r} ${o}`}const Ew={offset:"stroke-dashoffset",array:"stroke-dasharray"},Aw={offset:"strokeDashoffset",array:"strokeDasharray"};function Mw(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ew:Aw;e[i.offset]=O.transform(-r);const s=O.transform(t),a=O.transform(n);e[i.array]=`${s} ${a}`}function Bu(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Fu(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:y}=e;m.transform&&(y&&(v.transform=m.transform),delete m.transform),y&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=kw(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&Mw(m,s,a,l,!1)}const qm=()=>({...zu(),attrs:{}}),Uu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Rw(e,t,n,r){const o=T.useMemo(()=>{const i=qm();return Bu(i,t,{enableHardwareAcceleration:!1},Uu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Xm(i,e.style,e),o.style={...i,...o.style}}return o}function Nw(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(_u(n)?Rw:Sw)(r,i,s,n),c={...Pw(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=T.useMemo(()=>Oe(d)?d.get():d,[d]);return T.createElement(n,{...c,children:f})}}function Jm(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 eg=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 tg(e,t,n,r){Jm(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(eg.has(o)?o:Vu(o),t.attrs[o])}function $u(e,t){const{style:n}=e,r={};for(const o in n)(Oe(n[o])||t.style&&Oe(t.style[o])||Wm(o,e))&&(r[o]=n[o]);return r}function ng(e,t){const n=$u(e,t);for(const r in e)if(Oe(e[r])||Oe(t[r])){const o=No.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Hu(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function bw(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yi=e=>Array.isArray(e),Lw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Dw=e=>Yi(e)?e[e.length-1]||0:e;function wi(e){const t=Oe(e)?e.get():e;return Lw(t)?t.toValue():t}function jw({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Vw(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const rg=e=>(t,n)=>{const r=T.useContext(xs),o=T.useContext(ju),i=()=>jw(e,t,r,o);return n?i():bw(i)};function Vw(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=wi(i[f]);let{initial:s,animate:a}=e;const l=Ts(e),u=Um(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Ss(d)&&(Array.isArray(d)?d:[d]).forEach(m=>{const v=Hu(e,m);if(!v)return;const{transitionEnd:y,transition:S,...g}=v;for(const p in g){let h=g[p];if(Array.isArray(h)){const x=c?h.length-1:0;h=h[x]}h!==null&&(o[p]=h)}for(const p in y)o[p]=y[p]}),o}const se=e=>e;class Rd{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Ow(e){let t=new Rd,n=new Rd,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=Ow(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,Iw),1),o.timestamp=d,o.isProcessing=!0,ri.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ri.reduce((d,f)=>{const m=i[f];return d[f]=(v,y=!1,S=!1)=>(n||l(),m.schedule(v,y,S)),d},{}),cancel:d=>ri.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Z,cancel:bt,state:Se,steps:oa}=_w(typeof requestAnimationFrame<"u"?requestAnimationFrame:se,!0),Fw={useVisualState:rg({scrapeMotionValuesFromProps:ng,createRenderState:qm,onMount:(e,t,{renderState:n,latestValues:r})=>{Z.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Z.render(()=>{Bu(n,r,{enableHardwareAcceleration:!1},Uu(t.tagName),e.transformTemplate),tg(t,n)})}})},zw={useVisualState:rg({scrapeMotionValuesFromProps:$u,createRenderState:zu})};function Bw(e,{forwardMotionProps:t=!1},n,r){return{..._u(e)?Fw:zw,preloadedFeatures:n,useRender:Nw(t),createVisualElement:r,Component:e}}function Ct(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const og=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ps(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Uw=e=>t=>og(t)&&e(t,Ps(t));function kt(e,t,n,r){return Ct(e,t,Uw(n),r)}const $w=(e,t)=>n=>t(e(n)),Zt=(...e)=>e.reduce($w);function ig(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Nd=ig("dragHorizontal"),bd=ig("dragVertical");function sg(e){let t=!1;if(e==="y")t=bd();else if(e==="x")t=Nd();else{const n=Nd(),r=bd();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ag(){const e=sg(!0);return e?(e(),!1):!0}class an{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ld(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||ag())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Z.update(()=>a[r](i,s))};return kt(e.current,n,o,{passive:!e.getProps()[r]})}class Hw extends an{mount(){this.unmount=Zt(Ld(this.node,!0),Ld(this.node,!1))}unmount(){}}class Ww extends an{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=Zt(Ct(this.node.current,"focus",()=>this.onFocus()),Ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lg=(e,t)=>t?e===t?!0:lg(e,t.parentElement):!1;function ia(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ps(n))}class Gw extends an{constructor(){super(...arguments),this.removeStartListeners=se,this.removeEndListeners=se,this.removeAccessibleListeners=se,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=kt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();Z.update(()=>{!d&&!lg(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=kt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Zt(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||ia("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Z.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Ct(this.node.current,"keyup",s),ia("down",(a,l)=>{this.startPress(a,l)})},n=Ct(this.node.current,"keydown",t),r=()=>{this.isPressing&&ia("cancel",(i,s)=>this.cancelPress(i,s))},o=Ct(this.node.current,"blur",r);this.removeAccessibleListeners=Zt(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Z.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ag()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Z.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=kt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sl=new WeakMap,sa=new WeakMap,Kw=e=>{const t=Sl.get(e.target);t&&t(e)},Qw=e=>{e.forEach(Kw)};function Yw({root:e,...t}){const n=e||document;sa.has(n)||sa.set(n,{});const r=sa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Qw,{root:e,...t})),r[o]}function Xw(e,t,n){const r=Yw(t);return Sl.set(e,n),r.observe(e),()=>{Sl.delete(e),r.unobserve(e)}}const Zw={some:0,all:1};class qw extends an{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:Zw[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 Xw(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(Jw(t,n))&&this.startObserver()}unmount(){}}function Jw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eS={inView:{Feature:qw},tap:{Feature:Gw},focus:{Feature:Ww},hover:{Feature:Hw}};function ug(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function nS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function ks(e,t,n){const r=e.getProps();return Hu(r,t,n!==void 0?n:r.custom,tS(e),nS(e))}let rS=se,Wu=se;const qt=e=>e*1e3,Et=e=>e/1e3,oS={current:!1},cg=e=>Array.isArray(e)&&typeof e[0]=="number";function dg(e){return!!(!e||typeof e=="string"&&fg[e]||cg(e)||Array.isArray(e)&&e.every(dg))}const zr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fg={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 pg(e){if(e)return cg(e)?zr(e):Array.isArray(e)?e.map(pg):fg[e]}function iS(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pg(a);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 sS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const hg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aS=1e-7,lS=12;function uS(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=hg(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>aS&&++auS(i,0,1,e,n);return i=>i===0||i===1?i:hg(o(i),t,r)}const cS=Do(.42,0,1,1),dS=Do(0,0,.58,1),mg=Do(.42,0,.58,1),fS=e=>Array.isArray(e)&&typeof e[0]!="number",gg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yg=e=>t=>1-e(1-t),Gu=e=>1-Math.sin(Math.acos(e)),vg=yg(Gu),pS=gg(Gu),xg=Do(.33,1.53,.69,.99),Ku=yg(xg),hS=gg(Ku),mS=e=>(e*=2)<1?.5*Ku(e):.5*(2-Math.pow(2,-10*(e-1))),gS={linear:se,easeIn:cS,easeInOut:mg,easeOut:dS,circIn:Gu,circInOut:pS,circOut:vg,backIn:Ku,backInOut:hS,backOut:xg,anticipate:mS},Dd=e=>{if(Array.isArray(e)){Wu(e.length===4);const[t,n,r,o]=e;return Do(t,n,r,o)}else if(typeof e=="string")return gS[e];return e},Qu=(e,t)=>n=>!!(bo(n)&&gw.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),wg=(e,t,n)=>r=>{if(!bo(r))return r;const[o,i,s,a]=r.match(Cs);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},yS=e=>tn(0,255,e),aa={...jn,transform:e=>Math.round(yS(e))},xn={test:Qu("rgb","red"),parse:wg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+Zr(Xr.transform(r))+")"};function vS(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 Tl={test:Qu("#"),parse:vS,transform:xn.transform},Zn={test:Qu("hsl","hue"),parse:wg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gt.transform(Zr(t))+", "+gt.transform(Zr(n))+", "+Zr(Xr.transform(r))+")"},Ee={test:e=>xn.test(e)||Tl.test(e)||Zn.test(e),parse:e=>xn.test(e)?xn.parse(e):Zn.test(e)?Zn.parse(e):Tl.parse(e),transform:e=>bo(e)?e:e.hasOwnProperty("red")?xn.transform(e):Zn.transform(e)},ne=(e,t,n)=>-n*e+n*t+e;function la(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 xS({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=la(l,a,e+1/3),i=la(l,a,e),s=la(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const ua=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},wS=[Tl,xn,Zn],SS=e=>wS.find(t=>t.test(e));function jd(e){const t=SS(e);let n=t.parse(e);return t===Zn&&(n=xS(n)),n}const Sg=(e,t)=>{const n=jd(e),r=jd(t),o={...n};return i=>(o.red=ua(n.red,r.red,i),o.green=ua(n.green,r.green,i),o.blue=ua(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),xn.transform(o))};function TS(e){var t,n;return isNaN(e)&&bo(e)&&(((t=e.match(Cs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Qm))===null||n===void 0?void 0:n.length)||0)>0}const Tg={regex:hw,countKey:"Vars",token:"${v}",parse:se},Cg={regex:Qm,countKey:"Colors",token:"${c}",parse:Ee.parse},Pg={regex:Cs,countKey:"Numbers",token:"${n}",parse:jn.parse};function ca(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Xi(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ca(n,Tg),ca(n,Cg),ca(n,Pg),n}function kg(e){return Xi(e).values}function Eg(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Xi(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function PS(e){const t=kg(e);return Eg(e)(t.map(CS))}const nn={test:TS,parse:kg,createTransformer:Eg,getAnimatableNone:PS},Ag=(e,t)=>n=>`${n>0?t:e}`;function Mg(e,t){return typeof e=="number"?n=>ne(e,t,n):Ee.test(e)?Sg(e,t):e.startsWith("var(")?Ag(e,t):Ng(e,t)}const Rg=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Mg(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mg(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Ng=(e,t)=>{const n=nn.createTransformer(t),r=Xi(e),o=Xi(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Zt(Rg(r.values,o.values),n):Ag(e,t)},So=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Vd=(e,t)=>n=>ne(e,t,n);function ES(e){return typeof e=="number"?Vd:typeof e=="string"?Ee.test(e)?Sg:Ng:Array.isArray(e)?Rg:typeof e=="object"?kS:Vd}function AS(e,t,n){const r=[],o=n||ES(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=AS(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(tn(e[0],e[i-1],u)):l}function MS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=So(0,t,r);e.push(ne(n,1,o))}}function RS(e){const t=[0];return MS(t,e.length-1),t}function NS(e,t){return e.map(n=>n*t)}function bS(e,t){return e.map(()=>t||mg).splice(0,e.length-1)}function Zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=fS(r)?r.map(Dd):Dd(r),i={done:!1,value:t[0]},s=NS(n&&n.length===t.length?n:RS(t),e),a=bg(s,t,{ease:Array.isArray(o)?o:bS(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Lg(e,t){return t?e*(1e3/t):0}const LS=5;function Dg(e,t,n){const r=Math.max(t-LS,0);return Lg(n-e(r),t-r)}const da=.001,DS=.01,Od=10,jS=.05,VS=1;function OS({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;rS(e<=qt(Od));let s=1-t;s=tn(jS,VS,s),e=tn(DS,Od,Et(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,m=Cl(u,s),v=Math.exp(-d);return da-f/m*v},i=u=>{const d=u*s*e,f=d*n+n,m=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Cl(Math.pow(u,2),s);return(-o(u)+da>0?-1:1)*((f-m)*v)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-da+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=_S(o,i,a);if(e=qt(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const IS=12;function _S(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function BS(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Id(e,zS)&&Id(e,FS)){const n=OS(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function jg({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=BS({...r,velocity:-Et(r.velocity||0)}),m=d||0,v=l/(2*Math.sqrt(a*u)),y=i-o,S=Et(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(v<1){const h=Cl(S,v);p=x=>{const C=Math.exp(-v*S*x);return i-C*((m+v*S*y)/h*Math.sin(h*x)+y*Math.cos(h*x))}}else if(v===1)p=h=>i-Math.exp(-S*h)*(y+(m+S*y)*h);else{const h=S*Math.sqrt(v*v-1);p=x=>{const C=Math.exp(-v*S*x),k=Math.min(h*x,300);return i-C*((m+v*S*y)*Math.sinh(k)+h*y*Math.cosh(k))/h}}return{calculatedDuration:f&&c||null,next:h=>{const x=p(h);if(f)s.done=h>=c;else{let C=m;h!==0&&(v<1?C=Dg(p,h,x):C=0);const k=Math.abs(C)<=n,P=Math.abs(i-x)<=t;s.done=k&&P}return s.value=s.done?i:x,s}}}function _d({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},m=E=>a!==void 0&&El,v=E=>a===void 0?l:l===void 0||Math.abs(a-E)-y*Math.exp(-E/r),h=E=>g+p(E),x=E=>{const L=p(E),D=h(E);f.done=Math.abs(L)<=u,f.value=f.done?g:D};let C,k;const P=E=>{m(f.value)&&(C=E,k=jg({keyframes:[f.value,v(f.value)],velocity:Dg(h,E,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:E=>{let L=!1;return!k&&C===void 0&&(L=!0,x(E),P(E)),C!==void 0&&E>C?k.next(E-C):(!L&&x(E),f)}}}const US=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>bt(t),now:()=>Se.isProcessing?Se.timestamp:performance.now()}},Fd=2e4;function zd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Fd?1/0:t}const $S={decay:_d,inertia:_d,tween:Zi,keyframes:Zi,spring:jg};function qi({autoplay:e=!0,delay:t=0,driver:n=US,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let m=1,v=!1,y,S;const g=()=>{S=new Promise(j=>{y=j})};g();let p;const h=$S[o]||Zi;let x;h!==Zi&&typeof r[0]!="number"&&(x=bg([0,100],r,{clamp:!1}),r=[0,100]);const C=h({...f,keyframes:r});let k;a==="mirror"&&(k=h({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let P="idle",E=null,L=null,D=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=zd(C));const{calculatedDuration:$}=C;let V=1/0,ee=1/0;$!==null&&(V=$+s,ee=V*(i+1)-s);let N=0;const q=j=>{if(L===null)return;m>0&&(L=Math.min(L,j)),m<0&&(L=Math.min(j-ee/m,L)),E!==null?N=E:N=Math.round(j-L)*m;const B=N-t*(m>=0?1:-1),W=m>=0?B<0:B>ee;N=Math.max(B,0),P==="finished"&&E===null&&(N=ee);let Ie=N,Vn=C;if(i){const Es=Math.min(N,ee)/V;let jo=Math.floor(Es),un=Es%1;!un&&Es>=1&&(un=1),un===1&&jo--,jo=Math.min(jo,i+1),!!(jo%2)&&(a==="reverse"?(un=1-un,s&&(un-=s/V)):a==="mirror"&&(Vn=k)),Ie=tn(0,1,un)*V}const _e=W?{done:!1,value:r[0]}:Vn.next(Ie);x&&(_e.value=x(_e.value));let{done:ln}=_e;!W&&$!==null&&(ln=m>=0?N>=ee:N<=0);const sy=E===null&&(P==="finished"||P==="running"&&ln);return d&&d(_e.value),sy&&M(),_e},z=()=>{p&&p.stop(),p=void 0},ae=()=>{P="idle",z(),y(),g(),L=D=null},M=()=>{P="finished",c&&c(),z(),y()},b=()=>{if(v)return;p||(p=n(q));const j=p.now();l&&l(),E!==null?L=j-E:(!L||P==="finished")&&(L=j),P==="finished"&&g(),D=L,E=null,P="running",p.start()};e&&b();const I={then(j,B){return S.then(j,B)},get time(){return Et(N)},set time(j){j=qt(j),N=j,E!==null||!p||m===0?E=j:L=p.now()-j/m},get duration(){const j=C.calculatedDuration===null?zd(C):C.calculatedDuration;return Et(j)},get speed(){return m},set speed(j){j===m||!p||(m=j,I.time=Et(N))},get state(){return P},play:b,pause:()=>{P="paused",E=N},stop:()=>{v=!0,P!=="idle"&&(P="idle",u&&u(),ae())},cancel:()=>{D!==null&&q(D),ae()},complete:()=>{P="finished"},sample:j=>(L=0,q(j))};return I}function HS(e){let t;return()=>(t===void 0&&(t=e()),t)}const WS=HS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),GS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),oi=10,KS=2e4,QS=(e,t)=>t.type==="spring"||e==="backgroundColor"||!dg(t.ease);function YS(e,t,{onUpdate:n,onComplete:r,...o}){if(!(WS()&&GS.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(h=>{a=h})};c();let{keyframes:d,duration:f=300,ease:m,times:v}=o;if(QS(t,o)){const h=qi({...o,repeat:0,delay:0});let x={done:!1,value:d[0]};const C=[];let k=0;for(;!x.done&&k{u=!1,y.cancel()},g=()=>{u=!0,Z.update(S),a(),c()};return y.onfinish=()=>{u||(e.set(sS(d,o)),r&&r(),g())},{then(h,x){return l.then(h,x)},attachTimeline(h){return y.timeline=h,y.onfinish=null,se},get time(){return Et(y.currentTime||0)},set time(h){y.currentTime=qt(h)},get speed(){return y.playbackRate},set speed(h){y.playbackRate=h},get duration(){return Et(f)},play:()=>{s||(y.play(),bt(S))},pause:()=>y.pause(),stop:()=>{if(s=!0,y.playState==="idle")return;const{currentTime:h}=y;if(h){const x=qi({...o,autoplay:!1});e.setWithVelocity(x.sample(h-oi).value,x.sample(h).value,oi)}g()},complete:()=>{u||y.finish()},cancel:g}}function XS({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:se,pause:se,stop:se,then:i=>(i(),Promise.resolve()),cancel:se,complete:se});return t?qi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const ZS={type:"spring",stiffness:500,damping:25,restSpeed:10},qS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JS={type:"keyframes",duration:.8},eT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tT=(e,{keyframes:t})=>t.length>2?JS:Dn.has(e)?e.startsWith("scale")?qS(t[1]):ZS:eT,Pl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(nn.test(t)||t==="0")&&!t.startsWith("url(")),nT=new Set(["brightness","contrast","saturate","opacity"]);function rT(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cs)||[];if(!r)return e;const o=n.replace(r,"");let i=nT.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const oT=/([a-z-]*)\(.*?\)/g,kl={...nn,getAnimatableNone:e=>{const t=e.match(oT);return t?t.map(rT).join(" "):e}},iT={...Ym,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:kl,WebkitFilter:kl},Yu=e=>iT[e];function Vg(e,t){let n=Yu(e);return n!==kl&&(n=nn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Og=e=>/^0[^.\s]+$/.test(e);function sT(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Og(e)}function aT(e,t,n,r){const o=Pl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Xu(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-qt(s);const l=aT(t,e,n,i),u=l[0],c=l[l.length-1],d=Pl(e,u),f=Pl(e,c);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(lT(i)||(m={...m,...tT(e,m)}),m.duration&&(m.duration=qt(m.duration)),m.repeatDelay&&(m.repeatDelay=qt(m.repeatDelay)),!d||!f||oS.current||i.type===!1||uT.skipAnimations)return XS(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=YS(t,e,m);if(v)return v}return qi(m)};function Ji(e){return!!(Oe(e)&&e.add)}const Ig=e=>/^\-?\d*\.?\d+$/.test(e);function qu(e,t){e.indexOf(t)===-1&&e.push(t)}function Ju(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ec{constructor(){this.subscriptions=[]}add(t){return qu(this.subscriptions,t),()=>Ju(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 dT{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Se;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Z.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Z.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=cT(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ec);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Lg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yr(e,t){return new dT(e,t)}const _g=e=>t=>t.test(e),fT={test:e=>e==="auto",parse:e=>e},Fg=[jn,O,gt,Vt,vw,yw,fT],jr=e=>Fg.find(_g(e)),pT=[...Fg,Ee,nn],hT=e=>pT.find(_g(e));function mT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yr(n))}function gT(e,t){const n=ks(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=Dw(i[s]);mT(e,s,a)}}function yT(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&gT(e,s)}),u}function El(e,t,n={}){const r=ks(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(zg(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return TT(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function TT(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(CT).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(El(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function CT(e,t){return e.sortNodePosition(t)}function PT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>El(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=El(e,t,n);else{const o=typeof t=="function"?ks(e,t,n.custom):t;r=Promise.all(zg(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const kT=[...Ou].reverse(),ET=Ou.length;function AT(e){return t=>Promise.all(t.map(({animation:n,options:r})=>PT(e,n,r)))}function MT(e){let t=AT(e);const n=NT();let r=!0;const o=(l,u)=>{const c=ks(e,u);if(c){const{transition:d,transitionEnd:f,...m}=c;l={...l,...m,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],m=new Set;let v={},y=1/0;for(let g=0;gy&&C,D=!1;const $=Array.isArray(x)?x:[x];let V=$.reduce(o,{});k===!1&&(V={});const{prevResolvedValues:ee={}}=h,N={...ee,...V},q=z=>{L=!0,m.has(z)&&(D=!0,m.delete(z)),h.needsAnimating[z]=!0};for(const z in N){const ae=V[z],M=ee[z];if(v.hasOwnProperty(z))continue;let b=!1;Yi(ae)&&Yi(M)?b=!ug(ae,M):b=ae!==M,b?ae!==void 0?q(z):m.add(z):ae!==void 0&&m.has(z)?q(z):h.protectedKeys[z]=!0}h.prevProp=x,h.prevResolvedValues=V,h.isActive&&(v={...v,...V}),r&&e.blockInitialAnimation&&(L=!1),L&&(!P||D)&&f.push(...$.map(z=>({animation:z,options:{type:p,...l}})))}if(m.size){const g={};m.forEach(p=>{const h=e.getBaseTarget(p);h!==void 0&&(g[p]=h)}),f.push({animation:g})}let S=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function RT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ug(t,e):!1}function cn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function NT(){return{animate:cn(!0),whileInView:cn(),whileHover:cn(),whileTap:cn(),whileDrag:cn(),whileFocus:cn(),exit:cn()}}class bT extends an{constructor(t){super(t),t.animationState||(t.animationState=MT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ss(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let LT=0;class DT extends an{constructor(){super(...arguments),this.id=LT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const jT={animation:{Feature:bT},exit:{Feature:DT}},Bd=(e,t)=>Math.abs(e-t);function VT(e,t){const n=Bd(e.x,t.x),r=Bd(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bg{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=pa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=VT(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:v}=d,{timestamp:y}=Se;this.history.push({...v,timestamp:y});const{onStart:S,onMove:g}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=fa(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=pa(d.type==="pointercancel"?this.lastMoveEventInfo:fa(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,S),v&&v(d,S)},!og(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ps(t),a=fa(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Se;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,pa(a,this.history)),this.removeListeners=Zt(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),bt(this.updatePoint)}}function fa(e,t){return t?{point:t(e.point)}:e}function Ud(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pa({point:e},t){return{point:e,delta:Ud(e,Ug(t)),offset:Ud(e,OT(t)),velocity:IT(t,.1)}}function OT(e){return e[0]}function Ug(e){return e[e.length-1]}function IT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ug(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qt(t)));)n--;if(!r)return{x:0,y:0};const i=Et(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 He(e){return e.max-e.min}function Al(e,t=0,n=.01){return Math.abs(e-t)<=n}function $d(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=He(n)/He(t),(Al(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(Al(e.translate)||isNaN(e.translate))&&(e.translate=0)}function qr(e,t,n,r){$d(e.x,t.x,n.x,r?r.originX:void 0),$d(e.y,t.y,n.y,r?r.originY:void 0)}function Hd(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function _T(e,t,n){Hd(e.x,t.x,n.x),Hd(e.y,t.y,n.y)}function Wd(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function Jr(e,t,n){Wd(e.x,t.x,n.x),Wd(e.y,t.y,n.y)}function FT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Gd(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 zT(e,{top:t,left:n,bottom:r,right:o}){return{x:Gd(e.x,n,o),y:Gd(e.y,t,r)}}function Kd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=So(t.min,t.max-r,e.min):r>o&&(n=So(e.min,e.max-o,t.min)),tn(0,1,n)}function $T(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 Ml=.35;function HT(e=Ml){return e===!1?e=0:e===!0&&(e=Ml),{x:Qd(e,"left","right"),y:Qd(e,"top","bottom")}}function Qd(e,t,n){return{min:Yd(e,t),max:Yd(e,n)}}function Yd(e,t){return typeof e=="number"?e:e[t]||0}const Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),qn=()=>({x:Xd(),y:Xd()}),Zd=()=>({min:0,max:0}),ue=()=>({x:Zd(),y:Zd()});function Qe(e){return[e("x"),e("y")]}function $g({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GT(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 ha(e){return e===void 0||e===1}function Rl({scale:e,scaleX:t,scaleY:n}){return!ha(e)||!ha(t)||!ha(n)}function pn(e){return Rl(e)||Hg(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hg(e){return qd(e.x)||qd(e.y)}function qd(e){return e&&e!=="0%"}function es(e,t,n){const r=e-n,o=t*r;return n+o}function Jd(e,t,n,r,o){return o!==void 0&&(e=es(e,o,r)),es(e,n,r)+t}function Nl(e,t=0,n=1,r,o){e.min=Jd(e.min,t,n,r,o),e.max=Jd(e.max,t,n,r,o)}function Wg(e,{x:t,y:n}){Nl(e.x,t.translate,t.scale,t.originPoint),Nl(e.y,n.translate,n.scale,n.originPoint)}function KT(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function _t(e,t){e.min=e.min+t,e.max=e.max+t}function tf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ne(e.min,e.max,i);Nl(e,t[n],t[r],s,t.scale)}const QT=["x","scaleX","originX"],YT=["y","scaleY","originY"];function Jn(e,t){tf(e.x,t,QT),tf(e.y,t,YT)}function Gg(e,t){return $g(GT(e.getBoundingClientRect(),t))}function XT(e,t,n){const r=Gg(e,n),{scroll:o}=t;return o&&(_t(r.x,o.offset.x),_t(r.y,o.offset.y)),r}const Kg=({current:e})=>e?e.ownerDocument.defaultView:null,ZT=new WeakMap;class qT{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ue(),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(Ps(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:m,onDragStart:v}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=sg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qe(S=>{let g=this.getAxisMotionValue(S).get()||0;if(gt.test(g)){const{projection:p}=this.visualElement;if(p&&p.layout){const h=p.layout.layoutBox[S];h&&(g=He(h)*(parseFloat(g)/100))}}this.originPoint[S]=g}),v&&Z.update(()=>v(c,d),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(m&&this.currentDirection===null){this.currentDirection=JT(S),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Qe(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 Bg(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Kg(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&&Z.update(()=>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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ii(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=FT(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&&Xn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=zT(o.layoutBox,n):this.constraints=!1,this.elastic=HT(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=$T(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xn(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=XT(r,o.root,this.visualElement.getTransformPagePoint());let s=BT(o.layout.layoutBox,i);if(n){const a=n(WT(s));this.hasMutatedConstraints=!!a,a&&(s=$g(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qe(c=>{if(!ii(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,m=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Zu(t,r,0,n))}stopAnimation(){Qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qe(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){Qe(n=>{const{drag:r}=this.getProps();if(!ii(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]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Qe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=UT({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(),Qe(s=>{if(!ii(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ne(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;ZT.set(this.visualElement,this);const t=this.visualElement.current,n=kt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qe(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=Ml,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function JT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class eC extends an{constructor(t){super(t),this.removeGroupControls=se,this.removeListeners=se,this.controls=new qT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||se}unmount(){this.removeGroupControls(),this.removeListeners()}}const nf=e=>(t,n)=>{e&&Z.update(()=>e(t,n))};class tC extends an{constructor(){super(...arguments),this.removePointerDownListener=se}onPointerDown(t){this.session=new Bg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Z.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=kt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function nC(){const e=T.useContext(ju);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=T.useId();return T.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=rf(e,t.target.x),r=rf(e,t.target.y);return`${n}% ${r}%`}},rC={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=nn.parse(e);if(o.length>5)return r;const i=nn.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=ne(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class oC extends G.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;cw(iC),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()||Z.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection: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 Qg(e){const[t,n]=nC(),r=T.useContext($m);return G.createElement(oC,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(Hm),isPresent:t,safeToRemove:n})}const iC={borderRadius:{...Vr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:rC},Yg=["TopLeft","TopRight","BottomLeft","BottomRight"],sC=Yg.length,of=e=>typeof e=="string"?parseFloat(e):e,sf=e=>typeof e=="number"||O.test(e);function aC(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity!==void 0?n.opacity:1,lC(r)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,uC(r))):i&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(So(e,t,r))}function lf(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){lf(e.x,t.x),lf(e.y,t.y)}function uf(e,t,n,r,o){return e-=t,e=es(e,1/n,r),o!==void 0&&(e=es(e,1/o,r)),e}function cC(e,t=0,n=1,r=.5,o,i=e,s=e){if(gt.test(t)&&(t=parseFloat(t),t=ne(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=uf(e.min,t,n,a,o),e.max=uf(e.max,t,n,a,o)}function cf(e,t,[n,r,o],i,s){cC(e,t[n],t[r],t[o],t.scale,i,s)}const dC=["x","scaleX","originX"],fC=["y","scaleY","originY"];function df(e,t,n,r){cf(e.x,t,dC,n?n.x:void 0,r?r.x:void 0),cf(e.y,t,fC,n?n.y:void 0,r?r.y:void 0)}function ff(e){return e.translate===0&&e.scale===1}function Zg(e){return ff(e.x)&&ff(e.y)}function pC(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function qg(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function pf(e){return He(e.x)/He(e.y)}class hC{constructor(){this.members=[]}add(t){qu(this.members,t),t.scheduleRender()}remove(t){if(Ju(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 hf(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const mC=(e,t)=>e.depth-t.depth;class gC{constructor(){this.children=[],this.isDirty=!1}add(t){qu(this.children,t),this.isDirty=!0}remove(t){Ju(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mC),this.isDirty=!1,this.children.forEach(t)}}function yC(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(bt(r),e(i-t))};return Z.read(r,!0),()=>bt(r)}function vC(e){window.MotionDebug&&window.MotionDebug.record(e)}function xC(e){return e instanceof SVGElement&&e.tagName!=="svg"}function wC(e,t,n){const r=Oe(e)?e:yr(e);return r.start(Zu("",r,t,n)),r.animation}const mf=["","X","Y","Z"],SC={visibility:"hidden"},gf=1e3;let TC=0;const hn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Jg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=TC++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hn.totalNodes=hn.resolvedTargetDeltas=hn.recalculatedProjection=0,this.nodes.forEach(kC),this.nodes.forEach(NC),this.nodes.forEach(bC),this.nodes.forEach(EC),vC(hn)},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=yC(f,250),Si.hasAnimatedSinceResize&&(Si.hasAnimatedSinceResize=!1,this.nodes.forEach(vf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||OC,{onLayoutAnimationStart:S,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!qg(this.targetLayout,v)||m,h=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,h);const x={...Xu(y,"layout"),onPlay:S,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||vf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,bt(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(LC),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(AC),this.sharedNodes.forEach(DC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=x/1e3;xf(d.x,s.x,C),xf(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jC(this.relativeTarget,this.relativeTargetOrigin,f,C),h&&pC(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h=ue()),Ke(h,this.relativeTarget)),y&&(this.animationValues=c,aC(c,u,this.latestValues,C,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{Si.hasAnimatedSinceResize=!0,this.currentAnimation=wC(0,gf,{...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(gf),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&&ey(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();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}Ke(a,l),Jn(a,c),qr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new hC),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(yf),this.root.sharedNodes.clear()}}}function CC(e){e.updateLayout()}function PC(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"?Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=He(f);f.min=r[d].min,f.max=f.min+m}):ey(i,n.layoutBox,r)&&Qe(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],m=He(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=qn();qr(a,r,n.layoutBox);const l=qn();s?qr(l,e.applyTransform(o,!0),n.measuredBox):qr(l,r,n.layoutBox);const u=!Zg(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const v=ue();Jr(v,n.layoutBox,f.layoutBox);const y=ue();Jr(y,r,m.layoutBox),qg(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,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 kC(e){hn.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 EC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AC(e){e.clearSnapshot()}function yf(e){e.clearMeasurements()}function MC(e){e.isLayoutDirty=!1}function RC(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NC(e){e.resolveTargetDelta()}function bC(e){e.calcProjection()}function LC(e){e.resetRotation()}function DC(e){e.removeLeadSnapshot()}function xf(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wf(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function jC(e,t,n,r){wf(e.x,t.x,n.x,r),wf(e.y,t.y,n.y,r)}function VC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OC={duration:.45,ease:[.4,0,.1,1]},Sf=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Tf=Sf("applewebkit/")&&!Sf("chrome/")?Math.round:se;function Cf(e){e.min=Tf(e.min),e.max=Tf(e.max)}function IC(e){Cf(e.x),Cf(e.y)}function ey(e,t,n){return e==="position"||e==="preserve-aspect"&&!Al(pf(t),pf(n),.2)}const _C=Jg({attachResizeListener:(e,t)=>Ct(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ma={current:void 0},ty=Jg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ma.current){const e=new _C({});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),FC={pan:{Feature:tC},drag:{Feature:eC,ProjectionNode:ty,MeasureLayout:Qg}},zC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function BC(e){const t=zC.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function bl(e,t,n=1){const[r,o]=BC(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ig(s)?parseFloat(s):s}else return wl(o)?bl(o,t,n+1):o}function UC(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!wl(i))return;const s=bl(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!wl(i))continue;const s=bl(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const $C=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ny=e=>$C.has(e),HC=e=>Object.keys(e).some(ny),Pf=e=>e===jn||e===O,kf=(e,t)=>parseFloat(e.split(", ")[t]),Ef=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return kf(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?kf(i[1],e):0}},WC=new Set(["x","y","z"]),GC=No.filter(e=>!WC.has(e));function KC(e){const t=[];return GC.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const vr={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:Ef(4,13),y:Ef(5,14)};vr.translateX=vr.x;vr.translateY=vr.y;const QC=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=vr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=vr[u](l,i)}),e},YC=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(ny);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=jr(c);const f=t[l];let m;if(Yi(f)){const v=f.length,y=f[0]===null?1:0;c=f[y],d=jr(c);for(let S=y;S=0?window.pageYOffset:null,u=QC(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),ws&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function XC(e,t,n,r){return HC(t)?YC(e,t,n,r):{target:t,transitionEnd:r}}const ZC=(e,t,n,r)=>{const o=UC(e,t,r);return t=o.target,r=o.transitionEnd,XC(e,t,n,r)},Ll={current:null},ry={current:!1};function qC(){if(ry.current=!0,!!ws)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ll.current=e.matches;e.addListener(t),t()}else Ll.current=!1}function JC(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Oe(i))e.addValue(o,i),Ji(r)&&r.add(o);else if(Oe(s))e.addValue(o,yr(i,{owner:e})),Ji(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,yr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Af=new WeakMap,oy=Object.keys(wo),eP=oy.length,Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tP=Iu.length;class nP{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Z.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Ts(n),this.isVariantNode=Um(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Oe(f)&&(f.set(a[d],!1),Ji(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Af.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ry.current||qC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ll.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Af.delete(this.current),this.projection&&this.projection.unmount(),bt(this.notifyUpdate),bt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Dn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Z.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Hu(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Oe(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 ec),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class iy extends nP{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=xT(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){yT(this,r,s);const a=ZC(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function rP(e){return window.getComputedStyle(e)}class oP extends iy{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Dn.has(n)){const r=Yu(n);return r&&r.default||0}else{const r=rP(t),o=(Km(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gg(t,n)}build(t,n,r,o){Fu(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return $u(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Oe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Jm(t,n,r,o)}}class iP extends iy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dn.has(n)){const r=Yu(n);return r&&r.default||0}return n=eg.has(n)?n:Vu(n),t.getAttribute(n)}measureInstanceViewportBox(){return ue()}scrapeMotionValuesFromProps(t,n){return ng(t,n)}build(t,n,r,o){Bu(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){tg(t,n,r,o)}mount(t){this.isSVGTag=Uu(t.tagName),super.mount(t)}}const sP=(e,t)=>_u(e)?new iP(t,{enableHardwareAcceleration:!1}):new oP(t,{enableHardwareAcceleration:!0}),aP={layout:{ProjectionNode:ty,MeasureLayout:Qg}},lP={...jT,...eS,...FC,...aP},he=lw((e,t)=>Bw(e,t,lP,sP)),uP=Rm("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"}}),To=G.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?B1:"button";return w.jsx(s,{className:Ln(uP({variant:t,size:n,className:e})),ref:i,...o})});To.displayName="Button";const cP=()=>{const e=()=>{gr({title:"🚧 Contact form coming soon!",description:"This feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return w.jsx(he.header,{initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.8},className:"relative z-50 bg-black/30 backdrop-blur-lg border-b border-white/10",children:w.jsx("div",{className:"container mx-auto px-6 py-4",children:w.jsxs("div",{className:"flex items-center justify-between",children:[w.jsxs(he.a,{href:"#",className:"flex items-center space-x-3",whileHover:{scale:1.05},children:[w.jsx("img",{src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/abee89a2-ff6b-4f71-8db9-47275c249bec/f97c41c697054f5d0d28af7b53b55978.png",alt:"JointBox Logo",className:"w-10 h-10"}),w.jsx("span",{className:"text-2xl font-bold text-white",children:"JointBox"})]}),w.jsx("nav",{className:"hidden md:flex space-x-8",children:["Services","Expertise","Why Us","Contact"].map((t,n)=>w.jsx(he.a,{href:`#${t.toLowerCase().replace(" ","-")}`,className:"text-white/80 hover:text-white transition-colors duration-300 font-medium",whileHover:{y:-2},initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{delay:n*.1},children:t},t))}),w.jsx(To,{onClick:e,className:"bg-blue-600 hover:bg-blue-700 text-white font-semibold px-6 py-2 rounded-lg shadow-lg hover:shadow-blue-500/50 transition-all duration-300",children:"Get Started"})]})})})},dP=()=>{const e=()=>{gr({title:"🚧 Contact form coming soon!",description:"This feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})},t=()=>{gr({title:"🚧 Service details coming soon!",description:"This feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return w.jsxs("section",{id:"home",className:"relative min-h-screen flex items-center justify-center px-6 overflow-hidden",children:[w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-blue-800/10 to-gray-900/50 backdrop-blur-sm"}),w.jsxs(he.div,{className:"relative z-10 text-center max-w-6xl mx-auto",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1},children:[w.jsxs(he.h1,{className:"text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-blue-300 via-white to-blue-400 bg-clip-text text-transparent",initial:{scale:.8},animate:{scale:1},transition:{duration:.8,delay:.2},children:["Empowering Networks.",w.jsx("br",{}),w.jsx("span",{className:"text-white",children:"Enabling Innovation."})]}),w.jsx(he.p,{className:"text-xl md:text-2xl text-white/80 mb-8 max-w-4xl mx-auto leading-relaxed",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:"National leader in IT and networking services. We deliver cutting-edge internet solutions, enterprise-grade IT consulting, and advanced networking infrastructure."}),w.jsxs(he.div,{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{delay:.7},children:[w.jsxs(To,{onClick:e,size:"lg",className:"bg-blue-600 hover:bg-blue-700 text-white font-bold px-8 py-4 rounded-xl shadow-2xl hover:shadow-blue-500/50 transition-all duration-300 group",children:["Start Your Project",w.jsx(Nm,{className:"ml-2 w-5 h-5 group-hover:translate-x-1 transition-transform"})]}),w.jsx(To,{onClick:t,variant:"outline",size:"lg",className:"border-2 border-white/30 text-white hover:bg-white/10 font-bold px-8 py-4 rounded-xl backdrop-blur-sm",children:"View Services"})]})]}),w.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(10)].map((n,r)=>w.jsx(he.div,{className:"absolute w-2 h-2 bg-blue-500/30 rounded-full",style:{left:`${Math.random()*100}%`,top:`${Math.random()*100}%`},animate:{y:[-20,20,-20],opacity:[.1,.5,.1]},transition:{duration:4+Math.random()*3,repeat:1/0,delay:Math.random()*3}},r))})]})},fP=[{icon:Dm,title:"ISP Infrastructure",desc:"Regulatory Compliance"},{icon:bm,title:"Network Design",desc:"Cisco, MikroTik, Huawei"},{icon:Lm,title:"VoIP Deployment",desc:"Lawful Interception (LI)"},{icon:Ox,title:"Cloud & DevOps",desc:"Cybersecurity Consulting"}],pP=()=>w.jsx("section",{id:"expertise",className:"py-20 px-6 relative bg-gray-900/50",children:w.jsxs("div",{className:"container mx-auto max-w-6xl",children:[w.jsxs(he.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[w.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-blue-300 to-blue-500 bg-clip-text text-transparent",children:"Our Expertise"}),w.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"10+ years of experience deploying and optimizing large-scale networks with cutting-edge technologies."})]}),w.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:fP.map((e,t)=>w.jsxs(he.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-lg rounded-2xl p-6 border border-white/20 hover:border-blue-400/50 transition-all duration-300 group",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.15,duration:.5},whileHover:{y:-5,scale:1.02},children:[w.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform",children:w.jsx(e.icon,{className:"w-6 h-6 text-white"})}),w.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:e.title}),w.jsx("p",{className:"text-white/70",children:e.desc})]},t))})]})}),hP=[{icon:zx,title:"IT Services",items:["IT Consulting","Cloud Solutions","Cybersecurity","DevOps"]},{icon:bm,title:"Networking Services",items:["Network Planning","Core & Access Deployment","Load Balancing","High Availability"]},{icon:Du,title:"Internet Services",items:["High-Speed Business Internet","Secure Data Connectivity","ISP-Grade Bandwidth","Routing Services"]},{icon:Ix,title:"Consultation & Licensing",items:["PTA Licensing Support","RIO Contract Guidance","Interconnect Agreements","IP Portal Setup"]}],mP=()=>{const e=()=>{gr({title:"🚧 Service details coming soon!",description:"This feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return w.jsx("section",{id:"services",className:"py-20 px-6 bg-gradient-to-b from-gray-900/50 to-gray-900",children:w.jsxs("div",{className:"container mx-auto max-w-6xl",children:[w.jsxs(he.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[w.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:"Our Services"}),w.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Comprehensive solutions tailored for your business needs."})]}),w.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:hP.map((t,n)=>w.jsxs(he.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-lg rounded-2xl p-8 border border-white/20 hover:border-blue-400/50 transition-all duration-300 group cursor-pointer",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.15,duration:.5},whileHover:{y:-10,scale:1.02},onClick:e,children:[w.jsx("div",{className:"w-16 h-16 bg-blue-600 rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform",children:w.jsx(t.icon,{className:"w-8 h-8 text-white"})}),w.jsx("h3",{className:"text-2xl font-bold text-white mb-4",children:t.title}),w.jsx("ul",{className:"space-y-2",children:t.items.map((r,o)=>w.jsxs("li",{className:"flex items-center text-white/80",children:[w.jsx(Vx,{className:"w-4 h-4 text-green-400 mr-2 flex-shrink-0"}),r]},o))})]},n))})]})})},gP=[{icon:Ux,title:"Expert Consulting Team",desc:"Senior engineers with real-world ISP deployments."},{icon:Bx,title:"Tailored Solutions",desc:"Designed for your business model and technical needs."},{icon:Hx,title:"End-to-End Support",desc:"From design to deployment to documentation."},{icon:Dm,title:"Regulatory-Ready",desc:"Fully compliant with PTA & LI regulations."},{icon:Du,title:"National Reach",desc:"Serving ISPs and businesses across Pakistan."},{icon:jx,title:"Proven Track Record",desc:"10+ years of successful network deployments."}],yP=()=>w.jsx("section",{id:"why-us",className:"py-20 px-6 bg-gray-900/50",children:w.jsxs("div",{className:"container mx-auto max-w-6xl",children:[w.jsx(he.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:w.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-blue-300 to-blue-500 bg-clip-text text-transparent",children:"Why Choose JointBox?"})}),w.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:gP.map((e,t)=>w.jsxs(he.div,{className:"text-center group",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1,duration:.5},children:[w.jsx(he.div,{className:"w-20 h-20 bg-blue-600 rounded-full flex items-center justify-center mx-auto mb-6 group-hover:scale-110 transition-transform",whileHover:{rotate:360},transition:{duration:.6},children:w.jsx(e.icon,{className:"w-10 h-10 text-white"})}),w.jsx("h3",{className:"text-xl font-bold text-white mb-3",children:e.title}),w.jsx("p",{className:"text-white/70",children:e.desc})]},t))})]})}),vP=[{icon:Fx,title:"Head Office",value:"Islamabad, Pakistan"},{icon:Lm,title:"Phone",value:"+92 317 1773118 | +92 312 9670007"},{icon:_x,title:"Email",value:"info@jointbox.net"},{icon:Du,title:"Website",value:"www.jointbox.net"}],xP=()=>{const e=()=>{gr({title:"🚧 Contact form coming soon!",description:"This feature isn't implemented yet—but don't worry! You can request it in your next prompt! 🚀"})};return w.jsx("section",{id:"contact",className:"py-20 px-6 bg-gradient-to-t from-gray-900/50 to-gray-900",children:w.jsxs("div",{className:"container mx-auto max-w-6xl",children:[w.jsxs(he.div,{className:"text-center mb-16",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[w.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-white",children:"Contact Us"}),w.jsx("p",{className:"text-xl text-white/80 max-w-3xl mx-auto",children:"Ready to transform your network infrastructure? Get in touch with our experts today."})]}),w.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[w.jsx(he.div,{className:"space-y-8",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},children:vP.map((t,n)=>w.jsxs("div",{className:"flex items-center space-x-4",children:[w.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center",children:w.jsx(t.icon,{className:"w-6 h-6 text-white"})}),w.jsxs("div",{children:[w.jsx("h3",{className:"text-xl font-bold text-white",children:t.title}),w.jsx("p",{className:"text-white/80",children:t.value})]})]},n))}),w.jsxs(he.div,{className:"bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-lg rounded-2xl p-8 border border-white/20",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:[w.jsx("h3",{className:"text-2xl font-bold text-white mb-6",children:"Get Started Today"}),w.jsx("p",{className:"text-white/80 mb-8",children:"Contact our expert team for a consultation and revolutionize your network infrastructure."}),w.jsxs(To,{onClick:e,className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-4 rounded-xl shadow-2xl hover:shadow-blue-500/50 transition-all duration-300 group",children:["Schedule Consultation",w.jsx(Nm,{className:"ml-2 w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})]})]})})},wP=()=>w.jsx("footer",{className:"py-12 px-6 bg-black/40 backdrop-blur-lg border-t border-white/10",children:w.jsx("div",{className:"container mx-auto max-w-6xl",children:w.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between",children:[w.jsxs("div",{className:"flex items-center space-x-3 mb-4 md:mb-0",children:[w.jsx("img",{src:"https://storage.googleapis.com/hostinger-horizons-assets-prod/abee89a2-ff6b-4f71-8db9-47275c249bec/f97c41c697054f5d0d28af7b53b55978.png",alt:"JointBox Logo",className:"w-10 h-10"}),w.jsx("span",{className:"text-2xl font-bold text-white",children:"JointBox"})]}),w.jsx("p",{className:"text-white/60 text-center md:text-right",children:"© 2025 JointBox. Empowering Networks. Enabling Innovation."})]})})});function SP(){return w.jsxs(w.Fragment,{children:[w.jsxs(d1,{children:[w.jsx("title",{children:"JointBox - Empowering Networks. Enabling Innovation."}),w.jsx("meta",{name:"description",content:"JointBox is a national leader in IT and networking services, specializing in cutting-edge internet solutions, enterprise-grade IT consulting, and advanced networking infrastructure for ISPs and corporate clients."})]}),w.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-900 via-blue-900/50 to-gray-900 text-white overflow-hidden",children:[w.jsx(cP,{}),w.jsxs("main",{children:[w.jsx(dP,{}),w.jsx(pP,{}),w.jsx(mP,{}),w.jsx(yP,{}),w.jsx(xP,{})]}),w.jsx(wP,{}),w.jsx(Zx,{})]})]})}ya.createRoot(document.getElementById("root")).render(w.jsx(G.StrictMode,{children:w.jsx(Kh,{children:w.jsx(SP,{})})}));