function gg(n,o){for(var s=0;sa[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();function Ff(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vl={exports:{}},Io={},yl={exports:{}},we={};var Ud;function vg(){if(Ud)return we;Ud=1;var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;function k(T){return T===null||typeof T!="object"?null:(T=E&&T[E]||T["@@iterator"],typeof T=="function"?T:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,C={};function b(T,L,G){this.props=T,this.context=L,this.refs=C,this.updater=G||y}b.prototype.isReactComponent={},b.prototype.setState=function(T,L){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,L,"setState")},b.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function A(){}A.prototype=b.prototype;function I(T,L,G){this.props=T,this.context=L,this.refs=C,this.updater=G||y}var M=I.prototype=new A;M.constructor=I,R(M,b.prototype),M.isPureReactComponent=!0;var F=Array.isArray,Q=Object.prototype.hasOwnProperty,H={current:null},Y={key:!0,ref:!0,__self:!0,__source:!0};function ce(T,L,G){var J,ue={},ve=null,ie=null;if(L!=null)for(J in L.ref!==void 0&&(ie=L.ref),L.key!==void 0&&(ve=""+L.key),L)Q.call(L,J)&&!Y.hasOwnProperty(J)&&(ue[J]=L[J]);var Se=arguments.length-2;if(Se===1)ue.children=G;else if(1>>1,L=D[T];if(0>>1;Tu(ue,V))veu(ie,ue)?(D[T]=ie,D[ve]=V,T=ve):(D[T]=ue,D[J]=V,T=J);else if(veu(ie,V))D[T]=ie,D[ve]=V,T=ve;else break e}}return z}function u(D,z){var V=D.sortIndex-z.sortIndex;return V!==0?V:D.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var h=[],v=[],w=1,E=null,k=3,y=!1,R=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(D){for(var z=s(v);z!==null;){if(z.callback===null)a(v);else if(z.startTime<=D)a(v),z.sortIndex=z.expirationTime,o(h,z);else break;z=s(v)}}function F(D){if(C=!1,M(D),!R)if(s(h)!==null)R=!0,se(Q);else{var z=s(v);z!==null&&re(F,z.startTime-D)}}function Q(D,z){R=!1,C&&(C=!1,A(ce),ce=-1),y=!0;var V=k;try{for(M(z),E=s(h);E!==null&&(!(E.expirationTime>z)||D&&!xe());){var T=E.callback;if(typeof T=="function"){E.callback=null,k=E.priorityLevel;var L=T(E.expirationTime<=z);z=n.unstable_now(),typeof L=="function"?E.callback=L:E===s(h)&&a(h),M(z)}else a(h);E=s(h)}if(E!==null)var G=!0;else{var J=s(v);J!==null&&re(F,J.startTime-z),G=!1}return G}finally{E=null,k=V,y=!1}}var H=!1,Y=null,ce=-1,ge=5,pe=-1;function xe(){return!(n.unstable_now()-peD||125T?(D.sortIndex=V,o(v,D),s(h)===null&&D===s(v)&&(C?(A(ce),ce=-1):C=!0,re(F,V-T))):(D.sortIndex=L,o(h,D),R||y||(R=!0,se(Q))),D},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(D){var z=k;return function(){var V=k;k=z;try{return D.apply(this,arguments)}finally{k=V}}}})(Sl)),Sl}var Kd;function Sg(){return Kd||(Kd=1,wl.exports=wg()),wl.exports}var qd;function Eg(){if(qd)return dt;qd=1;var n=Ql(),o=Sg();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,w={},E={};function k(e){return h.call(E,e)?!0:h.call(w,e)?!1:v.test(e)?E[e]=!0:(w[e]=!0,!1)}function y(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R(e,t,r,i){if(t===null||typeof t>"u"||y(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.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 C(e,t,r,i,l,c,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=m}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];b[t]=new C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new C(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){b[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){b[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){b[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){b[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){b[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function I(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(A,I);b[t]=new C(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(A,I);b[t]=new C(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(A,I);b[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){b[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){b[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,r,i){var l=b.hasOwnProperty(t)?b[t]:null;(l!==null?l.type!==0:i||!(2S||l[m]!==c[S]){var P=` `+l[m].replace(" at new "," at ");return e.displayName&&P.includes("")&&(P=P.replace("",e.displayName)),P}while(1<=m&&0<=S);break}}}finally{G=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?L(e):""}function ue(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1),e;case 11:return e=J(e.type.render,!1),e;case 1:return e=J(e.type,!0),e;default:return""}}function ve(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 Y:return"Fragment";case H:return"Portal";case ge:return"Profiler";case ce:return"StrictMode";case me:return"Suspense";case q:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xe:return(e.displayName||"Context")+".Consumer";case pe:return(e._context.displayName||"Context")+".Provider";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ie(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 ve(t);case 8:return t===ce?"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 Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ze(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function St(e){e._valueTracker||(e._valueTracker=ze(e))}function yn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=be(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function Et(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 qr(e,t){var r=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Wo(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=Se(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yr(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function Gr(e,t){Yr(e,t);var r=Se(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xr(e,t.type,r):t.hasOwnProperty("defaultValue")&&Xr(e,t.type,Se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dr(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Xr(e,t,r){(t!=="number"||Et(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var xn=Array.isArray;function bt(e,t,r,i){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qt(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qn={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},qo=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){qo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function mr(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function on(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,l=mr(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,l):e[r]=l}}var Yo=V({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 Kt(e,t){if(t){if(Yo[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Zr(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 Jr=null;function hr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,wn=null,qt=null;function jt(e){if(e=wo(e)){if(typeof gr!="function")throw Error(s(280));var t=e.stateNode;t&&(t=xs(t),gr(e.stateNode,e.type,t))}}function Go(e){wn?qt?qt.push(e):qt=[e]:wn=e}function fe(){if(wn){var e=wn,t=qt;if(qt=wn=null,jt(e),t)for(e=0;e>>=0,e===0?32:31-(_m(e)/Am|0)|0}var ts=64,ns=4194304;function to(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 rs(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,l=e.suspendedLanes,c=e.pingedLanes,m=r&268435455;if(m!==0){var S=m&~l;S!==0?i=to(S):(c&=m,c!==0&&(i=to(c)))}else m=r&~l,m!==0?i=to(m):c!==0&&(i=to(c));if(i===0)return 0;if(t!==0&&t!==i&&(t&l)===0&&(l=i&-i,c=t&-t,l>=c||l===16&&(c&4194240)!==0))return t;if((i&4)!==0&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0r;r++)t.push(e);return t}function no(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=r}function Dm(e,t){var r=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 i=e.eventTimes;for(e=e.expirationTimes;0=co),Iu=" ",Mu=!1;function Du(e,t){switch(e){case"keyup":return dh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function ph(e,t){switch(e){case"compositionend":return zu(t);case"keypress":return t.which!==32?null:(Mu=!0,Iu);case"textInput":return e=t.data,e===Iu&&Mu?null:e;default:return null}}function mh(e,t){if(xr)return e==="compositionend"||!Xi&&Du(e,t)?(e=Ru(),ls=Hi=Pn=null,xr=!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:r,offset:t-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Hu(r)}}function Ku(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ku(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=Et();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Et(e.document)}return t}function ea(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 bh(e){var t=qu(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ku(r.ownerDocument.documentElement,r)){if(i!==null&&ea(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=r.textContent.length,c=Math.min(i.start,l);i=i.end===void 0?c:Math.min(i.end,l),!e.extend&&c>i&&(l=i,i=c,c=l),l=Qu(r,c);var m=Qu(r,i);l&&m&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),c>i?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wr=null,ta=null,ho=null,na=!1;function Yu(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;na||wr==null||wr!==Et(i)||(i=wr,"selectionStart"in i&&ea(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ho&&mo(ho,i)||(ho=i,i=gs(ta,"onSelect"),0Pr||(e.current=ma[Pr],ma[Pr]=null,Pr--)}function Te(e,t){Pr++,ma[Pr]=e.current,e.current=t}var Rn={},Ye=Tn(Rn),it=Tn(!1),Xn=Rn;function kr(e,t){var r=e.type.contextTypes;if(!r)return Rn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in r)l[c]=t[c];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function at(e){return e=e.childContextTypes,e!=null}function ws(){je(it),je(Ye)}function cc(e,t,r){if(Ye.current!==Rn)throw Error(s(168));Te(Ye,t),Te(it,r)}function dc(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var l in i)if(!(l in t))throw Error(s(108,ie(e)||"Unknown",l));return V({},r,i)}function Ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,Xn=Ye.current,Te(Ye,e),Te(it,it.current),!0}function fc(e,t,r){var i=e.stateNode;if(!i)throw Error(s(169));r?(e=dc(e,t,Xn),i.__reactInternalMemoizedMergedChildContext=e,je(it),je(Ye),Te(Ye,e)):je(it),Te(it,r)}var an=null,Es=!1,ha=!1;function pc(e){an===null?an=[e]:an.push(e)}function Ih(e){Es=!0,pc(e)}function jn(){if(!ha&&an!==null){ha=!0;var e=0,t=ke;try{var r=an;for(ke=1;e>=m,l-=m,ln=1<<32-_t(t)+l|r<de?(He=le,le=null):He=le.sibling;var Ce=$(j,le,O[de],W);if(Ce===null){le===null&&(le=He);break}e&&le&&Ce.alternate===null&&t(j,le),N=c(Ce,N,de),ae===null?oe=Ce:ae.sibling=Ce,ae=Ce,le=He}if(de===O.length)return r(j,le),_e&&Jn(j,de),oe;if(le===null){for(;dede?(He=le,le=null):He=le.sibling;var Fn=$(j,le,Ce.value,W);if(Fn===null){le===null&&(le=He);break}e&&le&&Fn.alternate===null&&t(j,le),N=c(Fn,N,de),ae===null?oe=Fn:ae.sibling=Fn,ae=Fn,le=He}if(Ce.done)return r(j,le),_e&&Jn(j,de),oe;if(le===null){for(;!Ce.done;de++,Ce=O.next())Ce=U(j,Ce.value,W),Ce!==null&&(N=c(Ce,N,de),ae===null?oe=Ce:ae.sibling=Ce,ae=Ce);return _e&&Jn(j,de),oe}for(le=i(j,le);!Ce.done;de++,Ce=O.next())Ce=X(le,j,de,Ce.value,W),Ce!==null&&(e&&Ce.alternate!==null&&le.delete(Ce.key===null?de:Ce.key),N=c(Ce,N,de),ae===null?oe=Ce:ae.sibling=Ce,ae=Ce);return e&&le.forEach(function(hg){return t(j,hg)}),_e&&Jn(j,de),oe}function De(j,N,O,W){if(typeof O=="object"&&O!==null&&O.type===Y&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Q:e:{for(var oe=O.key,ae=N;ae!==null;){if(ae.key===oe){if(oe=O.type,oe===Y){if(ae.tag===7){r(j,ae.sibling),N=l(ae,O.props.children),N.return=j,j=N;break e}}else if(ae.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===se&&xc(oe)===ae.type){r(j,ae.sibling),N=l(ae,O.props),N.ref=So(j,ae,O),N.return=j,j=N;break e}r(j,ae);break}else t(j,ae);ae=ae.sibling}O.type===Y?(N=ar(O.props.children,j.mode,W,O.key),N.return=j,j=N):(W=Gs(O.type,O.key,O.props,null,j.mode,W),W.ref=So(j,N,O),W.return=j,j=W)}return m(j);case H:e:{for(ae=O.key;N!==null;){if(N.key===ae)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){r(j,N.sibling),N=l(N,O.children||[]),N.return=j,j=N;break e}else{r(j,N);break}else t(j,N);N=N.sibling}N=fl(O,j.mode,W),N.return=j,j=N}return m(j);case se:return ae=O._init,De(j,N,ae(O._payload),W)}if(xn(O))return te(j,N,O,W);if(z(O))return ne(j,N,O,W);ks(j,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,N!==null&&N.tag===6?(r(j,N.sibling),N=l(N,O),N.return=j,j=N):(r(j,N),N=dl(O,j.mode,W),N.return=j,j=N),m(j)):r(j,N)}return De}var jr=wc(!0),Sc=wc(!1),Ns=Tn(null),Ts=null,Or=null,Sa=null;function Ea(){Sa=Or=Ts=null}function ba(e){var t=Ns.current;je(Ns),e._currentValue=t}function Ca(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function _r(e,t){Ts=e,Sa=Or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(lt=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Sa!==e)if(e={context:e,memoizedValue:t,next:null},Or===null){if(Ts===null)throw Error(s(308));Or=e,Ts.dependencies={lanes:0,firstContext:e}}else Or=Or.next=e;return t}var er=null;function Pa(e){er===null?er=[e]:er.push(e)}function Ec(e,t,r,i){var l=t.interleaved;return l===null?(r.next=r,Pa(t)):(r.next=l.next,l.next=r),t.interleaved=r,cn(e,i)}function cn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var On=!1;function ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bc(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 dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ee&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,cn(e,r)}return l=i.interleaved,l===null?(t.next=t,Pa(i)):(t.next=l.next,l.next=t),i.interleaved=t,cn(e,r)}function Rs(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,$i(e,r)}}function Cc(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var l=null,c=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};c===null?l=c=m:c=c.next=m,r=r.next}while(r!==null);c===null?l=c=t:c=c.next=t}else l=c=t;r={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function js(e,t,r,i){var l=e.updateQueue;On=!1;var c=l.firstBaseUpdate,m=l.lastBaseUpdate,S=l.shared.pending;if(S!==null){l.shared.pending=null;var P=S,_=P.next;P.next=null,m===null?c=_:m.next=_,m=P;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==m&&(S===null?B.firstBaseUpdate=_:S.next=_,B.lastBaseUpdate=P))}if(c!==null){var U=l.baseState;m=0,B=_=P=null,S=c;do{var $=S.lane,X=S.eventTime;if((i&$)===$){B!==null&&(B=B.next={eventTime:X,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var te=e,ne=S;switch($=t,X=r,ne.tag){case 1:if(te=ne.payload,typeof te=="function"){U=te.call(X,U,$);break e}U=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ne.payload,$=typeof te=="function"?te.call(X,U,$):te,$==null)break e;U=V({},U,$);break e;case 2:On=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,$=l.effects,$===null?l.effects=[S]:$.push(S))}else X={eventTime:X,lane:$,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(_=B=X,P=U):B=B.next=X,m|=$;if(S=S.next,S===null){if(S=l.shared.pending,S===null)break;$=S,S=$.next,$.next=null,l.lastBaseUpdate=$,l.shared.pending=null}}while(!0);if(B===null&&(P=U),l.baseState=P,l.firstBaseUpdate=_,l.lastBaseUpdate=B,t=l.shared.interleaved,t!==null){l=t;do m|=l.lane,l=l.next;while(l!==t)}else c===null&&(l.shared.lanes=0);rr|=m,e.lanes=m,e.memoizedState=U}}function Pc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var i=Oa.transition;Oa.transition={};try{e(!1),t()}finally{ke=r,Oa.transition=i}}function Wc(){return Nt().memoizedState}function Fh(e,t,r){var i=Mn(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},Hc(e))Qc(t,r);else if(r=Ec(e,t,r,i),r!==null){var l=nt();zt(r,e,i,l),Kc(r,t,i)}}function $h(e,t,r){var i=Mn(e),l={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(Hc(e))Qc(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,S=c(m,r);if(l.hasEagerState=!0,l.eagerState=S,At(S,m)){var P=t.interleaved;P===null?(l.next=l,Pa(t)):(l.next=P.next,P.next=l),t.interleaved=l;return}}catch{}r=Ec(e,t,l,i),r!==null&&(l=nt(),zt(r,e,i,l),Kc(r,t,i))}}function Hc(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Qc(e,t){Po=As=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Kc(e,t,r){if((r&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,$i(e,r)}}var Ms={readContext:kt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Bh={readContext:kt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Mc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ls(4194308,4,Fc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=Jt();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Jt();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Fh.bind(null,Le,e),[i.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:Lc,useDebugValue:za,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=Lc(!1),t=e[0];return e=zh.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=Le,l=Jt();if(_e){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),We===null)throw Error(s(349));(nr&30)!==0||Rc(i,t,r)}l.memoizedState=r;var c={value:r,getSnapshot:t};return l.queue=c,Mc(Oc.bind(null,i,c,e),[e]),i.flags|=2048,To(9,jc.bind(null,i,c,r,t),void 0,null),r},useId:function(){var e=Jt(),t=We.identifierPrefix;if(_e){var r=un,i=ln;r=(i&~(1<<32-_t(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=m.createElement(r,{is:i.is}):(e=m.createElement(r),r==="select"&&(m=e,i.multiple?m.multiple=!0:i.size&&(m.size=i.size))):e=m.createElementNS(e,r),e[Xt]=t,e[xo]=i,pd(e,t,!1,!1),t.stateNode=e;e:{switch(m=Zr(r,i),r){case"dialog":Re("cancel",e),Re("close",e),l=i;break;case"iframe":case"object":case"embed":Re("load",e),l=i;break;case"video":case"audio":for(l=0;lDr&&(t.flags|=128,i=!0,Ro(c,!1),t.lanes=4194304)}else{if(!i)if(e=Os(m),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ro(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!_e)return Xe(t),null}else 2*Me()-c.renderingStartTime>Dr&&r!==1073741824&&(t.flags|=128,i=!0,Ro(c,!1),t.lanes=4194304);c.isBackwards?(m.sibling=t.child,t.child=m):(r=c.last,r!==null?r.sibling=m:t.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Me(),t.sibling=null,r=Ae.current,Te(Ae,i?r&1|2:r&1),t):(Xe(t),null);case 22:case 23:return ll(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(yt&1073741824)!==0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Yh(e,t){switch(va(t),t.tag){case 1:return at(t.type)&&ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(),je(it),je(Ye),ja(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ta(t),null;case 13:if(je(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return je(Ae),null;case 4:return Ar(),null;case 10:return ba(t.type._context),null;case 22:case 23:return ll(),null;case 24:return null;default:return null}}var $s=!1,Ze=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Ir(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Ie(e,t,i)}else r.current=null}function Ga(e,t,r){try{r()}catch(i){Ie(e,t,i)}}var gd=!1;function Xh(e,t){if(la=is,e=qu(),ea(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var l=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{r.nodeType,c.nodeType}catch{r=null;break e}var m=0,S=-1,P=-1,_=0,B=0,U=e,$=null;t:for(;;){for(var X;U!==r||l!==0&&U.nodeType!==3||(S=m+l),U!==c||i!==0&&U.nodeType!==3||(P=m+i),U.nodeType===3&&(m+=U.nodeValue.length),(X=U.firstChild)!==null;)$=U,U=X;for(;;){if(U===e)break t;if($===r&&++_===l&&(S=m),$===c&&++B===i&&(P=m),(X=U.nextSibling)!==null)break;U=$,$=U.parentNode}U=X}r=S===-1||P===-1?null:{start:S,end:P}}else r=null}r=r||{start:0,end:0}}else r=null;for(ua={focusedElem:e,selectionRange:r},is=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var te=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ne=te.memoizedProps,De=te.memoizedState,j=t.stateNode,N=j.getSnapshotBeforeUpdate(t.elementType===t.type?ne:It(t.type,ne),De);j.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(W){Ie(t,t.return,W)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return te=gd,gd=!1,te}function jo(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&Ga(t,r,c)}l=l.next}while(l!==i)}}function Bs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Xa(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function vd(e){var t=e.alternate;t!==null&&(e.alternate=null,vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xt],delete t[xo],delete t[pa],delete t[Ah],delete t[Lh])),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 yd(e){return e.tag===5||e.tag===3||e.tag===4}function xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(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 Za(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ys));else if(i!==4&&(e=e.child,e!==null))for(Za(e,t,r),e=e.sibling;e!==null;)Za(e,t,r),e=e.sibling}function Ja(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Ja(e,t,r),e=e.sibling;e!==null;)Ja(e,t,r),e=e.sibling}var Ke=null,Mt=!1;function An(e,t,r){for(r=r.child;r!==null;)wd(e,t,r),r=r.sibling}function wd(e,t,r){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(es,r)}catch{}switch(r.tag){case 5:Ze||Ir(r,t);case 6:var i=Ke,l=Mt;Ke=null,An(e,t,r),Ke=i,Mt=l,Ke!==null&&(Mt?(e=Ke,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ke.removeChild(r.stateNode));break;case 18:Ke!==null&&(Mt?(e=Ke,r=r.stateNode,e.nodeType===8?fa(e.parentNode,r):e.nodeType===1&&fa(e,r),ao(e)):fa(Ke,r.stateNode));break;case 4:i=Ke,l=Mt,Ke=r.stateNode.containerInfo,Mt=!0,An(e,t,r),Ke=i,Mt=l;break;case 0:case 11:case 14:case 15:if(!Ze&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){l=i=i.next;do{var c=l,m=c.destroy;c=c.tag,m!==void 0&&((c&2)!==0||(c&4)!==0)&&Ga(r,t,m),l=l.next}while(l!==i)}An(e,t,r);break;case 1:if(!Ze&&(Ir(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(S){Ie(r,t,S)}An(e,t,r);break;case 21:An(e,t,r);break;case 22:r.mode&1?(Ze=(i=Ze)||r.memoizedState!==null,An(e,t,r),Ze=i):An(e,t,r);break;default:An(e,t,r)}}function Sd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Gh),t.forEach(function(i){var l=ig.bind(null,e,i);r.has(i)||(r.add(i),i.then(l,l))})}}function Dt(e,t){var r=t.deletions;if(r!==null)for(var i=0;il&&(l=m),i&=~c}if(i=l,i=Me()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Jh(i/1960))-i,10e?16:e,In===null)var i=!1;else{if(e=In,In=null,Qs=0,(Ee&6)!==0)throw Error(s(331));var l=Ee;for(Ee|=4,ee=e.current;ee!==null;){var c=ee,m=c.child;if((ee.flags&16)!==0){var S=c.deletions;if(S!==null){for(var P=0;PMe()-nl?sr(e,0):tl|=r),ct(e,t)}function Ld(e,t){t===0&&((e.mode&1)===0?t=1:(t=ns,ns<<=1,(ns&130023424)===0&&(ns=4194304)));var r=nt();e=cn(e,t),e!==null&&(no(e,t,r),ct(e,r))}function sg(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ld(e,r)}function ig(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(r=l.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),Ld(e,r)}var Id;Id=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)lt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return lt=!1,Kh(e,t,r);lt=(e.flags&131072)!==0}else lt=!1,_e&&(t.flags&1048576)!==0&&mc(t,Cs,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Fs(e,t),e=t.pendingProps;var l=kr(t,Ye.current);_r(t,r),l=Aa(null,t,i,e,l,r);var c=La();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(i)?(c=!0,Ss(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ka(t),l.updater=Ds,t.stateNode=l,l._reactInternals=t,$a(t,i,e,r),t=Wa(null,t,i,!0,c,r)):(t.tag=0,_e&&c&&ga(t),tt(null,t,l,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,l=i._init,i=l(i._payload),t.type=i,l=t.tag=lg(i),e=It(i,e),l){case 0:t=Va(null,t,i,e,r);break e;case 1:t=ad(null,t,i,e,r);break e;case 11:t=nd(null,t,i,e,r);break e;case 14:t=rd(null,t,i,It(i.type,e),r);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:It(i,l),Va(e,t,i,l,r);case 1:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:It(i,l),ad(e,t,i,l,r);case 3:e:{if(ld(t),e===null)throw Error(s(387));i=t.pendingProps,c=t.memoizedState,l=c.element,bc(e,t),js(t,i,null,r);var m=t.memoizedState;if(i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){l=Lr(Error(s(423)),t),t=ud(e,t,i,r,l);break e}else if(i!==l){l=Lr(Error(s(424)),t),t=ud(e,t,i,r,l);break e}else for(vt=Nn(t.stateNode.containerInfo.firstChild),gt=t,_e=!0,Lt=null,r=Sc(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Rr(),i===l){t=fn(e,t,r);break e}tt(e,t,i,r)}t=t.child}return t;case 5:return kc(t),e===null&&xa(t),i=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,m=l.children,ca(i,l)?m=null:c!==null&&ca(i,c)&&(t.flags|=32),id(e,t),tt(e,t,m,r),t.child;case 6:return e===null&&xa(t),null;case 13:return cd(e,t,r);case 4:return Na(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=jr(t,null,i,r):tt(e,t,i,r),t.child;case 11:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:It(i,l),nd(e,t,i,l,r);case 7:return tt(e,t,t.pendingProps,r),t.child;case 8:return tt(e,t,t.pendingProps.children,r),t.child;case 12:return tt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,l=t.pendingProps,c=t.memoizedProps,m=l.value,Te(Ns,i._currentValue),i._currentValue=m,c!==null)if(At(c.value,m)){if(c.children===l.children&&!it.current){t=fn(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var S=c.dependencies;if(S!==null){m=c.child;for(var P=S.firstContext;P!==null;){if(P.context===i){if(c.tag===1){P=dn(-1,r&-r),P.tag=2;var _=c.updateQueue;if(_!==null){_=_.shared;var B=_.pending;B===null?P.next=P:(P.next=B.next,B.next=P),_.pending=P}}c.lanes|=r,P=c.alternate,P!==null&&(P.lanes|=r),Ca(c.return,r,t),S.lanes|=r;break}P=P.next}}else if(c.tag===10)m=c.type===t.type?null:c.child;else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=r,S=m.alternate,S!==null&&(S.lanes|=r),Ca(m,r,t),m=c.sibling}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}tt(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,i=t.pendingProps.children,_r(t,r),l=kt(l),i=i(l),t.flags|=1,tt(e,t,i,r),t.child;case 14:return i=t.type,l=It(i,t.pendingProps),l=It(i.type,l),rd(e,t,i,l,r);case 15:return od(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:It(i,l),Fs(e,t),t.tag=1,at(i)?(e=!0,Ss(t)):e=!1,_r(t,r),Yc(t,i,l),$a(t,i,l,r),Wa(null,t,i,!0,e,r);case 19:return fd(e,t,r);case 22:return sd(e,t,r)}throw Error(s(156,t.tag))};function Md(e,t){return hu(e,t)}function ag(e,t,r,i){this.tag=e,this.key=r,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,r,i){return new ag(e,t,r,i)}function cl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lg(e){if(typeof e=="function")return cl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Z)return 11;if(e===he)return 14}return 2}function zn(e,t){var r=e.alternate;return r===null?(r=Rt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Gs(e,t,r,i,l,c){var m=2;if(i=e,typeof e=="function")cl(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case Y:return ar(r.children,l,c,t);case ce:m=8,l|=8;break;case ge:return e=Rt(12,r,t,l|2),e.elementType=ge,e.lanes=c,e;case me:return e=Rt(13,r,t,l),e.elementType=me,e.lanes=c,e;case q:return e=Rt(19,r,t,l),e.elementType=q,e.lanes=c,e;case re:return Xs(r,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pe:m=10;break e;case xe:m=9;break e;case Z:m=11;break e;case he:m=14;break e;case se:m=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Rt(m,r,t,l),t.elementType=e,t.type=i,t.lanes=c,t}function ar(e,t,r,i){return e=Rt(7,e,i,t),e.lanes=r,e}function Xs(e,t,r,i){return e=Rt(22,e,i,t),e.elementType=re,e.lanes=r,e.stateNode={isHidden:!1},e}function dl(e,t,r){return e=Rt(6,e,null,t),e.lanes=r,e}function fl(e,t,r){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ug(e,t,r,i,l){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=Fi(0),this.expirationTimes=Fi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fi(0),this.identifierPrefix=i,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function pl(e,t,r,i,l,c,m,S,P){return e=new ug(e,t,r,S,P),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Rt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ka(c),e}function cg(e,t,r){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),xl.exports=Eg(),xl.exports}var Gd;function bg(){if(Gd)return oi;Gd=1;var n=$f();return oi.createRoot=n.createRoot,oi.hydrateRoot=n.hydrateRoot,oi}var Cg=bg(),x=Ql();const K=Ff(x),Kl=gg({__proto__:null,default:K},[x]),Pg=1,kg=1e6;let El=0;function Ng(){return El=(El+1)%Number.MAX_SAFE_INTEGER,El.toString()}const bl=new Map,Xd=n=>{if(bl.has(n))return;const o=setTimeout(()=>{bl.delete(n),zo({type:"REMOVE_TOAST",toastId:n})},kg);bl.set(n,o)},Tg=(n,o)=>{switch(o.type){case"ADD_TOAST":return{...n,toasts:[o.toast,...n.toasts].slice(0,Pg)};case"UPDATE_TOAST":return{...n,toasts:n.toasts.map(s=>s.id===o.toast.id?{...s,...o.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=o;return s?Xd(s):n.toasts.forEach(a=>{Xd(a.id)}),{...n,toasts:n.toasts.map(a=>a.id===s||s===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(s=>s.id!==o.toastId)}}},ci=[];let di={toasts:[]};function zo(n){di=Tg(di,n),ci.forEach(o=>{o(di)})}function Rg({...n}){const o=Ng(),s=u=>zo({type:"UPDATE_TOAST",toast:{...u,id:o}}),a=()=>zo({type:"DISMISS_TOAST",toastId:o});return zo({type:"ADD_TOAST",toast:{...n,id:o,open:!0,onOpenChange:u=>{u||a()}}}),{id:o,dismiss:a,update:s}}function Bf(){const[n,o]=x.useState(di);return x.useEffect(()=>(ci.push(o),()=>{const s=ci.indexOf(o);s>-1&&ci.splice(s,1)}),[n]),{...n,toast:Rg,dismiss:s=>zo({type:"DISMISS_TOAST",toastId:s})}}var Si=$f();const Uf=Ff(Si);function Ue(n,o,{checkForDefaultPrevented:s=!0}={}){return function(u){if(n?.(u),s===!1||!u.defaultPrevented)return o?.(u)}}function Zd(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Ei(...n){return o=>{let s=!1;const a=n.map(u=>{const d=Zd(u,o);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let u=0;u{const{scope:k,children:y,...R}=E,C=k?.[n]?.[h]||p,b=x.useMemo(()=>R,Object.values(R));return g.jsx(C.Provider,{value:b,children:y})};v.displayName=d+"Provider";function w(E,k){const y=k?.[n]?.[h]||p,R=x.useContext(y);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${E}\` must be used within \`${d}\``)}return[v,w]}const u=()=>{const d=s.map(f=>x.createContext(f));return function(p){const h=p?.[n]||d;return x.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])}};return u.scopeName=n,[a,jg(u,...o)]}function jg(...n){const o=n[0];if(n.length===1)return o;const s=()=>{const a=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const f=a.reduce((p,{useScope:h,scopeName:v})=>{const E=h(d)[`__scope${v}`];return{...p,...E}},{});return x.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return s.scopeName=o.scopeName,s}function Jd(n){const o=Og(n),s=x.forwardRef((a,u)=>{const{children:d,...f}=a,p=x.Children.toArray(d),h=p.find(Ag);if(h){const v=h.props.children,w=p.map(E=>E===h?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:E);return g.jsx(o,{...f,ref:u,children:x.isValidElement(v)?x.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:u,children:d})});return s.displayName=`${n}.Slot`,s}function Og(n){const o=x.forwardRef((s,a)=>{const{children:u,...d}=s;if(x.isValidElement(u)){const f=Ig(u),p=Lg(d,u.props);return u.type!==x.Fragment&&(p.ref=a?Ei(a,f):f),x.cloneElement(u,p)}return x.Children.count(u)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var _g=Symbol("radix.slottable");function Ag(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===_g}function Lg(n,o){const s={...o};for(const a in o){const u=n[a],d=o[a];/^on[A-Z]/.test(a)?u&&d?s[a]=(...p)=>{const h=d(...p);return u(...p),h}:u&&(s[a]=u):a==="style"?s[a]={...u,...d}:a==="className"&&(s[a]=[u,d].filter(Boolean).join(" "))}return{...n,...s}}function Ig(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Mg(n){const o=n+"CollectionProvider",[s,a]=bi(o),[u,d]=s(o,{collectionRef:{current:null},itemMap:new Map}),f=C=>{const{scope:b,children:A}=C,I=K.useRef(null),M=K.useRef(new Map).current;return g.jsx(u,{scope:b,itemMap:M,collectionRef:I,children:A})};f.displayName=o;const p=n+"CollectionSlot",h=Jd(p),v=K.forwardRef((C,b)=>{const{scope:A,children:I}=C,M=d(p,A),F=Bt(b,M.collectionRef);return g.jsx(h,{ref:F,children:I})});v.displayName=p;const w=n+"CollectionItemSlot",E="data-radix-collection-item",k=Jd(w),y=K.forwardRef((C,b)=>{const{scope:A,children:I,...M}=C,F=K.useRef(null),Q=Bt(b,F),H=d(w,A);return K.useEffect(()=>(H.itemMap.set(F,{ref:F,...M}),()=>{H.itemMap.delete(F)})),g.jsx(k,{[E]:"",ref:Q,children:I})});y.displayName=w;function R(C){const b=d(n+"CollectionConsumer",C);return K.useCallback(()=>{const I=b.collectionRef.current;if(!I)return[];const M=Array.from(I.querySelectorAll(`[${E}]`));return Array.from(b.itemMap.values()).sort((H,Y)=>M.indexOf(H.ref.current)-M.indexOf(Y.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:f,Slot:v,ItemSlot:y},R,a]}function Dg(n){const o=zg(n),s=x.forwardRef((a,u)=>{const{children:d,...f}=a,p=x.Children.toArray(d),h=p.find($g);if(h){const v=h.props.children,w=p.map(E=>E===h?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:E);return g.jsx(o,{...f,ref:u,children:x.isValidElement(v)?x.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:u,children:d})});return s.displayName=`${n}.Slot`,s}function zg(n){const o=x.forwardRef((s,a)=>{const{children:u,...d}=s;if(x.isValidElement(u)){const f=Ug(u),p=Bg(d,u.props);return u.type!==x.Fragment&&(p.ref=a?Ei(a,f):f),x.cloneElement(u,p)}return x.Children.count(u)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var Fg=Symbol("radix.slottable");function $g(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Fg}function Bg(n,o){const s={...o};for(const a in o){const u=n[a],d=o[a];/^on[A-Z]/.test(a)?u&&d?s[a]=(...p)=>{const h=d(...p);return u(...p),h}:u&&(s[a]=u):a==="style"?s[a]={...u,...d}:a==="className"&&(s[a]=[u,d].filter(Boolean).join(" "))}return{...n,...s}}function Ug(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Vg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mt=Vg.reduce((n,o)=>{const s=Dg(`Primitive.${o}`),a=x.forwardRef((u,d)=>{const{asChild:f,...p}=u,h=f?s:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...p,ref:d})});return a.displayName=`Primitive.${o}`,{...n,[o]:a}},{});function Vf(n,o){n&&Si.flushSync(()=>n.dispatchEvent(o))}function Vn(n){const o=x.useRef(n);return x.useEffect(()=>{o.current=n}),x.useMemo(()=>(...s)=>o.current?.(...s),[])}function Wg(n,o=globalThis?.document){const s=Vn(n);x.useEffect(()=>{const a=u=>{u.key==="Escape"&&s(u)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[s,o])}var Hg="DismissableLayer",Rl="dismissableLayer.update",Qg="dismissableLayer.pointerDownOutside",Kg="dismissableLayer.focusOutside",ef,Wf=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ql=x.forwardRef((n,o)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...h}=n,v=x.useContext(Wf),[w,E]=x.useState(null),k=w?.ownerDocument??globalThis?.document,[,y]=x.useState({}),R=Bt(o,Y=>E(Y)),C=Array.from(v.layers),[b]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(b),I=w?C.indexOf(w):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,F=I>=A,Q=Yg(Y=>{const ce=Y.target,ge=[...v.branches].some(pe=>pe.contains(ce));!F||ge||(u?.(Y),f?.(Y),Y.defaultPrevented||p?.())},k),H=Gg(Y=>{const ce=Y.target;[...v.branches].some(pe=>pe.contains(ce))||(d?.(Y),f?.(Y),Y.defaultPrevented||p?.())},k);return Wg(Y=>{I===v.layers.size-1&&(a?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},k),x.useEffect(()=>{if(w)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(ef=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),tf(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=ef)}},[w,k,s,v]),x.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),tf())},[w,v]),x.useEffect(()=>{const Y=()=>y({});return document.addEventListener(Rl,Y),()=>document.removeEventListener(Rl,Y)},[]),g.jsx(mt.div,{...h,ref:R,style:{pointerEvents:M?F?"auto":"none":void 0,...n.style},onFocusCapture:Ue(n.onFocusCapture,H.onFocusCapture),onBlurCapture:Ue(n.onBlurCapture,H.onBlurCapture),onPointerDownCapture:Ue(n.onPointerDownCapture,Q.onPointerDownCapture)})});ql.displayName=Hg;var qg="DismissableLayerBranch",Hf=x.forwardRef((n,o)=>{const s=x.useContext(Wf),a=x.useRef(null),u=Bt(o,a);return x.useEffect(()=>{const d=a.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),g.jsx(mt.div,{...n,ref:u})});Hf.displayName=qg;function Yg(n,o=globalThis?.document){const s=Vn(n),a=x.useRef(!1),u=x.useRef(()=>{});return x.useEffect(()=>{const d=p=>{if(p.target&&!a.current){let h=function(){Qf(Qg,s,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",u.current),u.current=h,o.addEventListener("click",u.current,{once:!0})):h()}else o.removeEventListener("click",u.current);a.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",d),o.removeEventListener("click",u.current)}},[o,s]),{onPointerDownCapture:()=>a.current=!0}}function Gg(n,o=globalThis?.document){const s=Vn(n),a=x.useRef(!1);return x.useEffect(()=>{const u=d=>{d.target&&!a.current&&Qf(Kg,s,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",u),()=>o.removeEventListener("focusin",u)},[o,s]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function tf(){const n=new CustomEvent(Rl);document.dispatchEvent(n)}function Qf(n,o,s,{discrete:a}){const u=s.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),a?Vf(u,d):u.dispatchEvent(d)}var Xg=ql,Zg=Hf,Wn=globalThis?.document?x.useLayoutEffect:()=>{},Jg="Portal",Kf=x.forwardRef((n,o)=>{const{container:s,...a}=n,[u,d]=x.useState(!1);Wn(()=>d(!0),[]);const f=s||u&&globalThis?.document?.body;return f?Uf.createPortal(g.jsx(mt.div,{...a,ref:o}),f):null});Kf.displayName=Jg;function ev(n,o){return x.useReducer((s,a)=>o[s][a]??s,n)}var Yl=n=>{const{present:o,children:s}=n,a=tv(o),u=typeof s=="function"?s({present:a.isPresent}):x.Children.only(s),d=Bt(a.ref,nv(u));return typeof s=="function"||a.isPresent?x.cloneElement(u,{ref:d}):null};Yl.displayName="Presence";function tv(n){const[o,s]=x.useState(),a=x.useRef(null),u=x.useRef(n),d=x.useRef("none"),f=n?"mounted":"unmounted",[p,h]=ev(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const v=si(a.current);d.current=p==="mounted"?v:"none"},[p]),Wn(()=>{const v=a.current,w=u.current;if(w!==n){const k=d.current,y=si(v);n?h("MOUNT"):y==="none"||v?.display==="none"?h("UNMOUNT"):h(w&&k!==y?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,h]),Wn(()=>{if(o){let v;const w=o.ownerDocument.defaultView??window,E=y=>{const C=si(a.current).includes(CSS.escape(y.animationName));if(y.target===o&&C&&(h("ANIMATION_END"),!u.current)){const b=o.style.animationFillMode;o.style.animationFillMode="forwards",v=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=b)})}},k=y=>{y.target===o&&(d.current=si(a.current))};return o.addEventListener("animationstart",k),o.addEventListener("animationcancel",E),o.addEventListener("animationend",E),()=>{w.clearTimeout(v),o.removeEventListener("animationstart",k),o.removeEventListener("animationcancel",E),o.removeEventListener("animationend",E)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:x.useCallback(v=>{a.current=v?getComputedStyle(v):null,s(v)},[])}}function si(n){return n?.animationName||"none"}function nv(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var rv=Kl[" useInsertionEffect ".trim().toString()]||Wn;function ov({prop:n,defaultProp:o,onChange:s=()=>{},caller:a}){const[u,d,f]=sv({defaultProp:o,onChange:s}),p=n!==void 0,h=p?n:u;{const w=x.useRef(n!==void 0);x.useEffect(()=>{const E=w.current;E!==p&&console.warn(`${a} is changing from ${E?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=p},[p,a])}const v=x.useCallback(w=>{if(p){const E=iv(w)?w(n):w;E!==n&&f.current?.(E)}else d(w)},[p,n,d,f]);return[h,v]}function sv({defaultProp:n,onChange:o}){const[s,a]=x.useState(n),u=x.useRef(s),d=x.useRef(o);return rv(()=>{d.current=o},[o]),x.useEffect(()=>{u.current!==s&&(d.current?.(s),u.current=s)},[s,u]),[s,a,d]}function iv(n){return typeof n=="function"}var av=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"}),lv="VisuallyHidden",Ci=x.forwardRef((n,o)=>g.jsx(mt.span,{...n,ref:o,style:{...av,...n.style}}));Ci.displayName=lv;var uv=Ci,Gl="ToastProvider",[Xl,cv,dv]=Mg("Toast"),[qf]=bi("Toast",[dv]),[fv,Pi]=qf(Gl),Yf=n=>{const{__scopeToast:o,label:s="Notification",duration:a=5e3,swipeDirection:u="right",swipeThreshold:d=50,children:f}=n,[p,h]=x.useState(null),[v,w]=x.useState(0),E=x.useRef(!1),k=x.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gl}\`. Expected non-empty \`string\`.`),g.jsx(Xl.Provider,{scope:o,children:g.jsx(fv,{scope:o,label:s,duration:a,swipeDirection:u,swipeThreshold:d,toastCount:v,viewport:p,onViewportChange:h,onToastAdd:x.useCallback(()=>w(y=>y+1),[]),onToastRemove:x.useCallback(()=>w(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:k,children:f})})};Yf.displayName=Gl;var Gf="ToastViewport",pv=["F8"],jl="toast.viewportPause",Ol="toast.viewportResume",Xf=x.forwardRef((n,o)=>{const{__scopeToast:s,hotkey:a=pv,label:u="Notifications ({hotkey})",...d}=n,f=Pi(Gf,s),p=cv(s),h=x.useRef(null),v=x.useRef(null),w=x.useRef(null),E=x.useRef(null),k=Bt(o,E,f.onViewportChange),y=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=f.toastCount>0;x.useEffect(()=>{const b=A=>{a.length!==0&&a.every(M=>A[M]||A.code===M)&&E.current?.focus()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[a]),x.useEffect(()=>{const b=h.current,A=E.current;if(R&&b&&A){const I=()=>{if(!f.isClosePausedRef.current){const H=new CustomEvent(jl);A.dispatchEvent(H),f.isClosePausedRef.current=!0}},M=()=>{if(f.isClosePausedRef.current){const H=new CustomEvent(Ol);A.dispatchEvent(H),f.isClosePausedRef.current=!1}},F=H=>{!b.contains(H.relatedTarget)&&M()},Q=()=>{b.contains(document.activeElement)||M()};return b.addEventListener("focusin",I),b.addEventListener("focusout",F),b.addEventListener("pointermove",I),b.addEventListener("pointerleave",Q),window.addEventListener("blur",I),window.addEventListener("focus",M),()=>{b.removeEventListener("focusin",I),b.removeEventListener("focusout",F),b.removeEventListener("pointermove",I),b.removeEventListener("pointerleave",Q),window.removeEventListener("blur",I),window.removeEventListener("focus",M)}}},[R,f.isClosePausedRef]);const C=x.useCallback(({tabbingDirection:b})=>{const I=p().map(M=>{const F=M.ref.current,Q=[F,...kv(F)];return b==="forwards"?Q:Q.reverse()});return(b==="forwards"?I.reverse():I).flat()},[p]);return x.useEffect(()=>{const b=E.current;if(b){const A=I=>{const M=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!M){const Q=document.activeElement,H=I.shiftKey;if(I.target===b&&H){v.current?.focus();return}const ge=C({tabbingDirection:H?"backwards":"forwards"}),pe=ge.findIndex(xe=>xe===Q);Cl(ge.slice(pe+1))?I.preventDefault():H?v.current?.focus():w.current?.focus()}};return b.addEventListener("keydown",A),()=>b.removeEventListener("keydown",A)}},[p,C]),g.jsxs(Zg,{ref:h,role:"region","aria-label":u.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&g.jsx(_l,{ref:v,onFocusFromOutsideViewport:()=>{const b=C({tabbingDirection:"forwards"});Cl(b)}}),g.jsx(Xl.Slot,{scope:s,children:g.jsx(mt.ol,{tabIndex:-1,...d,ref:k})}),R&&g.jsx(_l,{ref:w,onFocusFromOutsideViewport:()=>{const b=C({tabbingDirection:"backwards"});Cl(b)}})]})});Xf.displayName=Gf;var Zf="ToastFocusProxy",_l=x.forwardRef((n,o)=>{const{__scopeToast:s,onFocusFromOutsideViewport:a,...u}=n,d=Pi(Zf,s);return g.jsx(Ci,{tabIndex:0,...u,ref:o,style:{position:"fixed"},onFocus:f=>{const p=f.relatedTarget;!d.viewport?.contains(p)&&a()}})});_l.displayName=Zf;var Uo="Toast",mv="toast.swipeStart",hv="toast.swipeMove",gv="toast.swipeCancel",vv="toast.swipeEnd",Jf=x.forwardRef((n,o)=>{const{forceMount:s,open:a,defaultOpen:u,onOpenChange:d,...f}=n,[p,h]=ov({prop:a,defaultProp:u??!0,onChange:d,caller:Uo});return g.jsx(Yl,{present:s||p,children:g.jsx(wv,{open:p,...f,ref:o,onClose:()=>h(!1),onPause:Vn(n.onPause),onResume:Vn(n.onResume),onSwipeStart:Ue(n.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ue(n.onSwipeMove,v=>{const{x:w,y:E}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:Ue(n.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ue(n.onSwipeEnd,v=>{const{x:w,y:E}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),h(!1)})})})});Jf.displayName=Uo;var[yv,xv]=qf(Uo,{onClose(){}}),wv=x.forwardRef((n,o)=>{const{__scopeToast:s,type:a="foreground",duration:u,open:d,onClose:f,onEscapeKeyDown:p,onPause:h,onResume:v,onSwipeStart:w,onSwipeMove:E,onSwipeCancel:k,onSwipeEnd:y,...R}=n,C=Pi(Uo,s),[b,A]=x.useState(null),I=Bt(o,q=>A(q)),M=x.useRef(null),F=x.useRef(null),Q=u||C.duration,H=x.useRef(0),Y=x.useRef(Q),ce=x.useRef(0),{onToastAdd:ge,onToastRemove:pe}=C,xe=Vn(()=>{b?.contains(document.activeElement)&&C.viewport?.focus(),f()}),Z=x.useCallback(q=>{!q||q===1/0||(window.clearTimeout(ce.current),H.current=new Date().getTime(),ce.current=window.setTimeout(xe,q))},[xe]);x.useEffect(()=>{const q=C.viewport;if(q){const he=()=>{Z(Y.current),v?.()},se=()=>{const re=new Date().getTime()-H.current;Y.current=Y.current-re,window.clearTimeout(ce.current),h?.()};return q.addEventListener(jl,se),q.addEventListener(Ol,he),()=>{q.removeEventListener(jl,se),q.removeEventListener(Ol,he)}}},[C.viewport,Q,h,v,Z]),x.useEffect(()=>{d&&!C.isClosePausedRef.current&&Z(Q)},[d,Q,C.isClosePausedRef,Z]),x.useEffect(()=>(ge(),()=>pe()),[ge,pe]);const me=x.useMemo(()=>b?ip(b):null,[b]);return C.viewport?g.jsxs(g.Fragment,{children:[me&&g.jsx(Sv,{__scopeToast:s,role:"status","aria-live":a==="foreground"?"assertive":"polite",children:me}),g.jsx(yv,{scope:s,onClose:xe,children:Si.createPortal(g.jsx(Xl.ItemSlot,{scope:s,children:g.jsx(Xg,{asChild:!0,onEscapeKeyDown:Ue(p,()=>{C.isFocusedToastEscapeKeyDownRef.current||xe(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(mt.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":C.swipeDirection,...R,ref:I,style:{userSelect:"none",touchAction:"none",...n.style},onKeyDown:Ue(n.onKeyDown,q=>{q.key==="Escape"&&(p?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,xe()))}),onPointerDown:Ue(n.onPointerDown,q=>{q.button===0&&(M.current={x:q.clientX,y:q.clientY})}),onPointerMove:Ue(n.onPointerMove,q=>{if(!M.current)return;const he=q.clientX-M.current.x,se=q.clientY-M.current.y,re=!!F.current,D=["left","right"].includes(C.swipeDirection),z=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,V=D?z(0,he):0,T=D?0:z(0,se),L=q.pointerType==="touch"?10:2,G={x:V,y:T},J={originalEvent:q,delta:G};re?(F.current=G,ii(hv,E,J,{discrete:!1})):nf(G,C.swipeDirection,L)?(F.current=G,ii(mv,w,J,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(he)>L||Math.abs(se)>L)&&(M.current=null)}),onPointerUp:Ue(n.onPointerUp,q=>{const he=F.current,se=q.target;if(se.hasPointerCapture(q.pointerId)&&se.releasePointerCapture(q.pointerId),F.current=null,M.current=null,he){const re=q.currentTarget,D={originalEvent:q,delta:he};nf(he,C.swipeDirection,C.swipeThreshold)?ii(vv,y,D,{discrete:!0}):ii(gv,k,D,{discrete:!0}),re.addEventListener("click",z=>z.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),Sv=n=>{const{__scopeToast:o,children:s,...a}=n,u=Pi(Uo,o),[d,f]=x.useState(!1),[p,h]=x.useState(!1);return Cv(()=>f(!0)),x.useEffect(()=>{const v=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(v)},[]),p?null:g.jsx(Kf,{asChild:!0,children:g.jsx(Ci,{...a,children:d&&g.jsxs(g.Fragment,{children:[u.label," ",s]})})})},Ev="ToastTitle",ep=x.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n;return g.jsx(mt.div,{...a,ref:o})});ep.displayName=Ev;var bv="ToastDescription",tp=x.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n;return g.jsx(mt.div,{...a,ref:o})});tp.displayName=bv;var np="ToastAction",rp=x.forwardRef((n,o)=>{const{altText:s,...a}=n;return s.trim()?g.jsx(sp,{altText:s,asChild:!0,children:g.jsx(Zl,{...a,ref:o})}):(console.error(`Invalid prop \`altText\` supplied to \`${np}\`. Expected non-empty \`string\`.`),null)});rp.displayName=np;var op="ToastClose",Zl=x.forwardRef((n,o)=>{const{__scopeToast:s,...a}=n,u=xv(op,s);return g.jsx(sp,{asChild:!0,children:g.jsx(mt.button,{type:"button",...a,ref:o,onClick:Ue(n.onClick,u.onClose)})})});Zl.displayName=op;var sp=x.forwardRef((n,o)=>{const{__scopeToast:s,altText:a,...u}=n;return g.jsx(mt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...u,ref:o})});function ip(n){const o=[];return Array.from(n.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&o.push(a.textContent),Pv(a)){const u=a.ariaHidden||a.hidden||a.style.display==="none",d=a.dataset.radixToastAnnounceExclude==="";if(!u)if(d){const f=a.dataset.radixToastAnnounceAlt;f&&o.push(f)}else o.push(...ip(a))}}),o}function ii(n,o,s,{discrete:a}){const u=s.originalEvent.currentTarget,d=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:s});o&&u.addEventListener(n,o,{once:!0}),a?Vf(u,d):u.dispatchEvent(d)}var nf=(n,o,s=0)=>{const a=Math.abs(n.x),u=Math.abs(n.y),d=a>u;return o==="left"||o==="right"?d&&a>s:!d&&u>s};function Cv(n=()=>{}){const o=Vn(n);Wn(()=>{let s=0,a=0;return s=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(o)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(a)}},[o])}function Pv(n){return n.nodeType===n.ELEMENT_NODE}function kv(n){const o=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const u=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||u?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)o.push(s.currentNode);return o}function Cl(n){const o=document.activeElement;return n.some(s=>s===o?!0:(s.focus(),document.activeElement!==o))}var Nv=Yf,ap=Xf,lp=Jf,up=ep,cp=tp,dp=rp,fp=Zl;function pp(n){var o,s,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(o=0;otypeof n=="boolean"?`${n}`:n===0?"0":n,of=mp,hp=(n,o)=>s=>{var a;if(o?.variants==null)return of(n,s?.class,s?.className);const{variants:u,defaultVariants:d}=o,f=Object.keys(u).map(v=>{const w=s?.[v],E=d?.[v];if(w===null)return null;const k=rf(w)||rf(E);return u[v][k]}),p=s&&Object.entries(s).reduce((v,w)=>{let[E,k]=w;return k===void 0||(v[E]=k),v},{}),h=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((v,w)=>{let{class:E,className:k,...y}=w;return Object.entries(y).every(R=>{let[C,b]=R;return Array.isArray(b)?b.includes({...d,...p}[C]):{...d,...p}[C]===b})?[...v,E,k]:v},[]);return of(n,f,h,s?.class,s?.className)};const Tv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gp=(...n)=>n.filter((o,s,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===s).join(" ").trim();var Rv={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 jv=x.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:u="",children:d,iconNode:f,...p},h)=>x.createElement("svg",{ref:h,...Rv,width:o,height:o,stroke:n,strokeWidth:a?Number(s)*24/Number(o):s,className:gp("lucide",u),...p},[...f.map(([v,w])=>x.createElement(v,w)),...Array.isArray(d)?d:[d]]));const Ov=(n,o)=>{const s=x.forwardRef(({className:a,...u},d)=>x.createElement(jv,{ref:d,iconNode:o,className:gp(`lucide-${Tv(n)}`,a),...u}));return s.displayName=`${n}`,s};const _v=Ov("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Jl="-",Av=n=>{const o=Iv(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:f=>{const p=f.split(Jl);return p[0]===""&&p.length!==1&&p.shift(),vp(p,o)||Lv(f)},getConflictingClassGroupIds:(f,p)=>{const h=s[f]||[];return p&&a[f]?[...h,...a[f]]:h}}},vp=(n,o)=>{if(n.length===0)return o.classGroupId;const s=n[0],a=o.nextPart.get(s),u=a?vp(n.slice(1),a):void 0;if(u)return u;if(o.validators.length===0)return;const d=n.join(Jl);return o.validators.find(({validator:f})=>f(d))?.classGroupId},sf=/^\[(.+)\]$/,Lv=n=>{if(sf.test(n)){const o=sf.exec(n)[1],s=o?.substring(0,o.indexOf(":"));if(s)return"arbitrary.."+s}},Iv=n=>{const{theme:o,prefix:s}=n,a={nextPart:new Map,validators:[]};return Dv(Object.entries(n.classGroups),s).forEach(([d,f])=>{Al(f,a,d,o)}),a},Al=(n,o,s,a)=>{n.forEach(u=>{if(typeof u=="string"){const d=u===""?o:af(o,u);d.classGroupId=s;return}if(typeof u=="function"){if(Mv(u)){Al(u(a),o,s,a);return}o.validators.push({validator:u,classGroupId:s});return}Object.entries(u).forEach(([d,f])=>{Al(f,af(o,d),s,a)})})},af=(n,o)=>{let s=n;return o.split(Jl).forEach(a=>{s.nextPart.has(a)||s.nextPart.set(a,{nextPart:new Map,validators:[]}),s=s.nextPart.get(a)}),s},Mv=n=>n.isThemeGetter,Dv=(n,o)=>o?n.map(([s,a])=>{const u=a.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([f,p])=>[o+f,p])):d);return[s,u]}):n,zv=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,s=new Map,a=new Map;const u=(d,f)=>{s.set(d,f),o++,o>n&&(o=0,a=s,s=new Map)};return{get(d){let f=s.get(d);if(f!==void 0)return f;if((f=a.get(d))!==void 0)return u(d,f),f},set(d,f){s.has(d)?s.set(d,f):u(d,f)}}},yp="!",Fv=n=>{const{separator:o,experimentalParseClassName:s}=n,a=o.length===1,u=o[0],d=o.length,f=p=>{const h=[];let v=0,w=0,E;for(let b=0;bw?E-w:void 0;return{modifiers:h,hasImportantModifier:y,baseClassName:R,maybePostfixModifierPosition:C}};return s?p=>s({className:p,parseClassName:f}):f},$v=n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o},Bv=n=>({cache:zv(n.cacheSize),parseClassName:Fv(n),...Av(n)}),Uv=/\s+/,Vv=(n,o)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:u}=o,d=[],f=n.trim().split(Uv);let p="";for(let h=f.length-1;h>=0;h-=1){const v=f[h],{modifiers:w,hasImportantModifier:E,baseClassName:k,maybePostfixModifierPosition:y}=s(v);let R=!!y,C=a(R?k.substring(0,y):k);if(!C){if(!R){p=v+(p.length>0?" "+p:p);continue}if(C=a(k),!C){p=v+(p.length>0?" "+p:p);continue}R=!1}const b=$v(w).join(":"),A=E?b+yp:b,I=A+C;if(d.includes(I))continue;d.push(I);const M=u(C,R);for(let F=0;F0?" "+p:p)}return p};function Wv(){let n=0,o,s,a="";for(;n{if(typeof n=="string")return n;let o,s="";for(let a=0;aE(w),n());return s=Bv(v),a=s.cache.get,u=s.cache.set,d=p,p(h)}function p(h){const v=a(h);if(v)return v;const w=Vv(h,s);return u(h,w),w}return function(){return d(Wv.apply(null,arguments))}}const Oe=n=>{const o=s=>s[n]||[];return o.isThemeGetter=!0,o},wp=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qv=/^\d+\/\d+$/,Kv=new Set(["px","full","screen"]),qv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mn=n=>Fr(n)||Kv.has(n)||Qv.test(n),$n=n=>Hr(n,"length",iy),Fr=n=>!!n&&!Number.isNaN(Number(n)),Pl=n=>Hr(n,"number",Fr),Mo=n=>!!n&&Number.isInteger(Number(n)),Jv=n=>n.endsWith("%")&&Fr(n.slice(0,-1)),ye=n=>wp.test(n),Bn=n=>qv.test(n),ey=new Set(["length","size","percentage"]),ty=n=>Hr(n,ey,Sp),ny=n=>Hr(n,"position",Sp),ry=new Set(["image","url"]),oy=n=>Hr(n,ry,ly),sy=n=>Hr(n,"",ay),Do=()=>!0,Hr=(n,o,s)=>{const a=wp.exec(n);return a?a[1]?typeof o=="string"?a[1]===o:o.has(a[1]):s(a[2]):!1},iy=n=>Yv.test(n)&&!Gv.test(n),Sp=()=>!1,ay=n=>Xv.test(n),ly=n=>Zv.test(n),uy=()=>{const n=Oe("colors"),o=Oe("spacing"),s=Oe("blur"),a=Oe("brightness"),u=Oe("borderColor"),d=Oe("borderRadius"),f=Oe("borderSpacing"),p=Oe("borderWidth"),h=Oe("contrast"),v=Oe("grayscale"),w=Oe("hueRotate"),E=Oe("invert"),k=Oe("gap"),y=Oe("gradientColorStops"),R=Oe("gradientColorStopPositions"),C=Oe("inset"),b=Oe("margin"),A=Oe("opacity"),I=Oe("padding"),M=Oe("saturate"),F=Oe("scale"),Q=Oe("sepia"),H=Oe("skew"),Y=Oe("space"),ce=Oe("translate"),ge=()=>["auto","contain","none"],pe=()=>["auto","hidden","clip","visible","scroll"],xe=()=>["auto",ye,o],Z=()=>[ye,o],me=()=>["",mn,$n],q=()=>["auto",Fr,ye],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",ye],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[Fr,ye];return{cacheSize:500,separator:":",theme:{colors:[Do],spacing:[mn,$n],blur:["none","",Bn,ye],brightness:T(),borderColor:[n],borderRadius:["none","","full",Bn,ye],borderSpacing:Z(),borderWidth:me(),contrast:T(),grayscale:z(),hueRotate:T(),invert:z(),gap:Z(),gradientColorStops:[n],gradientColorStopPositions:[Jv,$n],inset:xe(),margin:xe(),opacity:T(),padding:Z(),saturate:T(),scale:T(),sepia:z(),skew:T(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",ye]}],container:["container"],columns:[{columns:[Bn]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),ye]}],overflow:[{overflow:pe()}],"overflow-x":[{"overflow-x":pe()}],"overflow-y":[{"overflow-y":pe()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Mo,ye]}],basis:[{basis:xe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ye]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",Mo,ye]}],"grid-cols":[{"grid-cols":[Do]}],"col-start-end":[{col:["auto",{span:["full",Mo,ye]},ye]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Do]}],"row-start-end":[{row:["auto",{span:[Mo,ye]},ye]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ye]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ye]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ye,o]}],"min-w":[{"min-w":[ye,o,"min","max","fit"]}],"max-w":[{"max-w":[ye,o,"none","full","min","max","fit","prose",{screen:[Bn]},Bn]}],h:[{h:[ye,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ye,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ye,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Bn,$n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pl]}],"font-family":[{font:[Do]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ye]}],"line-clamp":[{"line-clamp":["none",Fr,Pl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,ye]}],"list-image":[{"list-image":["none",ye]}],"list-style-type":[{list:["none","disc","decimal",ye]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,$n]}],"underline-offset":[{"underline-offset":["auto",mn,ye]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),ny]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ty]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oy]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:se()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-s":[{"border-s":[u]}],"border-color-e":[{"border-e":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[mn,ye]}],"outline-w":[{outline:[mn,$n]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[mn,$n]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Bn,sy]}],"shadow-color":[{shadow:[Do]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[a]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Bn,ye]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[M]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ye]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",ye]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",ye]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[Mo,ye]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ye]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[mn,$n,Pl]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},cy=Hv(uy);function Kn(...n){return cy(mp(n))}const dy=Nv,Ep=x.forwardRef(({className:n,...o},s)=>g.jsx(ap,{ref:s,className:Kn("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]",n),...o}));Ep.displayName=ap.displayName;const fy=hp("group pointer-events-auto relative 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=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),bp=x.forwardRef(({className:n,variant:o,...s},a)=>g.jsx(lp,{ref:a,className:Kn(fy({variant:o}),n),...s}));bp.displayName=lp.displayName;const py=x.forwardRef(({className:n,...o},s)=>g.jsx(dp,{ref:s,className:Kn("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-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",n),...o}));py.displayName=dp.displayName;const Cp=x.forwardRef(({className:n,...o},s)=>g.jsx(fp,{ref:s,className:Kn("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",n),"toast-close":"",...o,children:g.jsx(_v,{className:"h-4 w-4"})}));Cp.displayName=fp.displayName;const Pp=x.forwardRef(({className:n,...o},s)=>g.jsx(up,{ref:s,className:Kn("text-sm font-semibold",n),...o}));Pp.displayName=up.displayName;const kp=x.forwardRef(({className:n,...o},s)=>g.jsx(cp,{ref:s,className:Kn("text-sm opacity-90",n),...o}));kp.displayName=cp.displayName;function my(){const{toasts:n}=Bf();return g.jsxs(dy,{children:[n.map(function({id:o,title:s,description:a,action:u,...d}){return g.jsxs(bp,{...d,children:[g.jsxs("div",{className:"grid gap-1",children:[s&&g.jsx(Pp,{children:s}),a&&g.jsx(kp,{children:a})]}),u,g.jsx(Cp,{})]},o)}),g.jsx(Ep,{})]})}var lf=["light","dark"],hy="(prefers-color-scheme: dark)",gy=x.createContext(void 0),vy={setTheme:n=>{},themes:[]},yy=()=>{var n;return(n=x.useContext(gy))!=null?n:vy};x.memo(({forcedTheme:n,storageKey:o,attribute:s,enableSystem:a,enableColorScheme:u,defaultTheme:d,value:f,attrs:p,nonce:h})=>{let v=d==="system",w=s==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${p.map(R=>`'${R}'`).join(",")})`};`:`var d=document.documentElement,n='${s}',s='setAttribute';`,E=u?lf.includes(d)&&d?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${d}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",k=(R,C=!1,b=!0)=>{let A=f?f[R]:R,I=C?R+"|| ''":`'${A}'`,M="";return u&&b&&!C&&lf.includes(R)&&(M+=`d.style.colorScheme = '${R}';`),s==="class"?C||A?M+=`c.add(${I})`:M+="null":A&&(M+=`d[s](n,${I})`),M},y=n?`!function(){${w}${k(n)}}()`:a?`!function(){try{${w}var e=localStorage.getItem('${o}');if('system'===e||(!e&&${v})){var t='${hy}',m=window.matchMedia(t);if(m.media!==t||m.matches){${k("dark")}}else{${k("light")}}}else if(e){${f?`var x=${JSON.stringify(f)};`:""}${k(f?"x[e]":"e",!0)}}${v?"":"else{"+k(d,!1,!1)+"}"}${E}}catch(e){}}()`:`!function(){try{${w}var e=localStorage.getItem('${o}');if(e){${f?`var x=${JSON.stringify(f)};`:""}${k(f?"x[e]":"e",!0)}}else{${k(d,!1,!1)};}${E}}catch(t){}}();`;return x.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:y}})});var xy=n=>{switch(n){case"success":return Ey;case"info":return Cy;case"warning":return by;case"error":return Py;default:return null}},wy=Array(12).fill(0),Sy=({visible:n,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":n},K.createElement("div",{className:"sonner-spinner"},wy.map((s,a)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Ey=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),by=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Cy=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Py=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ky=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ny=()=>{let[n,o]=K.useState(document.hidden);return K.useEffect(()=>{let s=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n},Ll=1,Ty=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let o=this.subscribers.indexOf(n);this.subscribers.splice(o,1)}),this.publish=n=>{this.subscribers.forEach(o=>o(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var o;let{message:s,...a}=n,u=typeof n?.id=="number"||((o=n.id)==null?void 0:o.length)>0?n.id:Ll++,d=this.toasts.find(p=>p.id===u),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),d?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...n,id:u,title:s}),{...p,...n,id:u,dismissible:f,title:s}):p):this.addToast({title:s,...a,dismissible:f,id:u}),u},this.dismiss=n=>(this.dismissedToasts.add(n),n||this.toasts.forEach(o=>{this.subscribers.forEach(s=>s({id:o.id,dismiss:!0}))}),this.subscribers.forEach(o=>o({id:n,dismiss:!0})),n),this.message=(n,o)=>this.create({...o,message:n}),this.error=(n,o)=>this.create({...o,message:n,type:"error"}),this.success=(n,o)=>this.create({...o,type:"success",message:n}),this.info=(n,o)=>this.create({...o,type:"info",message:n}),this.warning=(n,o)=>this.create({...o,type:"warning",message:n}),this.loading=(n,o)=>this.create({...o,type:"loading",message:n}),this.promise=(n,o)=>{if(!o)return;let s;o.loading!==void 0&&(s=this.create({...o,promise:n,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let a=n instanceof Promise?n:n(),u=s!==void 0,d,f=a.then(async h=>{if(d=["resolve",h],K.isValidElement(h))u=!1,this.create({id:s,type:"default",message:h});else if(jy(h)&&!h.ok){u=!1;let v=typeof o.error=="function"?await o.error(`HTTP error! status: ${h.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${h.status}`):o.description;this.create({id:s,type:"error",message:v,description:w})}else if(o.success!==void 0){u=!1;let v=typeof o.success=="function"?await o.success(h):o.success,w=typeof o.description=="function"?await o.description(h):o.description;this.create({id:s,type:"success",message:v,description:w})}}).catch(async h=>{if(d=["reject",h],o.error!==void 0){u=!1;let v=typeof o.error=="function"?await o.error(h):o.error,w=typeof o.description=="function"?await o.description(h):o.description;this.create({id:s,type:"error",message:v,description:w})}}).finally(()=>{var h;u&&(this.dismiss(s),s=void 0),(h=o.finally)==null||h.call(o)}),p=()=>new Promise((h,v)=>f.then(()=>d[0]==="reject"?v(d[1]):h(d[1])).catch(v));return typeof s!="string"&&typeof s!="number"?{unwrap:p}:Object.assign(s,{unwrap:p})},this.custom=(n,o)=>{let s=o?.id||Ll++;return this.create({jsx:n(s),id:s,...o}),s},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ft=new Ty,Ry=(n,o)=>{let s=o?.id||Ll++;return ft.addToast({title:n,...o,id:s}),s},jy=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",Oy=Ry,_y=()=>ft.toasts,Ay=()=>ft.getActiveToasts();Object.assign(Oy,{success:ft.success,info:ft.info,warning:ft.warning,error:ft.error,custom:ft.custom,message:ft.message,promise:ft.promise,dismiss:ft.dismiss,loading:ft.loading},{getHistory:_y,getToasts:Ay});function Ly(n,{insertAt:o}={}){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",o==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n))}Ly(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function ai(n){return n.label!==void 0}var Iy=3,My="32px",Dy="16px",uf=4e3,zy=356,Fy=14,$y=20,By=200;function Ft(...n){return n.filter(Boolean).join(" ")}function Uy(n){let[o,s]=n.split("-"),a=[];return o&&a.push(o),s&&a.push(s),a}var Vy=n=>{var o,s,a,u,d,f,p,h,v,w,E;let{invert:k,toast:y,unstyled:R,interacting:C,setHeights:b,visibleToasts:A,heights:I,index:M,toasts:F,expanded:Q,removeToast:H,defaultRichColors:Y,closeButton:ce,style:ge,cancelButtonStyle:pe,actionButtonStyle:xe,className:Z="",descriptionClassName:me="",duration:q,position:he,gap:se,loadingIcon:re,expandByDefault:D,classNames:z,icons:V,closeButtonAriaLabel:T="Close toast",pauseWhenPageIsHidden:L}=n,[G,J]=K.useState(null),[ue,ve]=K.useState(null),[ie,Se]=K.useState(!1),[be,ze]=K.useState(!1),[St,yn]=K.useState(!1),[Et,qr]=K.useState(!1),[Wo,Yr]=K.useState(!1),[Gr,dr]=K.useState(0),[Xr,xn]=K.useState(0),bt=K.useRef(y.duration||q||uf),fr=K.useRef(null),Wt=K.useRef(null),Ho=M===0,Qo=M+1<=A,Je=y.type,Ht=y.dismissible!==!1,pr=y.className||"",Ko=y.descriptionClassName||"",Qt=K.useMemo(()=>I.findIndex(fe=>fe.toastId===y.id)||0,[I,y.id]),qn=K.useMemo(()=>{var fe;return(fe=y.closeButton)!=null?fe:ce},[y.closeButton,ce]),qo=K.useMemo(()=>y.duration||q||uf,[y.duration,q]),mr=K.useRef(0),on=K.useRef(0),Yo=K.useRef(0),Kt=K.useRef(null),[Zr,Jr]=he.split("-"),hr=K.useMemo(()=>I.reduce((fe,Pe,Ne)=>Ne>=Qt?fe:fe+Pe.height,0),[I,Qt]),gr=Ny(),wn=y.invert||k,qt=Je==="loading";on.current=K.useMemo(()=>Qt*se+hr,[Qt,hr]),K.useEffect(()=>{bt.current=qo},[qo]),K.useEffect(()=>{Se(!0)},[]),K.useEffect(()=>{let fe=Wt.current;if(fe){let Pe=fe.getBoundingClientRect().height;return xn(Pe),b(Ne=>[{toastId:y.id,height:Pe,position:y.position},...Ne]),()=>b(Ne=>Ne.filter(et=>et.toastId!==y.id))}},[b,y.id]),K.useLayoutEffect(()=>{if(!ie)return;let fe=Wt.current,Pe=fe.style.height;fe.style.height="auto";let Ne=fe.getBoundingClientRect().height;fe.style.height=Pe,xn(Ne),b(et=>et.find(ot=>ot.toastId===y.id)?et.map(ot=>ot.toastId===y.id?{...ot,height:Ne}:ot):[{toastId:y.id,height:Ne,position:y.position},...et])},[ie,y.title,y.description,b,y.id]);let jt=K.useCallback(()=>{ze(!0),dr(on.current),b(fe=>fe.filter(Pe=>Pe.toastId!==y.id)),setTimeout(()=>{H(y)},By)},[y,H,b,on]);K.useEffect(()=>{if(y.promise&&Je==="loading"||y.duration===1/0||y.type==="loading")return;let fe;return Q||C||L&&gr?(()=>{if(Yo.current{var Pe;(Pe=y.onAutoClose)==null||Pe.call(y,y),jt()},bt.current)),()=>clearTimeout(fe)},[Q,C,y,Je,L,gr,jt]),K.useEffect(()=>{y.delete&&jt()},[jt,y.delete]);function Go(){var fe,Pe,Ne;return V!=null&&V.loading?K.createElement("div",{className:Ft(z?.loader,(fe=y?.classNames)==null?void 0:fe.loader,"sonner-loader"),"data-visible":Je==="loading"},V.loading):re?K.createElement("div",{className:Ft(z?.loader,(Pe=y?.classNames)==null?void 0:Pe.loader,"sonner-loader"),"data-visible":Je==="loading"},re):K.createElement(Sy,{className:Ft(z?.loader,(Ne=y?.classNames)==null?void 0:Ne.loader),visible:Je==="loading"})}return K.createElement("li",{tabIndex:0,ref:Wt,className:Ft(Z,pr,z?.toast,(o=y?.classNames)==null?void 0:o.toast,z?.default,z?.[Je],(s=y?.classNames)==null?void 0:s[Je]),"data-sonner-toast":"","data-rich-colors":(a=y.richColors)!=null?a:Y,"data-styled":!(y.jsx||y.unstyled||R),"data-mounted":ie,"data-promise":!!y.promise,"data-swiped":Wo,"data-removed":be,"data-visible":Qo,"data-y-position":Zr,"data-x-position":Jr,"data-index":M,"data-front":Ho,"data-swiping":St,"data-dismissible":Ht,"data-type":Je,"data-invert":wn,"data-swipe-out":Et,"data-swipe-direction":ue,"data-expanded":!!(Q||D&&ie),style:{"--index":M,"--toasts-before":M,"--z-index":F.length-M,"--offset":`${be?Gr:on.current}px`,"--initial-height":D?"auto":`${Xr}px`,...ge,...y.style},onDragEnd:()=>{yn(!1),J(null),Kt.current=null},onPointerDown:fe=>{qt||!Ht||(fr.current=new Date,dr(on.current),fe.target.setPointerCapture(fe.pointerId),fe.target.tagName!=="BUTTON"&&(yn(!0),Kt.current={x:fe.clientX,y:fe.clientY}))},onPointerUp:()=>{var fe,Pe,Ne,et;if(Et||!Ht)return;Kt.current=null;let ot=Number(((fe=Wt.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),st=Number(((Pe=Wt.current)==null?void 0:Pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ot=new Date().getTime()-((Ne=fr.current)==null?void 0:Ne.getTime()),Qe=G==="x"?ot:st,Yt=Math.abs(Qe)/Ot;if(Math.abs(Qe)>=$y||Yt>.11){dr(on.current),(et=y.onDismiss)==null||et.call(y,y),ve(G==="x"?ot>0?"right":"left":st>0?"down":"up"),jt(),qr(!0),Yr(!1);return}yn(!1),J(null)},onPointerMove:fe=>{var Pe,Ne,et,ot;if(!Kt.current||!Ht||((Pe=window.getSelection())==null?void 0:Pe.toString().length)>0)return;let st=fe.clientY-Kt.current.y,Ot=fe.clientX-Kt.current.x,Qe=(Ne=n.swipeDirections)!=null?Ne:Uy(he);!G&&(Math.abs(Ot)>1||Math.abs(st)>1)&&J(Math.abs(Ot)>Math.abs(st)?"x":"y");let Yt={x:0,y:0};G==="y"?(Qe.includes("top")||Qe.includes("bottom"))&&(Qe.includes("top")&&st<0||Qe.includes("bottom")&&st>0)&&(Yt.y=st):G==="x"&&(Qe.includes("left")||Qe.includes("right"))&&(Qe.includes("left")&&Ot<0||Qe.includes("right")&&Ot>0)&&(Yt.x=Ot),(Math.abs(Yt.x)>0||Math.abs(Yt.y)>0)&&Yr(!0),(et=Wt.current)==null||et.style.setProperty("--swipe-amount-x",`${Yt.x}px`),(ot=Wt.current)==null||ot.style.setProperty("--swipe-amount-y",`${Yt.y}px`)}},qn&&!y.jsx?K.createElement("button",{"aria-label":T,"data-disabled":qt,"data-close-button":!0,onClick:qt||!Ht?()=>{}:()=>{var fe;jt(),(fe=y.onDismiss)==null||fe.call(y,y)},className:Ft(z?.closeButton,(u=y?.classNames)==null?void 0:u.closeButton)},(d=V?.close)!=null?d:ky):null,y.jsx||x.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:K.createElement(K.Fragment,null,Je||y.icon||y.promise?K.createElement("div",{"data-icon":"",className:Ft(z?.icon,(f=y?.classNames)==null?void 0:f.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Go():null,y.type!=="loading"?y.icon||V?.[Je]||xy(Je):null):null,K.createElement("div",{"data-content":"",className:Ft(z?.content,(p=y?.classNames)==null?void 0:p.content)},K.createElement("div",{"data-title":"",className:Ft(z?.title,(h=y?.classNames)==null?void 0:h.title)},typeof y.title=="function"?y.title():y.title),y.description?K.createElement("div",{"data-description":"",className:Ft(me,Ko,z?.description,(v=y?.classNames)==null?void 0:v.description)},typeof y.description=="function"?y.description():y.description):null),x.isValidElement(y.cancel)?y.cancel:y.cancel&&ai(y.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||pe,onClick:fe=>{var Pe,Ne;ai(y.cancel)&&Ht&&((Ne=(Pe=y.cancel).onClick)==null||Ne.call(Pe,fe),jt())},className:Ft(z?.cancelButton,(w=y?.classNames)==null?void 0:w.cancelButton)},y.cancel.label):null,x.isValidElement(y.action)?y.action:y.action&&ai(y.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||xe,onClick:fe=>{var Pe,Ne;ai(y.action)&&((Ne=(Pe=y.action).onClick)==null||Ne.call(Pe,fe),!fe.defaultPrevented&&jt())},className:Ft(z?.actionButton,(E=y?.classNames)==null?void 0:E.actionButton)},y.action.label):null))};function cf(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function Wy(n,o){let s={};return[n,o].forEach((a,u)=>{let d=u===1,f=d?"--mobile-offset":"--offset",p=d?Dy:My;function h(v){["top","right","bottom","left"].forEach(w=>{s[`${f}-${w}`]=typeof v=="number"?`${v}px`:v})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(v=>{a[v]===void 0?s[`${f}-${v}`]=p:s[`${f}-${v}`]=typeof a[v]=="number"?`${a[v]}px`:a[v]}):h(p)}),s}var Hy=x.forwardRef(function(n,o){let{invert:s,position:a="bottom-right",hotkey:u=["altKey","KeyT"],expand:d,closeButton:f,className:p,offset:h,mobileOffset:v,theme:w="light",richColors:E,duration:k,style:y,visibleToasts:R=Iy,toastOptions:C,dir:b=cf(),gap:A=Fy,loadingIcon:I,icons:M,containerAriaLabel:F="Notifications",pauseWhenPageIsHidden:Q}=n,[H,Y]=K.useState([]),ce=K.useMemo(()=>Array.from(new Set([a].concat(H.filter(L=>L.position).map(L=>L.position)))),[H,a]),[ge,pe]=K.useState([]),[xe,Z]=K.useState(!1),[me,q]=K.useState(!1),[he,se]=K.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),re=K.useRef(null),D=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=K.useRef(null),V=K.useRef(!1),T=K.useCallback(L=>{Y(G=>{var J;return(J=G.find(ue=>ue.id===L.id))!=null&&J.delete||ft.dismiss(L.id),G.filter(({id:ue})=>ue!==L.id)})},[]);return K.useEffect(()=>ft.subscribe(L=>{if(L.dismiss){Y(G=>G.map(J=>J.id===L.id?{...J,delete:!0}:J));return}setTimeout(()=>{Uf.flushSync(()=>{Y(G=>{let J=G.findIndex(ue=>ue.id===L.id);return J!==-1?[...G.slice(0,J),{...G[J],...L},...G.slice(J+1)]:[L,...G]})})})}),[]),K.useEffect(()=>{if(w!=="system"){se(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;let L=window.matchMedia("(prefers-color-scheme: dark)");try{L.addEventListener("change",({matches:G})=>{se(G?"dark":"light")})}catch{L.addListener(({matches:J})=>{try{se(J?"dark":"light")}catch(ue){console.error(ue)}})}},[w]),K.useEffect(()=>{H.length<=1&&Z(!1)},[H]),K.useEffect(()=>{let L=G=>{var J,ue;u.every(ve=>G[ve]||G.code===ve)&&(Z(!0),(J=re.current)==null||J.focus()),G.code==="Escape"&&(document.activeElement===re.current||(ue=re.current)!=null&&ue.contains(document.activeElement))&&Z(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[u]),K.useEffect(()=>{if(re.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,V.current=!1)}},[re.current]),K.createElement("section",{ref:o,"aria-label":`${F} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ce.map((L,G)=>{var J;let[ue,ve]=L.split("-");return H.length?K.createElement("ol",{key:L,dir:b==="auto"?cf():b,tabIndex:-1,ref:re,className:p,"data-sonner-toaster":!0,"data-theme":he,"data-y-position":ue,"data-lifted":xe&&H.length>1&&!d,"data-x-position":ve,style:{"--front-toast-height":`${((J=ge[0])==null?void 0:J.height)||0}px`,"--width":`${zy}px`,"--gap":`${A}px`,...y,...Wy(h,v)},onBlur:ie=>{V.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(V.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||V.current||(V.current=!0,z.current=ie.relatedTarget)},onMouseEnter:()=>Z(!0),onMouseMove:()=>Z(!0),onMouseLeave:()=>{me||Z(!1)},onDragEnd:()=>Z(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},H.filter(ie=>!ie.position&&G===0||ie.position===L).map((ie,Se)=>{var be,ze;return K.createElement(Vy,{key:ie.id,icons:M,index:Se,toast:ie,defaultRichColors:E,duration:(be=C?.duration)!=null?be:k,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:s,visibleToasts:R,closeButton:(ze=C?.closeButton)!=null?ze:f,interacting:me,position:L,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,removeToast:T,toasts:H.filter(St=>St.position==ie.position),heights:ge.filter(St=>St.position==ie.position),setHeights:pe,expandByDefault:d,gap:A,loadingIcon:I,expanded:xe,pauseWhenPageIsHidden:Q,swipeDirections:n.swipeDirections})})):null}))});const Qy=({...n})=>{const{theme:o="system"}=yy();return g.jsx(Hy,{theme:o,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...n})},Ky=["top","right","bottom","left"],Hn=Math.min,xt=Math.max,pi=Math.round,li=Math.floor,nn=n=>({x:n,y:n}),qy={left:"right",right:"left",bottom:"top",top:"bottom"};function Il(n,o,s){return xt(n,Hn(o,s))}function hn(n,o){return typeof n=="function"?n(o):n}function gn(n){return n.split("-")[0]}function Qr(n){return n.split("-")[1]}function eu(n){return n==="x"?"y":"x"}function tu(n){return n==="y"?"height":"width"}function tn(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function nu(n){return eu(tn(n))}function Yy(n,o,s){s===void 0&&(s=!1);const a=Qr(n),u=nu(n),d=tu(u);let f=u==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(f=mi(f)),[f,mi(f)]}function Gy(n){const o=mi(n);return[Ml(n),o,Ml(o)]}function Ml(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const df=["left","right"],ff=["right","left"],Xy=["top","bottom"],Zy=["bottom","top"];function Jy(n,o,s){switch(n){case"top":case"bottom":return s?o?ff:df:o?df:ff;case"left":case"right":return o?Xy:Zy;default:return[]}}function e0(n,o,s,a){const u=Qr(n);let d=Jy(gn(n),s==="start",a);return u&&(d=d.map(f=>f+"-"+u),o&&(d=d.concat(d.map(Ml)))),d}function mi(n){const o=gn(n);return qy[o]+n.slice(o.length)}function t0(n){return{top:0,right:0,bottom:0,left:0,...n}}function Np(n){return typeof n!="number"?t0(n):{top:n,right:n,bottom:n,left:n}}function hi(n){const{x:o,y:s,width:a,height:u}=n;return{width:a,height:u,top:s,left:o,right:o+a,bottom:s+u,x:o,y:s}}function pf(n,o,s){let{reference:a,floating:u}=n;const d=tn(o),f=nu(o),p=tu(f),h=gn(o),v=d==="y",w=a.x+a.width/2-u.width/2,E=a.y+a.height/2-u.height/2,k=a[p]/2-u[p]/2;let y;switch(h){case"top":y={x:w,y:a.y-u.height};break;case"bottom":y={x:w,y:a.y+a.height};break;case"right":y={x:a.x+a.width,y:E};break;case"left":y={x:a.x-u.width,y:E};break;default:y={x:a.x,y:a.y}}switch(Qr(o)){case"start":y[f]-=k*(s&&v?-1:1);break;case"end":y[f]+=k*(s&&v?-1:1);break}return y}async function n0(n,o){var s;o===void 0&&(o={});const{x:a,y:u,platform:d,rects:f,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:E="floating",altBoundary:k=!1,padding:y=0}=hn(o,n),R=Np(y),b=p[k?E==="floating"?"reference":"floating":E],A=hi(await d.getClippingRect({element:(s=await(d.isElement==null?void 0:d.isElement(b)))==null||s?b:b.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:v,rootBoundary:w,strategy:h})),I=E==="floating"?{x:a,y:u,width:f.floating.width,height:f.floating.height}:f.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),F=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Q=hi(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:I,offsetParent:M,strategy:h}):I);return{top:(A.top-Q.top+R.top)/F.y,bottom:(Q.bottom-A.bottom+R.bottom)/F.y,left:(A.left-Q.left+R.left)/F.x,right:(Q.right-A.right+R.right)/F.x}}const r0=50,o0=async(n,o,s)=>{const{placement:a="bottom",strategy:u="absolute",middleware:d=[],platform:f}=s,p=f.detectOverflow?f:{...f,detectOverflow:n0},h=await(f.isRTL==null?void 0:f.isRTL(o));let v=await f.getElementRects({reference:n,floating:o,strategy:u}),{x:w,y:E}=pf(v,a,h),k=a,y=0;const R={};for(let C=0;C({name:"arrow",options:n,async fn(o){const{x:s,y:a,placement:u,rects:d,platform:f,elements:p,middlewareData:h}=o,{element:v,padding:w=0}=hn(n,o)||{};if(v==null)return{};const E=Np(w),k={x:s,y:a},y=nu(u),R=tu(y),C=await f.getDimensions(v),b=y==="y",A=b?"top":"left",I=b?"bottom":"right",M=b?"clientHeight":"clientWidth",F=d.reference[R]+d.reference[y]-k[y]-d.floating[R],Q=k[y]-d.reference[y],H=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let Y=H?H[M]:0;(!Y||!await(f.isElement==null?void 0:f.isElement(H)))&&(Y=p.floating[M]||d.floating[R]);const ce=F/2-Q/2,ge=Y/2-C[R]/2-1,pe=Hn(E[A],ge),xe=Hn(E[I],ge),Z=pe,me=Y-C[R]-xe,q=Y/2-C[R]/2+ce,he=Il(Z,q,me),se=!h.arrow&&Qr(u)!=null&&q!==he&&d.reference[R]/2-(qq<=0)){var xe,Z;const q=(((xe=d.flip)==null?void 0:xe.index)||0)+1,he=Y[q];if(he&&(!(E==="alignment"?I!==tn(he):!1)||pe.every(D=>tn(D.placement)===I?D.overflows[0]>0:!0)))return{data:{index:q,overflows:pe},reset:{placement:he}};let se=(Z=pe.filter(re=>re.overflows[0]<=0).sort((re,D)=>re.overflows[1]-D.overflows[1])[0])==null?void 0:Z.placement;if(!se)switch(y){case"bestFit":{var me;const re=(me=pe.filter(D=>{if(H){const z=tn(D.placement);return z===I||z==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(z=>z>0).reduce((z,V)=>z+V,0)]).sort((D,z)=>D[1]-z[1])[0])==null?void 0:me[0];re&&(se=re);break}case"initialPlacement":se=p;break}if(u!==se)return{reset:{placement:se}}}return{}}}};function mf(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function hf(n){return Ky.some(o=>n[o]>=0)}const a0=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:s,platform:a}=o,{strategy:u="referenceHidden",...d}=hn(n,o);switch(u){case"referenceHidden":{const f=await a.detectOverflow(o,{...d,elementContext:"reference"}),p=mf(f,s.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:hf(p)}}}case"escaped":{const f=await a.detectOverflow(o,{...d,altBoundary:!0}),p=mf(f,s.floating);return{data:{escapedOffsets:p,escaped:hf(p)}}}default:return{}}}}},Tp=new Set(["left","top"]);async function l0(n,o){const{placement:s,platform:a,elements:u}=n,d=await(a.isRTL==null?void 0:a.isRTL(u.floating)),f=gn(s),p=Qr(s),h=tn(s)==="y",v=Tp.has(f)?-1:1,w=d&&h?-1:1,E=hn(o,n);let{mainAxis:k,crossAxis:y,alignmentAxis:R}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return p&&typeof R=="number"&&(y=p==="end"?R*-1:R),h?{x:y*w,y:k*v}:{x:k*v,y:y*w}}const u0=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var s,a;const{x:u,y:d,placement:f,middlewareData:p}=o,h=await l0(o,n);return f===((s=p.offset)==null?void 0:s.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:u+h.x,y:d+h.y,data:{...h,placement:f}}}}},c0=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:s,y:a,placement:u,platform:d}=o,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:A=>{let{x:I,y:M}=A;return{x:I,y:M}}},...v}=hn(n,o),w={x:s,y:a},E=await d.detectOverflow(o,v),k=tn(gn(u)),y=eu(k);let R=w[y],C=w[k];if(f){const A=y==="y"?"top":"left",I=y==="y"?"bottom":"right",M=R+E[A],F=R-E[I];R=Il(M,R,F)}if(p){const A=k==="y"?"top":"left",I=k==="y"?"bottom":"right",M=C+E[A],F=C-E[I];C=Il(M,C,F)}const b=h.fn({...o,[y]:R,[k]:C});return{...b,data:{x:b.x-s,y:b.y-a,enabled:{[y]:f,[k]:p}}}}}},d0=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:s,y:a,placement:u,rects:d,middlewareData:f}=o,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=hn(n,o),w={x:s,y:a},E=tn(u),k=eu(E);let y=w[k],R=w[E];const C=hn(p,o),b=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(h){const M=k==="y"?"height":"width",F=d.reference[k]-d.floating[M]+b.mainAxis,Q=d.reference[k]+d.reference[M]-b.mainAxis;yQ&&(y=Q)}if(v){var A,I;const M=k==="y"?"width":"height",F=Tp.has(gn(u)),Q=d.reference[E]-d.floating[M]+(F&&((A=f.offset)==null?void 0:A[E])||0)+(F?0:b.crossAxis),H=d.reference[E]+d.reference[M]+(F?0:((I=f.offset)==null?void 0:I[E])||0)-(F?b.crossAxis:0);RH&&(R=H)}return{[k]:y,[E]:R}}}},f0=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var s,a;const{placement:u,rects:d,platform:f,elements:p}=o,{apply:h=()=>{},...v}=hn(n,o),w=await f.detectOverflow(o,v),E=gn(u),k=Qr(u),y=tn(u)==="y",{width:R,height:C}=d.floating;let b,A;E==="top"||E==="bottom"?(b=E,A=k===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(A=E,b=k==="end"?"top":"bottom");const I=C-w.top-w.bottom,M=R-w.left-w.right,F=Hn(C-w[b],I),Q=Hn(R-w[A],M),H=!o.middlewareData.shift;let Y=F,ce=Q;if((s=o.middlewareData.shift)!=null&&s.enabled.x&&(ce=M),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(Y=I),H&&!k){const pe=xt(w.left,0),xe=xt(w.right,0),Z=xt(w.top,0),me=xt(w.bottom,0);y?ce=R-2*(pe!==0||xe!==0?pe+xe:xt(w.left,w.right)):Y=C-2*(Z!==0||me!==0?Z+me:xt(w.top,w.bottom))}await h({...o,availableWidth:ce,availableHeight:Y});const ge=await f.getDimensions(p.floating);return R!==ge.width||C!==ge.height?{reset:{rects:!0}}:{}}}};function ki(){return typeof window<"u"}function Kr(n){return Rp(n)?(n.nodeName||"").toLowerCase():"#document"}function wt(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function rn(n){var o;return(o=(Rp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Rp(n){return ki()?n instanceof Node||n instanceof wt(n).Node:!1}function Ut(n){return ki()?n instanceof Element||n instanceof wt(n).Element:!1}function vn(n){return ki()?n instanceof HTMLElement||n instanceof wt(n).HTMLElement:!1}function gf(n){return!ki()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof wt(n).ShadowRoot}function Vo(n){const{overflow:o,overflowX:s,overflowY:a,display:u}=Vt(n);return/auto|scroll|overlay|hidden|clip/.test(o+a+s)&&u!=="inline"&&u!=="contents"}function p0(n){return/^(table|td|th)$/.test(Kr(n))}function Ni(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const m0=/transform|translate|scale|rotate|perspective|filter/,h0=/paint|layout|strict|content/,lr=n=>!!n&&n!=="none";let kl;function ru(n){const o=Ut(n)?Vt(n):n;return lr(o.transform)||lr(o.translate)||lr(o.scale)||lr(o.rotate)||lr(o.perspective)||!ou()&&(lr(o.backdropFilter)||lr(o.filter))||m0.test(o.willChange||"")||h0.test(o.contain||"")}function g0(n){let o=Qn(n);for(;vn(o)&&!Vr(o);){if(ru(o))return o;if(Ni(o))return null;o=Qn(o)}return null}function ou(){return kl==null&&(kl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kl}function Vr(n){return/^(html|body|#document)$/.test(Kr(n))}function Vt(n){return wt(n).getComputedStyle(n)}function Ti(n){return Ut(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Qn(n){if(Kr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||gf(n)&&n.host||rn(n);return gf(o)?o.host:o}function jp(n){const o=Qn(n);return Vr(o)?n.ownerDocument?n.ownerDocument.body:n.body:vn(o)&&Vo(o)?o:jp(o)}function Fo(n,o,s){var a;o===void 0&&(o=[]),s===void 0&&(s=!0);const u=jp(n),d=u===((a=n.ownerDocument)==null?void 0:a.body),f=wt(u);if(d){const p=Dl(f);return o.concat(f,f.visualViewport||[],Vo(u)?u:[],p&&s?Fo(p):[])}else return o.concat(u,Fo(u,[],s))}function Dl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Op(n){const o=Vt(n);let s=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const u=vn(n),d=u?n.offsetWidth:s,f=u?n.offsetHeight:a,p=pi(s)!==d||pi(a)!==f;return p&&(s=d,a=f),{width:s,height:a,$:p}}function su(n){return Ut(n)?n:n.contextElement}function $r(n){const o=su(n);if(!vn(o))return nn(1);const s=o.getBoundingClientRect(),{width:a,height:u,$:d}=Op(o);let f=(d?pi(s.width):s.width)/a,p=(d?pi(s.height):s.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const v0=nn(0);function _p(n){const o=wt(n);return!ou()||!o.visualViewport?v0:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function y0(n,o,s){return o===void 0&&(o=!1),!s||o&&s!==wt(n)?!1:o}function ur(n,o,s,a){o===void 0&&(o=!1),s===void 0&&(s=!1);const u=n.getBoundingClientRect(),d=su(n);let f=nn(1);o&&(a?Ut(a)&&(f=$r(a)):f=$r(n));const p=y0(d,s,a)?_p(d):nn(0);let h=(u.left+p.x)/f.x,v=(u.top+p.y)/f.y,w=u.width/f.x,E=u.height/f.y;if(d){const k=wt(d),y=a&&Ut(a)?wt(a):a;let R=k,C=Dl(R);for(;C&&a&&y!==R;){const b=$r(C),A=C.getBoundingClientRect(),I=Vt(C),M=A.left+(C.clientLeft+parseFloat(I.paddingLeft))*b.x,F=A.top+(C.clientTop+parseFloat(I.paddingTop))*b.y;h*=b.x,v*=b.y,w*=b.x,E*=b.y,h+=M,v+=F,R=wt(C),C=Dl(R)}}return hi({width:w,height:E,x:h,y:v})}function Ri(n,o){const s=Ti(n).scrollLeft;return o?o.left+s:ur(rn(n)).left+s}function Ap(n,o){const s=n.getBoundingClientRect(),a=s.left+o.scrollLeft-Ri(n,s),u=s.top+o.scrollTop;return{x:a,y:u}}function x0(n){let{elements:o,rect:s,offsetParent:a,strategy:u}=n;const d=u==="fixed",f=rn(a),p=o?Ni(o.floating):!1;if(a===f||p&&d)return s;let h={scrollLeft:0,scrollTop:0},v=nn(1);const w=nn(0),E=vn(a);if((E||!E&&!d)&&((Kr(a)!=="body"||Vo(f))&&(h=Ti(a)),E)){const y=ur(a);v=$r(a),w.x=y.x+a.clientLeft,w.y=y.y+a.clientTop}const k=f&&!E&&!d?Ap(f,h):nn(0);return{width:s.width*v.x,height:s.height*v.y,x:s.x*v.x-h.scrollLeft*v.x+w.x+k.x,y:s.y*v.y-h.scrollTop*v.y+w.y+k.y}}function w0(n){return Array.from(n.getClientRects())}function S0(n){const o=rn(n),s=Ti(n),a=n.ownerDocument.body,u=xt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),d=xt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let f=-s.scrollLeft+Ri(n);const p=-s.scrollTop;return Vt(a).direction==="rtl"&&(f+=xt(o.clientWidth,a.clientWidth)-u),{width:u,height:d,x:f,y:p}}const vf=25;function E0(n,o){const s=wt(n),a=rn(n),u=s.visualViewport;let d=a.clientWidth,f=a.clientHeight,p=0,h=0;if(u){d=u.width,f=u.height;const w=ou();(!w||w&&o==="fixed")&&(p=u.offsetLeft,h=u.offsetTop)}const v=Ri(a);if(v<=0){const w=a.ownerDocument,E=w.body,k=getComputedStyle(E),y=w.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,R=Math.abs(a.clientWidth-E.clientWidth-y);R<=vf&&(d-=R)}else v<=vf&&(d+=v);return{width:d,height:f,x:p,y:h}}function b0(n,o){const s=ur(n,!0,o==="fixed"),a=s.top+n.clientTop,u=s.left+n.clientLeft,d=vn(n)?$r(n):nn(1),f=n.clientWidth*d.x,p=n.clientHeight*d.y,h=u*d.x,v=a*d.y;return{width:f,height:p,x:h,y:v}}function yf(n,o,s){let a;if(o==="viewport")a=E0(n,s);else if(o==="document")a=S0(rn(n));else if(Ut(o))a=b0(o,s);else{const u=_p(n);a={x:o.x-u.x,y:o.y-u.y,width:o.width,height:o.height}}return hi(a)}function Lp(n,o){const s=Qn(n);return s===o||!Ut(s)||Vr(s)?!1:Vt(s).position==="fixed"||Lp(s,o)}function C0(n,o){const s=o.get(n);if(s)return s;let a=Fo(n,[],!1).filter(p=>Ut(p)&&Kr(p)!=="body"),u=null;const d=Vt(n).position==="fixed";let f=d?Qn(n):n;for(;Ut(f)&&!Vr(f);){const p=Vt(f),h=ru(f);!h&&p.position==="fixed"&&(u=null),(d?!h&&!u:!h&&p.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Vo(f)&&!h&&Lp(n,f))?a=a.filter(w=>w!==f):u=p,f=Qn(f)}return o.set(n,a),a}function P0(n){let{element:o,boundary:s,rootBoundary:a,strategy:u}=n;const f=[...s==="clippingAncestors"?Ni(o)?[]:C0(o,this._c):[].concat(s),a],p=yf(o,f[0],u);let h=p.top,v=p.right,w=p.bottom,E=p.left;for(let k=1;k{f(!1,1e-7)},1e3)}Y===1&&!Mp(v,n.getBoundingClientRect())&&f(),F=!1}try{s=new IntersectionObserver(Q,{...M,root:u.ownerDocument})}catch{s=new IntersectionObserver(Q,M)}s.observe(n)}return f(!0),d}function _0(n,o,s,a){a===void 0&&(a={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,v=su(n),w=u||d?[...v?Fo(v):[],...o?Fo(o):[]]:[];w.forEach(A=>{u&&A.addEventListener("scroll",s,{passive:!0}),d&&A.addEventListener("resize",s)});const E=v&&p?O0(v,s):null;let k=-1,y=null;f&&(y=new ResizeObserver(A=>{let[I]=A;I&&I.target===v&&y&&o&&(y.unobserve(o),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var M;(M=y)==null||M.observe(o)})),s()}),v&&!h&&y.observe(v),o&&y.observe(o));let R,C=h?ur(n):null;h&&b();function b(){const A=ur(n);C&&!Mp(C,A)&&s(),C=A,R=requestAnimationFrame(b)}return s(),()=>{var A;w.forEach(I=>{u&&I.removeEventListener("scroll",s),d&&I.removeEventListener("resize",s)}),E?.(),(A=y)==null||A.disconnect(),y=null,h&&cancelAnimationFrame(R)}}const A0=u0,L0=c0,I0=i0,M0=f0,D0=a0,wf=s0,z0=d0,F0=(n,o,s)=>{const a=new Map,u={platform:j0,...s},d={...u.platform,_c:a};return o0(n,o,{...u,platform:d})};var $0=typeof document<"u",B0=function(){},fi=$0?x.useLayoutEffect:B0;function gi(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let s,a,u;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==o.length)return!1;for(a=s;a--!==0;)if(!gi(n[a],o[a]))return!1;return!0}if(u=Object.keys(n),s=u.length,s!==Object.keys(o).length)return!1;for(a=s;a--!==0;)if(!{}.hasOwnProperty.call(o,u[a]))return!1;for(a=s;a--!==0;){const d=u[a];if(!(d==="_owner"&&n.$$typeof)&&!gi(n[d],o[d]))return!1}return!0}return n!==n&&o!==o}function Dp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Sf(n,o){const s=Dp(n);return Math.round(o*s)/s}function Tl(n){const o=x.useRef(n);return fi(()=>{o.current=n}),o}function U0(n){n===void 0&&(n={});const{placement:o="bottom",strategy:s="absolute",middleware:a=[],platform:u,elements:{reference:d,floating:f}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[w,E]=x.useState({x:0,y:0,strategy:s,placement:o,middlewareData:{},isPositioned:!1}),[k,y]=x.useState(a);gi(k,a)||y(a);const[R,C]=x.useState(null),[b,A]=x.useState(null),I=x.useCallback(D=>{D!==H.current&&(H.current=D,C(D))},[]),M=x.useCallback(D=>{D!==Y.current&&(Y.current=D,A(D))},[]),F=d||R,Q=f||b,H=x.useRef(null),Y=x.useRef(null),ce=x.useRef(w),ge=h!=null,pe=Tl(h),xe=Tl(u),Z=Tl(v),me=x.useCallback(()=>{if(!H.current||!Y.current)return;const D={placement:o,strategy:s,middleware:k};xe.current&&(D.platform=xe.current),F0(H.current,Y.current,D).then(z=>{const V={...z,isPositioned:Z.current!==!1};q.current&&!gi(ce.current,V)&&(ce.current=V,Si.flushSync(()=>{E(V)}))})},[k,o,s,xe,Z]);fi(()=>{v===!1&&ce.current.isPositioned&&(ce.current.isPositioned=!1,E(D=>({...D,isPositioned:!1})))},[v]);const q=x.useRef(!1);fi(()=>(q.current=!0,()=>{q.current=!1}),[]),fi(()=>{if(F&&(H.current=F),Q&&(Y.current=Q),F&&Q){if(pe.current)return pe.current(F,Q,me);me()}},[F,Q,me,pe,ge]);const he=x.useMemo(()=>({reference:H,floating:Y,setReference:I,setFloating:M}),[I,M]),se=x.useMemo(()=>({reference:F,floating:Q}),[F,Q]),re=x.useMemo(()=>{const D={position:s,left:0,top:0};if(!se.floating)return D;const z=Sf(se.floating,w.x),V=Sf(se.floating,w.y);return p?{...D,transform:"translate("+z+"px, "+V+"px)",...Dp(se.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:z,top:V}},[s,p,se.floating,w.x,w.y]);return x.useMemo(()=>({...w,update:me,refs:he,elements:se,floatingStyles:re}),[w,me,he,se,re])}const V0=n=>{function o(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:a,padding:u}=typeof n=="function"?n(s):n;return a&&o(a)?a.current!=null?wf({element:a.current,padding:u}).fn(s):{}:a?wf({element:a,padding:u}).fn(s):{}}}},W0=(n,o)=>{const s=A0(n);return{name:s.name,fn:s.fn,options:[n,o]}},H0=(n,o)=>{const s=L0(n);return{name:s.name,fn:s.fn,options:[n,o]}},Q0=(n,o)=>({fn:z0(n).fn,options:[n,o]}),K0=(n,o)=>{const s=I0(n);return{name:s.name,fn:s.fn,options:[n,o]}},q0=(n,o)=>{const s=M0(n);return{name:s.name,fn:s.fn,options:[n,o]}},Y0=(n,o)=>{const s=D0(n);return{name:s.name,fn:s.fn,options:[n,o]}},G0=(n,o)=>{const s=V0(n);return{name:s.name,fn:s.fn,options:[n,o]}};var X0="Arrow",zp=x.forwardRef((n,o)=>{const{children:s,width:a=10,height:u=5,...d}=n;return g.jsx(mt.svg,{...d,ref:o,width:a,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});zp.displayName=X0;var Z0=zp;function J0(n){const[o,s]=x.useState(void 0);return Wn(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const a=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let f,p;if("borderBoxSize"in d){const h=d.borderBoxSize,v=Array.isArray(h)?h[0]:h;f=v.inlineSize,p=v.blockSize}else f=n.offsetWidth,p=n.offsetHeight;s({width:f,height:p})});return a.observe(n,{box:"border-box"}),()=>a.unobserve(n)}else s(void 0)},[n]),o}var Fp="Popper",[$p,Bp]=bi(Fp),[w1,Up]=$p(Fp),Vp="PopperAnchor",Wp=x.forwardRef((n,o)=>{const{__scopePopper:s,virtualRef:a,...u}=n,d=Up(Vp,s),f=x.useRef(null),p=Bt(o,f),h=x.useRef(null);return x.useEffect(()=>{const v=h.current;h.current=a?.current||f.current,v!==h.current&&d.onAnchorChange(h.current)}),a?null:g.jsx(mt.div,{...u,ref:p})});Wp.displayName=Vp;var iu="PopperContent",[ex,tx]=$p(iu),Hp=x.forwardRef((n,o)=>{const{__scopePopper:s,side:a="bottom",sideOffset:u=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:E="partial",hideWhenDetached:k=!1,updatePositionStrategy:y="optimized",onPlaced:R,...C}=n,b=Up(iu,s),[A,I]=x.useState(null),M=Bt(o,ie=>I(ie)),[F,Q]=x.useState(null),H=J0(F),Y=H?.width??0,ce=H?.height??0,ge=a+(d!=="center"?"-"+d:""),pe=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},xe=Array.isArray(v)?v:[v],Z=xe.length>0,me={padding:pe,boundary:xe.filter(rx),altBoundary:Z},{refs:q,floatingStyles:he,placement:se,isPositioned:re,middlewareData:D}=U0({strategy:"fixed",placement:ge,whileElementsMounted:(...ie)=>_0(...ie,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[W0({mainAxis:u+ce,alignmentAxis:f}),h&&H0({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?Q0():void 0,...me}),h&&K0({...me}),q0({...me,apply:({elements:ie,rects:Se,availableWidth:be,availableHeight:ze})=>{const{width:St,height:yn}=Se.reference,Et=ie.floating.style;Et.setProperty("--radix-popper-available-width",`${be}px`),Et.setProperty("--radix-popper-available-height",`${ze}px`),Et.setProperty("--radix-popper-anchor-width",`${St}px`),Et.setProperty("--radix-popper-anchor-height",`${yn}px`)}}),F&&G0({element:F,padding:p}),ox({arrowWidth:Y,arrowHeight:ce}),k&&Y0({strategy:"referenceHidden",...me})]}),[z,V]=qp(se),T=Vn(R);Wn(()=>{re&&T?.()},[re,T]);const L=D.arrow?.x,G=D.arrow?.y,J=D.arrow?.centerOffset!==0,[ue,ve]=x.useState();return Wn(()=>{A&&ve(window.getComputedStyle(A).zIndex)},[A]),g.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:re?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:g.jsx(ex,{scope:s,placedSide:z,onArrowChange:Q,arrowX:L,arrowY:G,shouldHideArrow:J,children:g.jsx(mt.div,{"data-side":z,"data-align":V,...C,ref:M,style:{...C.style,animation:re?void 0:"none"}})})})});Hp.displayName=iu;var Qp="PopperArrow",nx={top:"bottom",right:"left",bottom:"top",left:"right"},Kp=x.forwardRef(function(o,s){const{__scopePopper:a,...u}=o,d=tx(Qp,a),f=nx[d.placedSide];return g.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:g.jsx(Z0,{...u,ref:s,style:{...u.style,display:"block"}})})});Kp.displayName=Qp;function rx(n){return n!==null}var ox=n=>({name:"transformOrigin",options:n,fn(o){const{placement:s,rects:a,middlewareData:u}=o,f=u.arrow?.centerOffset!==0,p=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[v,w]=qp(s),E={start:"0%",center:"50%",end:"100%"}[w],k=(u.arrow?.x??0)+p/2,y=(u.arrow?.y??0)+h/2;let R="",C="";return v==="bottom"?(R=f?E:`${k}px`,C=`${-h}px`):v==="top"?(R=f?E:`${k}px`,C=`${a.floating.height+h}px`):v==="right"?(R=`${-h}px`,C=f?E:`${y}px`):v==="left"&&(R=`${a.floating.width+h}px`,C=f?E:`${y}px`),{data:{x:R,y:C}}}});function qp(n){const[o,s="center"]=n.split("-");return[o,s]}var sx=Wp,ix=Hp,ax=Kp,lx=Symbol("radix.slottable");function ux(n){const o=({children:s})=>g.jsx(g.Fragment,{children:s});return o.displayName=`${n}.Slottable`,o.__radixId=lx,o}var[ji]=bi("Tooltip",[Bp]),au=Bp(),Yp="TooltipProvider",cx=700,Ef="tooltip.open",[dx,Gp]=ji(Yp),Xp=n=>{const{__scopeTooltip:o,delayDuration:s=cx,skipDelayDuration:a=300,disableHoverableContent:u=!1,children:d}=n,f=x.useRef(!0),p=x.useRef(!1),h=x.useRef(0);return x.useEffect(()=>{const v=h.current;return()=>window.clearTimeout(v)},[]),g.jsx(dx,{scope:o,isOpenDelayedRef:f,delayDuration:s,onOpen:x.useCallback(()=>{window.clearTimeout(h.current),f.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>f.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:x.useCallback(v=>{p.current=v},[]),disableHoverableContent:u,children:d})};Xp.displayName=Yp;var Zp="Tooltip",[S1,Oi]=ji(Zp),zl="TooltipTrigger",fx=x.forwardRef((n,o)=>{const{__scopeTooltip:s,...a}=n,u=Oi(zl,s),d=Gp(zl,s),f=au(s),p=x.useRef(null),h=Bt(o,p,u.onTriggerChange),v=x.useRef(!1),w=x.useRef(!1),E=x.useCallback(()=>v.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),g.jsx(sx,{asChild:!0,...f,children:g.jsx(mt.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...a,ref:h,onPointerMove:Ue(n.onPointerMove,k=>{k.pointerType!=="touch"&&!w.current&&!d.isPointerInTransitRef.current&&(u.onTriggerEnter(),w.current=!0)}),onPointerLeave:Ue(n.onPointerLeave,()=>{u.onTriggerLeave(),w.current=!1}),onPointerDown:Ue(n.onPointerDown,()=>{u.open&&u.onClose(),v.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:Ue(n.onFocus,()=>{v.current||u.onOpen()}),onBlur:Ue(n.onBlur,u.onClose),onClick:Ue(n.onClick,u.onClose)})})});fx.displayName=zl;var px="TooltipPortal",[E1,mx]=ji(px,{forceMount:void 0}),Wr="TooltipContent",Jp=x.forwardRef((n,o)=>{const s=mx(Wr,n.__scopeTooltip),{forceMount:a=s.forceMount,side:u="top",...d}=n,f=Oi(Wr,n.__scopeTooltip);return g.jsx(Yl,{present:a||f.open,children:f.disableHoverableContent?g.jsx(em,{side:u,...d,ref:o}):g.jsx(hx,{side:u,...d,ref:o})})}),hx=x.forwardRef((n,o)=>{const s=Oi(Wr,n.__scopeTooltip),a=Gp(Wr,n.__scopeTooltip),u=x.useRef(null),d=Bt(o,u),[f,p]=x.useState(null),{trigger:h,onClose:v}=s,w=u.current,{onPointerInTransitChange:E}=a,k=x.useCallback(()=>{p(null),E(!1)},[E]),y=x.useCallback((R,C)=>{const b=R.currentTarget,A={x:R.clientX,y:R.clientY},I=wx(A,b.getBoundingClientRect()),M=Sx(A,I),F=Ex(C.getBoundingClientRect()),Q=Cx([...M,...F]);p(Q),E(!0)},[E]);return x.useEffect(()=>()=>k(),[k]),x.useEffect(()=>{if(h&&w){const R=b=>y(b,w),C=b=>y(b,h);return h.addEventListener("pointerleave",R),w.addEventListener("pointerleave",C),()=>{h.removeEventListener("pointerleave",R),w.removeEventListener("pointerleave",C)}}},[h,w,y,k]),x.useEffect(()=>{if(f){const R=C=>{const b=C.target,A={x:C.clientX,y:C.clientY},I=h?.contains(b)||w?.contains(b),M=!bx(A,f);I?k():M&&(k(),v())};return document.addEventListener("pointermove",R),()=>document.removeEventListener("pointermove",R)}},[h,w,f,v,k]),g.jsx(em,{...n,ref:d})}),[gx,vx]=ji(Zp,{isInside:!1}),yx=ux("TooltipContent"),em=x.forwardRef((n,o)=>{const{__scopeTooltip:s,children:a,"aria-label":u,onEscapeKeyDown:d,onPointerDownOutside:f,...p}=n,h=Oi(Wr,s),v=au(s),{onClose:w}=h;return x.useEffect(()=>(document.addEventListener(Ef,w),()=>document.removeEventListener(Ef,w)),[w]),x.useEffect(()=>{if(h.trigger){const E=k=>{k.target?.contains(h.trigger)&&w()};return window.addEventListener("scroll",E,{capture:!0}),()=>window.removeEventListener("scroll",E,{capture:!0})}},[h.trigger,w]),g.jsx(ql,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:E=>E.preventDefault(),onDismiss:w,children:g.jsxs(ix,{"data-state":h.stateAttribute,...v,...p,ref:o,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(yx,{children:a}),g.jsx(gx,{scope:s,isInside:!0,children:g.jsx(uv,{id:h.contentId,role:"tooltip",children:u||a})})]})})});Jp.displayName=Wr;var tm="TooltipArrow",xx=x.forwardRef((n,o)=>{const{__scopeTooltip:s,...a}=n,u=au(s);return vx(tm,s).isInside?null:g.jsx(ax,{...u,...a,ref:o})});xx.displayName=tm;function wx(n,o){const s=Math.abs(o.top-n.y),a=Math.abs(o.bottom-n.y),u=Math.abs(o.right-n.x),d=Math.abs(o.left-n.x);switch(Math.min(s,a,u,d)){case d:return"left";case u:return"right";case s:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function Sx(n,o,s=5){const a=[];switch(o){case"top":a.push({x:n.x-s,y:n.y+s},{x:n.x+s,y:n.y+s});break;case"bottom":a.push({x:n.x-s,y:n.y-s},{x:n.x+s,y:n.y-s});break;case"left":a.push({x:n.x+s,y:n.y-s},{x:n.x+s,y:n.y+s});break;case"right":a.push({x:n.x-s,y:n.y-s},{x:n.x-s,y:n.y+s});break}return a}function Ex(n){const{top:o,right:s,bottom:a,left:u}=n;return[{x:u,y:o},{x:s,y:o},{x:s,y:a},{x:u,y:a}]}function bx(n,o){const{x:s,y:a}=n;let u=!1;for(let d=0,f=o.length-1;da!=k>a&&s<(E-v)*(a-w)/(k-w)+v&&(u=!u)}return u}function Cx(n){const o=n.slice();return o.sort((s,a)=>s.xa.x?1:s.ya.y?1:0),Px(o)}function Px(n){if(n.length<=1)return n.slice();const o=[];for(let a=0;a=2;){const d=o[o.length-1],f=o[o.length-2];if((d.x-f.x)*(u.y-f.y)>=(d.y-f.y)*(u.x-f.x))o.pop();else break}o.push(u)}o.pop();const s=[];for(let a=n.length-1;a>=0;a--){const u=n[a];for(;s.length>=2;){const d=s[s.length-1],f=s[s.length-2];if((d.x-f.x)*(u.y-f.y)>=(d.y-f.y)*(u.x-f.x))s.pop();else break}s.push(u)}return s.pop(),o.length===1&&s.length===1&&o[0].x===s[0].x&&o[0].y===s[0].y?o:o.concat(s)}var kx=Xp,nm=Jp;const Nx=kx,Tx=x.forwardRef(({className:n,sideOffset:o=4,...s},a)=>g.jsx(nm,{ref:a,sideOffset:o,className:Kn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...s}));Tx.displayName=nm.displayName;var _i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rx=class extends _i{#e;#n;#t;constructor(){super(),this.#t=n=>{if(typeof window<"u"&&window.addEventListener){const o=()=>n();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(o=>{o(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},rm=new Rx,jx={setTimeout:(n,o)=>setTimeout(n,o),clearTimeout:n=>clearTimeout(n),setInterval:(n,o)=>setInterval(n,o),clearInterval:n=>clearInterval(n)},Ox=class{#e=jx;#n=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,o){return this.#e.setTimeout(n,o)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,o){return this.#e.setInterval(n,o)}clearInterval(n){this.#e.clearInterval(n)}},Fl=new Ox;function _x(n){setTimeout(n,0)}var Ax=typeof window>"u"||"Deno"in globalThis;function $t(){}function Lx(n,o){return typeof n=="function"?n(o):n}function Ix(n){return typeof n=="number"&&n>=0&&n!==1/0}function Mx(n,o){return Math.max(n+(o||0)-Date.now(),0)}function $l(n,o){return typeof n=="function"?n(o):n}function Dx(n,o){return typeof n=="function"?n(o):n}function bf(n,o){const{type:s="all",exact:a,fetchStatus:u,predicate:d,queryKey:f,stale:p}=n;if(f){if(a){if(o.queryHash!==lu(f,o.options))return!1}else if(!Bo(o.queryKey,f))return!1}if(s!=="all"){const h=o.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||u&&u!==o.state.fetchStatus||d&&!d(o))}function Cf(n,o){const{exact:s,status:a,predicate:u,mutationKey:d}=n;if(d){if(!o.options.mutationKey)return!1;if(s){if($o(o.options.mutationKey)!==$o(d))return!1}else if(!Bo(o.options.mutationKey,d))return!1}return!(a&&o.state.status!==a||u&&!u(o))}function lu(n,o){return(o?.queryKeyHashFn||$o)(n)}function $o(n){return JSON.stringify(n,(o,s)=>Bl(s)?Object.keys(s).sort().reduce((a,u)=>(a[u]=s[u],a),{}):s)}function Bo(n,o){return n===o?!0:typeof n!=typeof o?!1:n&&o&&typeof n=="object"&&typeof o=="object"?Object.keys(o).every(s=>Bo(n[s],o[s])):!1}var zx=Object.prototype.hasOwnProperty;function om(n,o,s=0){if(n===o)return n;if(s>500)return o;const a=Pf(n)&&Pf(o);if(!a&&!(Bl(n)&&Bl(o)))return o;const d=(a?n:Object.keys(n)).length,f=a?o:Object.keys(o),p=f.length,h=a?new Array(p):{};let v=0;for(let w=0;w{Fl.setTimeout(o,n)})}function $x(n,o,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,o):s.structuralSharing!==!1?om(n,o):o}function Bx(n,o,s=0){const a=[...n,o];return s&&a.length>s?a.slice(1):a}function Ux(n,o,s=0){const a=[o,...n];return s&&a.length>s?a.slice(0,-1):a}var uu=Symbol();function sm(n,o){return!n.queryFn&&o?.initialPromise?()=>o.initialPromise:!n.queryFn||n.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Vx(n,o,s){let a=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=o(),a||(a=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var im=(()=>{let n=()=>Ax;return{isServer(){return n()},setIsServer(o){n=o}}})();function Wx(){let n,o;const s=new Promise((u,d)=>{n=u,o=d});s.status="pending",s.catch(()=>{});function a(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{a({status:"fulfilled",value:u}),n(u)},s.reject=u=>{a({status:"rejected",reason:u}),o(u)},s}var Hx=_x;function Qx(){let n=[],o=0,s=p=>{p()},a=p=>{p()},u=Hx;const d=p=>{o?n.push(p):u(()=>{s(p)})},f=()=>{const p=n;n=[],p.length&&u(()=>{a(()=>{p.forEach(h=>{s(h)})})})};return{batch:p=>{let h;o++;try{h=p()}finally{o--,o||f()}return h},batchCalls:p=>(...h)=>{d(()=>{p(...h)})},schedule:d,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{a=p},setScheduler:p=>{u=p}}}var rt=Qx(),Kx=class extends _i{#e=!0;#n;#t;constructor(){super(),this.#t=n=>{if(typeof window<"u"&&window.addEventListener){const o=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},vi=new Kx;function qx(n){return Math.min(1e3*2**n,3e4)}function am(n){return(n??"online")==="online"?vi.isOnline():!0}var Ul=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function lm(n){let o=!1,s=0,a;const u=Wx(),d=()=>u.status!=="pending",f=C=>{if(!d()){const b=new Ul(C);k(b),n.onCancel?.(b)}},p=()=>{o=!0},h=()=>{o=!1},v=()=>rm.isFocused()&&(n.networkMode==="always"||vi.isOnline())&&n.canRun(),w=()=>am(n.networkMode)&&n.canRun(),E=C=>{d()||(a?.(),u.resolve(C))},k=C=>{d()||(a?.(),u.reject(C))},y=()=>new Promise(C=>{a=b=>{(d()||v())&&C(b)},n.onPause?.()}).then(()=>{a=void 0,d()||n.onContinue?.()}),R=()=>{if(d())return;let C;const b=s===0?n.initialPromise:void 0;try{C=b??n.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(E).catch(A=>{if(d())return;const I=n.retry??(im.isServer()?0:3),M=n.retryDelay??qx,F=typeof M=="function"?M(s,A):M,Q=I===!0||typeof I=="number"&&sv()?void 0:y()).then(()=>{o?k(A):R()})})};return{promise:u,status:()=>u.status,cancel:f,continue:()=>(a?.(),u),cancelRetry:p,continueRetry:h,canStart:w,start:()=>(w()?R():y().then(R),u)}}var um=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ix(this.gcTime)&&(this.#e=Fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(im.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fl.clearTimeout(this.#e),this.#e=void 0)}},Yx=class extends um{#e;#n;#t;#o;#r;#s;#i;constructor(n){super(),this.#i=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#o=n.client,this.#t=this.#o.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Tf(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const o=Tf(this.options);o.data!==void 0&&(this.setState(Nf(o.data,o.dataUpdatedAt)),this.#e=o)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(n,o){const s=$x(this.state.data,n,this.options);return this.#a({data:s,type:"success",dataUpdatedAt:o?.updatedAt,manual:o?.manual}),s}setState(n,o){this.#a({type:"setState",state:n,setStateOptions:o})}cancel(n){const o=this.#r?.promise;return this.#r?.cancel(n),o?o.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>Dx(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>$l(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Mx(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(o=>o.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(o=>o.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(o=>o!==n),this.observers.length||(this.#r&&(this.#i||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(n,o){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&o?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const s=new AbortController,a=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#i=!0,s.signal)})},u=()=>{const p=sm(this.options,o),v=(()=>{const w={client:this.#o,queryKey:this.queryKey,meta:this.meta};return a(w),w})();return this.#i=!1,this.options.persister?this.options.persister(p,v,this):p(v)},f=(()=>{const p={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:u};return a(p),p})();this.options.behavior?.onFetch(f,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#a({type:"fetch",meta:f.fetchOptions?.meta}),this.#r=lm({initialPromise:o?.initialPromise,fn:f.fetchFn,onCancel:p=>{p instanceof Ul&&p.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(p,h)=>{this.#a({type:"failed",failureCount:p,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const p=await this.#r.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#t.config.onSuccess?.(p,this),this.#t.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof Ul){if(p.silent)return this.#r.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#a({type:"error",error:p}),this.#t.config.onError?.(p,this),this.#t.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#a(n){const o=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Gx(s.data,this.options),fetchMeta:n.meta??null};case"success":const a={...s,...Nf(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?a:void 0,a;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=o(this.state),rt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:n})})}};function Gx(n,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:am(o.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Nf(n,o){return{data:n,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Tf(n){const o=typeof n.initialData=="function"?n.initialData():n.initialData,s=o!==void 0,a=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Rf(n){return{onFetch:(o,s)=>{const a=o.options,u=o.fetchOptions?.meta?.fetchMore?.direction,d=o.state.data?.pages||[],f=o.state.data?.pageParams||[];let p={pages:[],pageParams:[]},h=0;const v=async()=>{let w=!1;const E=R=>{Vx(R,()=>o.signal,()=>w=!0)},k=sm(o.options,o.fetchOptions),y=async(R,C,b)=>{if(w)return Promise.reject();if(C==null&&R.pages.length)return Promise.resolve(R);const I=(()=>{const H={client:o.client,queryKey:o.queryKey,pageParam:C,direction:b?"backward":"forward",meta:o.options.meta};return E(H),H})(),M=await k(I),{maxPages:F}=o.options,Q=b?Ux:Bx;return{pages:Q(R.pages,M,F),pageParams:Q(R.pageParams,C,F)}};if(u&&d.length){const R=u==="backward",C=R?Xx:jf,b={pages:d,pageParams:f},A=C(a,b);p=await y(b,A,R)}else{const R=n??d.length;do{const C=h===0?f[0]??a.initialPageParam:jf(a,p);if(h>0&&C==null)break;p=await y(p,C),h++}while(ho.options.persister?.(v,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},s):o.fetchFn=v}}}function jf(n,{pages:o,pageParams:s}){const a=o.length-1;return o.length>0?n.getNextPageParam(o[a],o,s[a],s):void 0}function Xx(n,{pages:o,pageParams:s}){return o.length>0?n.getPreviousPageParam?.(o[0],o,s[0],s):void 0}var Zx=class extends um{#e;#n;#t;#o;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#n=[],this.state=n.state||Jx(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#n.includes(n)||(this.#n.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#n=this.#n.filter(o=>o!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(n){const o=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=lm({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(d,f)=>{this.#r({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#r({type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const a=this.state.status==="pending",u=!this.#o.canStart();try{if(a)o();else{this.#r({type:"pending",variables:n,isPaused:u}),this.#t.config.onMutate&&await this.#t.config.onMutate(n,this,s);const f=await this.options.onMutate?.(n,s);f!==this.state.context&&this.#r({type:"pending",context:f,variables:n,isPaused:u})}const d=await this.#o.start();return await this.#t.config.onSuccess?.(d,n,this.state.context,this,s),await this.options.onSuccess?.(d,n,this.state.context,s),await this.#t.config.onSettled?.(d,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(d,null,n,this.state.context,s),this.#r({type:"success",data:d}),d}catch(d){try{await this.#t.config.onError?.(d,n,this.state.context,this,s)}catch(f){Promise.reject(f)}try{await this.options.onError?.(d,n,this.state.context,s)}catch(f){Promise.reject(f)}try{await this.#t.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,s)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,d,n,this.state.context,s)}catch(f){Promise.reject(f)}throw this.#r({type:"error",error:d}),d}finally{this.#t.runNext(this)}}#r(n){const o=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=o(this.state),rt.batch(()=>{this.#n.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function Jx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ew=class extends _i{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(n,o,s){const a=new Zx({client:n,mutationCache:this,mutationId:++this.#t,options:n.defaultMutationOptions(o),state:s});return this.add(a),a}add(n){this.#e.add(n);const o=ui(n);if(typeof o=="string"){const s=this.#n.get(o);s?s.push(n):this.#n.set(o,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const o=ui(n);if(typeof o=="string"){const s=this.#n.get(o);if(s)if(s.length>1){const a=s.indexOf(n);a!==-1&&s.splice(a,1)}else s[0]===n&&this.#n.delete(o)}}this.notify({type:"removed",mutation:n})}canRun(n){const o=ui(n);if(typeof o=="string"){const a=this.#n.get(o)?.find(u=>u.state.status==="pending");return!a||a===n}else return!0}runNext(n){const o=ui(n);return typeof o=="string"?this.#n.get(o)?.find(a=>a!==n&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){rt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(n){const o={exact:!0,...n};return this.getAll().find(s=>Cf(o,s))}findAll(n={}){return this.getAll().filter(o=>Cf(n,o))}notify(n){rt.batch(()=>{this.listeners.forEach(o=>{o(n)})})}resumePausedMutations(){const n=this.getAll().filter(o=>o.state.isPaused);return rt.batch(()=>Promise.all(n.map(o=>o.continue().catch($t))))}};function ui(n){return n.options.scope?.id}var tw=class extends _i{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,o,s){const a=o.queryKey,u=o.queryHash??lu(a,o);let d=this.get(u);return d||(d=new Yx({client:n,queryKey:a,queryHash:u,options:n.defaultQueryOptions(o),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(d)),d}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const o=this.#e.get(n.queryHash);o&&(n.destroy(),o===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){rt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const o={exact:!0,...n};return this.getAll().find(s=>bf(o,s))}findAll(n={}){const o=this.getAll();return Object.keys(n).length>0?o.filter(s=>bf(n,s)):o}notify(n){rt.batch(()=>{this.listeners.forEach(o=>{o(n)})})}onFocus(){rt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){rt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},nw=class{#e;#n;#t;#o;#r;#s;#i;#l;constructor(n={}){this.#e=n.queryCache||new tw,this.#n=n.mutationCache||new ew,this.#t=n.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#i=rm.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=vi.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#n.findAll({...n,status:"pending"}).length}getQueryData(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state.data}ensureQueryData(n){const o=this.defaultQueryOptions(n),s=this.#e.build(this,o),a=s.state.data;return a===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime($l(o.staleTime,s))&&this.prefetchQuery(o),Promise.resolve(a))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:o,state:s})=>{const a=s.data;return[o,a]})}setQueryData(n,o,s){const a=this.defaultQueryOptions({queryKey:n}),d=this.#e.get(a.queryHash)?.state.data,f=Lx(o,d);if(f!==void 0)return this.#e.build(this,a).setData(f,{...s,manual:!0})}setQueriesData(n,o,s){return rt.batch(()=>this.#e.findAll(n).map(({queryKey:a})=>[a,this.setQueryData(a,o,s)]))}getQueryState(n){const o=this.defaultQueryOptions({queryKey:n});return this.#e.get(o.queryHash)?.state}removeQueries(n){const o=this.#e;rt.batch(()=>{o.findAll(n).forEach(s=>{o.remove(s)})})}resetQueries(n,o){const s=this.#e;return rt.batch(()=>(s.findAll(n).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...n},o)))}cancelQueries(n,o={}){const s={revert:!0,...o},a=rt.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(a).then($t).catch($t)}invalidateQueries(n,o={}){return rt.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},o)))}refetchQueries(n,o={}){const s={...o,cancelRefetch:o.cancelRefetch??!0},a=rt.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let d=u.fetch(void 0,s);return s.throwOnError||(d=d.catch($t)),u.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(a).then($t)}fetchQuery(n){const o=this.defaultQueryOptions(n);o.retry===void 0&&(o.retry=!1);const s=this.#e.build(this,o);return s.isStaleByTime($l(o.staleTime,s))?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then($t).catch($t)}fetchInfiniteQuery(n){return n.behavior=Rf(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then($t).catch($t)}ensureInfiniteQueryData(n){return n.behavior=Rf(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return vi.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(n){this.#t=n}setQueryDefaults(n,o){this.#o.set($o(n),{queryKey:n,defaultOptions:o})}getQueryDefaults(n){const o=[...this.#o.values()],s={};return o.forEach(a=>{Bo(n,a.queryKey)&&Object.assign(s,a.defaultOptions)}),s}setMutationDefaults(n,o){this.#r.set($o(n),{mutationKey:n,defaultOptions:o})}getMutationDefaults(n){const o=[...this.#r.values()],s={};return o.forEach(a=>{Bo(n,a.mutationKey)&&Object.assign(s,a.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const o={...this.#t.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return o.queryHash||(o.queryHash=lu(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===uu&&(o.enabled=!1),o}defaultMutationOptions(n){return n?._defaulted?n:{...this.#t.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},rw=x.createContext(void 0),ow=({client:n,children:o})=>(x.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),g.jsx(rw.Provider,{value:n,children:o}));function yi(){return yi=Object.assign?Object.assign.bind():function(n){for(var o=1;o"u")throw new Error(o)}function cm(n,o){if(!n){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function iw(){return Math.random().toString(36).substr(2,8)}function _f(n,o){return{usr:n.state,key:n.key,idx:o}}function Vl(n,o,s,a){return s===void 0&&(s=null),yi({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof o=="string"?Ai(o):o,{state:s,key:o&&o.key||a||iw()})}function dm(n){let{pathname:o="/",search:s="",hash:a=""}=n;return s&&s!=="?"&&(o+=s.charAt(0)==="?"?s:"?"+s),a&&a!=="#"&&(o+=a.charAt(0)==="#"?a:"#"+a),o}function Ai(n){let o={};if(n){let s=n.indexOf("#");s>=0&&(o.hash=n.substr(s),n=n.substr(0,s));let a=n.indexOf("?");a>=0&&(o.search=n.substr(a),n=n.substr(0,a)),n&&(o.pathname=n)}return o}function aw(n,o,s,a){a===void 0&&(a={});let{window:u=document.defaultView,v5Compat:d=!1}=a,f=u.history,p=Un.Pop,h=null,v=w();v==null&&(v=0,f.replaceState(yi({},f.state,{idx:v}),""));function w(){return(f.state||{idx:null}).idx}function E(){p=Un.Pop;let b=w(),A=b==null?null:b-v;v=b,h&&h({action:p,location:C.location,delta:A})}function k(b,A){p=Un.Push;let I=Vl(C.location,b,A);v=w()+1;let M=_f(I,v),F=C.createHref(I);try{f.pushState(M,"",F)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(F)}d&&h&&h({action:p,location:C.location,delta:1})}function y(b,A){p=Un.Replace;let I=Vl(C.location,b,A);v=w();let M=_f(I,v),F=C.createHref(I);f.replaceState(M,"",F),d&&h&&h({action:p,location:C.location,delta:0})}function R(b){let A=u.location.origin!=="null"?u.location.origin:u.location.href,I=typeof b=="string"?b:dm(b);return I=I.replace(/ $/,"%20"),pt(A,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,A)}let C={get action(){return p},get location(){return n(u,f)},listen(b){if(h)throw new Error("A history only accepts one active listener");return u.addEventListener(Of,E),h=b,()=>{u.removeEventListener(Of,E),h=null}},createHref(b){return o(u,b)},createURL:R,encodeLocation(b){let A=R(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:k,replace:y,go(b){return f.go(b)}};return C}var Af;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(Af||(Af={}));function lw(n,o,s){return s===void 0&&(s="/"),uw(n,o,s)}function uw(n,o,s,a){let u=typeof o=="string"?Ai(o):o,d=mm(u.pathname||"/",s);if(d==null)return null;let f=fm(n);cw(f);let p=null;for(let h=0;p==null&&h{let h={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};h.relativePath.startsWith("/")&&(pt(h.relativePath.startsWith(a),'Absolute route path "'+h.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),h.relativePath=h.relativePath.slice(a.length));let v=Br([a,h.relativePath]),w=s.concat(h);d.children&&d.children.length>0&&(pt(d.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),fm(d.children,o,w,v)),!(d.path==null&&!d.index)&&o.push({path:v,score:vw(v,d.index),routesMeta:w})};return n.forEach((d,f)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))u(d,f);else for(let h of pm(d.path))u(d,f,h)}),o}function pm(n){let o=n.split("/");if(o.length===0)return[];let[s,...a]=o,u=s.endsWith("?"),d=s.replace(/\?$/,"");if(a.length===0)return u?[d,""]:[d];let f=pm(a.join("/")),p=[];return p.push(...f.map(h=>h===""?d:[d,h].join("/"))),u&&p.push(...f),p.map(h=>n.startsWith("/")&&h===""?"/":h)}function cw(n){n.sort((o,s)=>o.score!==s.score?s.score-o.score:yw(o.routesMeta.map(a=>a.childrenIndex),s.routesMeta.map(a=>a.childrenIndex)))}const dw=/^:[\w-]+$/,fw=3,pw=2,mw=1,hw=10,gw=-2,Lf=n=>n==="*";function vw(n,o){let s=n.split("/"),a=s.length;return s.some(Lf)&&(a+=gw),o&&(a+=pw),s.filter(u=>!Lf(u)).reduce((u,d)=>u+(dw.test(d)?fw:d===""?mw:hw),a)}function yw(n,o){return n.length===o.length&&n.slice(0,-1).every((a,u)=>a===o[u])?n[n.length-1]-o[o.length-1]:0}function xw(n,o,s){let{routesMeta:a}=n,u={},d="/",f=[];for(let p=0;p{let{paramName:k,isOptional:y}=w;if(k==="*"){let C=p[E]||"";f=d.slice(0,d.length-C.length).replace(/(.)\/+$/,"$1")}const R=p[E];return y&&!R?v[k]=void 0:v[k]=(R||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:f,pattern:n}}function Sw(n,o,s){o===void 0&&(o=!1),s===void 0&&(s=!0),cm(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let a=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(a.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(a.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),a]}function Ew(n){try{return n.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return cm(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+o+").")),n}}function mm(n,o){if(o==="/")return n;if(!n.toLowerCase().startsWith(o.toLowerCase()))return null;let s=o.endsWith("/")?o.length-1:o.length,a=n.charAt(s);return a&&a!=="/"?null:n.slice(s)||"/"}const Br=n=>n.join("/").replace(/\/\/+/g,"/"),bw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/");function Cw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const hm=["post","put","patch","delete"];new Set(hm);const Pw=["get",...hm];new Set(Pw);function xi(){return xi=Object.assign?Object.assign.bind():function(n){for(var o=1;oObject.assign({},b,{params:Object.assign({},p,b.params),pathname:Br([h,u.encodeLocation?u.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?h:Br([h,u.encodeLocation?u.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),d,s,a);return o&&C?x.createElement(Li.Provider,{value:{location:xi({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:Un.Pop}},C):C}function jw(){let n=zw(),o=Cw(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,u={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},o),s?x.createElement("pre",{style:u},s):null,null)}const Ow=x.createElement(jw,null);class _w extends x.Component{constructor(o){super(o),this.state={location:o.location,revalidation:o.revalidation,error:o.error}}static getDerivedStateFromError(o){return{error:o}}static getDerivedStateFromProps(o,s){return s.location!==o.location||s.revalidation!=="idle"&&o.revalidation==="idle"?{error:o.error,location:o.location,revalidation:o.revalidation}:{error:o.error!==void 0?o.error:s.error,location:s.location,revalidation:o.revalidation||s.revalidation}}componentDidCatch(o,s){console.error("React Router caught the following error during render",o,s)}render(){return this.state.error!==void 0?x.createElement(Ii.Provider,{value:this.props.routeContext},x.createElement(vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Aw(n){let{routeContext:o,match:s,children:a}=n,u=x.useContext(kw);return u&&u.static&&u.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=s.route.id),x.createElement(Ii.Provider,{value:o},a)}function Lw(n,o,s,a){var u;if(o===void 0&&(o=[]),s===void 0&&(s=null),a===void 0&&(a=null),n==null){var d;if(!s)return null;if(s.errors)n=s.matches;else if((d=a)!=null&&d.v7_partialHydration&&o.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let f=n,p=(u=s)==null?void 0:u.errors;if(p!=null){let w=f.findIndex(E=>E.route.id&&p?.[E.route.id]!==void 0);w>=0||pt(!1),f=f.slice(0,Math.min(f.length,w+1))}let h=!1,v=-1;if(s&&a&&a.v7_partialHydration)for(let w=0;w=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((w,E,k)=>{let y,R=!1,C=null,b=null;s&&(y=p&&E.route.id?p[E.route.id]:void 0,C=E.route.errorElement||Ow,h&&(v<0&&k===0?(Fw("route-fallback"),R=!0,b=null):v===k&&(R=!0,b=E.route.hydrateFallbackElement||null)));let A=o.concat(f.slice(0,k+1)),I=()=>{let M;return y?M=C:R?M=b:E.route.Component?M=x.createElement(E.route.Component,null):E.route.element?M=E.route.element:M=w,x.createElement(Aw,{match:E,routeContext:{outlet:w,matches:A,isDataRoute:s!=null},children:M})};return s&&(E.route.ErrorBoundary||E.route.errorElement||k===0)?x.createElement(_w,{location:s.location,revalidation:s.revalidation,component:C,error:y,children:I(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):I()},null)}var xm=(function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n})(xm||{});function Iw(n){let o=x.useContext(Nw);return o||pt(!1),o}function Mw(n){let o=x.useContext(Ii);return o||pt(!1),o}function Dw(n){let o=Mw(),s=o.matches[o.matches.length-1];return s.route.id||pt(!1),s.route.id}function zw(){var n;let o=x.useContext(vm),s=Iw(xm.UseRouteError),a=Dw();return o!==void 0?o:(n=s.errors)==null?void 0:n[a]}const If={};function Fw(n,o,s){If[n]||(If[n]=!0)}function $w(n,o){n?.v7_startTransition,n?.v7_relativeSplatPath}function Wl(n){pt(!1)}function Bw(n){let{basename:o="/",children:s=null,location:a,navigationType:u=Un.Pop,navigator:d,static:f=!1,future:p}=n;cu()&&pt(!1);let h=o.replace(/^\/*/,"/"),v=x.useMemo(()=>({basename:h,navigator:d,static:f,future:xi({v7_relativeSplatPath:!1},p)}),[h,p,d,f]);typeof a=="string"&&(a=Ai(a));let{pathname:w="/",search:E="",hash:k="",state:y=null,key:R="default"}=a,C=x.useMemo(()=>{let b=mm(w,h);return b==null?null:{location:{pathname:b,search:E,hash:k,state:y,key:R},navigationType:u}},[h,w,E,k,y,R,u]);return C==null?null:x.createElement(gm.Provider,{value:v},x.createElement(Li.Provider,{children:s,value:C}))}function Uw(n){let{children:o,location:s}=n;return Tw(Hl(o),s)}new Promise(()=>{});function Hl(n,o){o===void 0&&(o=[]);let s=[];return x.Children.forEach(n,(a,u)=>{if(!x.isValidElement(a))return;let d=[...o,u];if(a.type===x.Fragment){s.push.apply(s,Hl(a.props.children,d));return}a.type!==Wl&&pt(!1),!a.props.index||!a.props.children||pt(!1);let f={id:a.props.id||d.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(f.children=Hl(a.props.children,d)),s.push(f)}),s}const Vw="6";try{window.__reactRouterVersion=Vw}catch{}const Ww="startTransition",Mf=Kl[Ww];function Hw(n){let{basename:o,children:s,future:a,window:u}=n,d=x.useRef();d.current==null&&(d.current=sw({window:u,v5Compat:!0}));let f=d.current,[p,h]=x.useState({action:f.action,location:f.location}),{v7_startTransition:v}=a||{},w=x.useCallback(E=>{v&&Mf?Mf(()=>h(E)):h(E)},[h,v]);return x.useLayoutEffect(()=>f.listen(w),[f,w]),x.useEffect(()=>$w(a),[a]),x.createElement(Bw,{basename:o,children:s,location:p.location,navigationType:p.action,navigator:f,future:a})}var Df;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(Df||(Df={}));var zf;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(zf||(zf={}));const wm=x.createContext(void 0),Qw=()=>{const n=x.useContext(wm);if(!n)throw new Error("useTheme must be used within a ThemeProvider");return n},Kw=({children:n})=>{const[o,s]=x.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"light");x.useEffect(()=>{const u=window.document.documentElement;u.classList.remove("light","dark"),u.classList.add(o),localStorage.setItem("theme",o)},[o]);const a=()=>{s(u=>u==="light"?"dark":"light")};return g.jsx(wm.Provider,{value:{theme:o,toggleTheme:a},children:n})},qw={"pt-BR":{"nav.about":"Sobre a Plataforma","nav.features":"Soluções","nav.contact":"Contato","hero.title":"LoadPayEasy","hero.subtitle":"Infraestrutura financeira e operacional digital projetada para fortalecer a gestão do fluxo de caixa para operadores logísticos independentes nos Estados Unidos.","hero.cta":"Falar com a equipe","hero.subtitle2":"Infraestrutura moderna para controle de cargas, rotas e recebimentos, com foco em previsibilidade financeira e sustentabilidade operacional.","impact.title":"Desenvolvido para um Segmento Estratégico da Logística","impact.description":"Milhares de operadores logísticos independentes nos Estados Unidos ainda dependem de planilhas, aplicativos de mensagens ou registros manuais para gerenciar cargas e pagamentos. LoadPayEasy foi construído para fornecer visibilidade financeira estruturada e organização operacional adaptada especificamente para este segmento tradicionalmente ainda pouco atendido, ajudando pequenas operadoras a gerenciar o fluxo de caixa com maior clareza e confiança.","about.title":"Sobre a Plataforma","about.description":"LoadPayEasy oferece suporte a transportadores de automóveis independentes e pequenas empresas de transporte, fornecendo rastreamento estruturado de carga, organização de rotas e visibilidade financeira em tempo real. Ao melhorar a previsibilidade do fluxo de caixa e reduzir as ineficiências administrativas, a plataforma contribui para a sustentabilidade financeira e a resiliência operacional dos operadores logísticos de pequena escala no setor de transportes dos EUA.","features.title":"Soluções da Plataforma","features.load.title":"Gestão Estruturada de Cargas","features.load.description":"Registro completo de cargas com dados operacionais, status e histórico, garantindo rastreabilidade e controle centralizado.","features.routes.title":"Organização Inteligente de Rotas","features.routes.description":"Agrupamento estratégico de cargas por rota ou viagem, facilitando gestão operacional e análise financeira consolidada.","features.magic.title":"Link Seguro para Registro de Cargas","features.magic.description":"Compartilhamento de link exclusivo para parceiros registrarem cargas diretamente em rotas específicas, mantendo segurança e controle de acesso.","features.reports.title":"Relatórios Financeiros Consolidados","features.reports.description":"Visão estruturada de valores recebidos e pendentes, apoiando decisões estratégicas e prestação de contas contábil com maior transparência financeira.","features.qr.title":"Infraestrutura Digital de Pagamentos","features.qr.description":"Integração com soluções modernas de pagamento para facilitar recebimentos e melhorar previsibilidade financeira.","features.auth.title":"Segurança e Controle de Acesso","features.auth.description":"Autenticação segura e proteção de dados sensíveis com padrões modernos de segurança.","features.loads.title":"Controle Operacional","features.loads.desc":"Gestão centralizada e rastreável","features.qr.desc":"Recebimentos organizados e seguros","features.reports.desc":"Visibilidade financeira estratégica","contact.title":"Contato","contact.cta":"Entre em contato para conhecer como o LoadPayEasy pode contribuir para maior eficiência financeira e operacional na sua operação logística.","contact.captcha":"Verificação (clique na imagem para recarregar)","contact.name":"Nome","contact.email":"E-mail","contact.company":"Empresa","contact.message":"Mensagem","contact.submit":"Enviar mensagem","contact.info.title":"Informações de contato","contact.info.email":"E-mail","contact.info.phone":"Telefone","contact.info.hours":"Horário","contact.info.hours.value":"Seg - Sex: 9h às 18h","cta.ready.title":"Pronto para modernizar sua operação?","cta.ready.desc":"Implemente uma infraestrutura digital que fortalece a gestão financeira e operacional da sua empresa.","cta.request.demo":"Solicitar demonstração","cta.quiz.title":"Faça o quiz!","cta.quiz.desc":"E descubra se o Load Pay Easy é para você.","cta.quiz.demo":"Quiz","reports.title":"Relatório Financeiro","reports.load":"Carga","reports.route":"Rota","reports.value":"Valor","reports.status":"Status","reports.date":"Data","report.detailed.title":"Relatório Detalhado","report.subtitle":"Acompanhe todos os seus recebimentos e lançamentos em tempo real","report.filters":"Filtros","report.export":"Exportar","benefits.security.title":"Segurança de Dados","benefits.security.desc":"Proteção de informações com autenticação e controle de acesso estruturado.","benefits.efficiency.title":"Eficiência Operacional","benefits.efficiency.desc":"Redução de processos manuais e aumento da produtividade.","benefits.transparency.title":"Transparência Financeira","benefits.transparency.desc":"Clareza sobre valores recebidos e pendentes em tempo real.","dashboard.totalReceived":"Total Recebido","dashboard.pending":"Pendente","dashboard.inProgress":"Em Andamento","dashboard.monthTotal":"Total do Mês","dashboard.prevMonthComparison":"+12% vs mês anterior","dashboard.loads.count":"{{count}} cargas","dashboard.load.count":"{{count}} carga","dashboard.load.currency":"R$","footer.description":"Infraestrutura digital que apoia a modernização financeira, a transparência dos pagamentos e a eficiência operacional no setor de logística de pequena escala dos EUA.","footer.information":"Desenvolvido com arquitetura moderna, pronta para a nuvem, e integrações financeiras seguras.","footer.startlocation":"Atualmente realizando onboarding de operadores pilotos na Flórida, com planos de expansão para todo os Estados Unidos.","footer.ia":"Foi projetado com uma arquitetura de API compatível com IA, permitindo que sistemas inteligentes e ferramentas de automação interajam com dados logísticos e financeiros de forma segura. Essa infraestrutura possibilita recursos futuros, como insights financeiros automatizados, análise preditiva de fluxo de caixa e tomada de decisões operacionais assistida por IA para operadores logísticos independentes.","footer.product":"Plataforma","footer.features":"Soluções","footer.reports":"Relatórios","footer.pricing":"Planos","footer.company":"Empresa","footer.about":"Sobre","footer.contact":"Contato","footer.support":"Suporte","footer.rights":"Todos os direitos reservados."},"en-US":{"nav.about":"About the Platform","nav.features":"Solutions","nav.contact":"Contact","hero.title":"LoadPayEasy","hero.subtitle":"Digital financial and operational infrastructure designed to strengthen cash flow management for independent logistics operators across the United States.","hero.cta":"Speak with our team","hero.subtitle2":"A modern platform designed to improve cash flow visibility, payment traceability, and operational efficiency in small-scale logistics operations.","impact.title":"Designed for a Strategic Segment of Logistics","impact.description":"Thousands of independent logistics operators across the United States still rely on spreadsheets, messaging apps, or manual records to manage loads and payments. LoadPayEasy was built to provide structured financial visibility and operational organization tailored specifically to this traditionally underserved segment, helping small operators manage cash flow with greater clarity and confidence.","about.title":"About the Platform","about.description":"LoadPayEasy supports independent car haulers and small transportation businesses by providing structured load tracking, route organization, and real-time financial visibility. By improving cash flow predictability and reducing administrative inefficiencies, the platform contributes to the financial sustainability and operational resilience of small-scale logistics operators within the U.S. transportation sector.","features.title":"Platform Solutions","features.load.title":"Structured Load Management","features.load.description":"Comprehensive load registration with operational data, status tracking, and centralized visibility.","features.routes.title":"Intelligent Route Organization","features.routes.description":"Group loads by route or trip to simplify operational coordination and consolidated financial analysis.","features.magic.title":"Secure Load Registration Link","features.magic.description":"Generate secure links for partners to register loads directly into specific routes while maintaining controlled access.","features.reports.title":"Consolidated Financial Reporting","features.reports.description":"Structured view of received and outstanding amounts, supporting strategic decisions and accounting accountability with greater financial transparency.","features.qr.title":"Digital Payment Infrastructure","features.qr.description":"Integration with modern payment technologies to streamline collections and enhance financial predictability.","features.auth.title":"Secure Access Control","features.auth.description":"Modern authentication standards to protect sensitive operational and financial data.","features.loads.title":"Operational Control","features.loads.desc":"Centralized and traceable management","features.qr.desc":"Organized and secure collections","features.reports.desc":"Strategic financial visibility","contact.title":"Contact","contact.cta":"Contact us to learn how LoadPayEasy can strengthen financial efficiency and operational organization within your logistics operation.","contact.captcha":"Verification (click the image to reload)","contact.name":"Name","contact.email":"Email","contact.company":"Company","contact.message":"Message","contact.submit":"Send message","contact.info.title":"Contact Information","contact.info.email":"Email","contact.info.phone":"Phone","contact.info.hours":"Business Hours","contact.info.hours.value":"Mon - Fri: 9am to 6pm","cta.ready.title":"Ready to modernize your operation?","cta.ready.desc":"Implement a digital infrastructure that strengthens financial management and operational performance.","cta.request.demo":"Request a demonstration","cta.quiz.title":"Take the quiz!","cta.quiz.desc":"And find out if Load Pay Easy is right for you.","cta.quiz.demo":"Quiz","reports.title":"Financial Report","reports.load":"Load","reports.route":"Route","reports.value":"Value","reports.status":"Status","reports.date":"Date","report.detailed.title":"Detailed Report","report.subtitle":"Track all your receivables and entries in real time","report.filters":"Filters","report.export":"Export","benefits.security.title":"Data Security","benefits.security.desc":"Structured authentication and protected information.","benefits.efficiency.title":"Operational Efficiency","benefits.efficiency.desc":"Reduction of manual processes and improved productivity.","benefits.transparency.title":"Financial Transparency","benefits.transparency.desc":"Real-time visibility into receivables and outstanding balances.","dashboard.totalReceived":"Total Received","dashboard.pending":"Pending","dashboard.inProgress":"In Progress","dashboard.monthTotal":"Monthly Total","dashboard.prevMonthComparison":"+12% vs previous month","dashboard.loads.count":"{{count}} loads","dashboard.load.count":"{{count}} load","dashboard.load.currency":"$","footer.description":"Digital infrastructure supporting financial modernization, payment transparency, and operational efficiency within the U.S. small-scale logistics sector.","footer.information":"Designed and developed using modern cloud-ready architecture and secure financial integrations.","footer.startlocation":"Currently onboarding pilot operators in Florida, with expansion plans across the United States.","footer.ia":"Designed with an AI-compatible API architecture, allowing intelligent systems and automation tools to interact with logistics and financial data securely. This infrastructure enables future capabilities such as automated financial insights, predictive cash-flow analysis, and AI-assisted operational decision-making for independent logistics operators.","footer.product":"Platform","footer.features":"Solutions","footer.reports":"Reports","footer.pricing":"Pricing","footer.company":"Company","footer.about":"About","footer.contact":"Contact","footer.support":"Support","footer.rights":"All rights reserved."}},Sm=x.createContext(void 0),cr=()=>{const n=x.useContext(Sm);if(!n)throw new Error("useLanguage must be used within a LanguageProvider");return n},Yw=({children:n})=>{const[o,s]=x.useState("pt-BR"),a=u=>qw[o][u]||u;return g.jsx(Sm.Provider,{value:{language:o,setLanguage:s,t:a},children:n})};var Gw=Symbol.for("react.lazy"),wi=Kl[" use ".trim().toString()];function Xw(n){return typeof n=="object"&&n!==null&&"then"in n}function Em(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===Gw&&"_payload"in n&&Xw(n._payload)}function Zw(n){const o=e1(n),s=x.forwardRef((a,u)=>{let{children:d,...f}=a;Em(d)&&typeof wi=="function"&&(d=wi(d._payload));const p=x.Children.toArray(d),h=p.find(n1);if(h){const v=h.props.children,w=p.map(E=>E===h?x.Children.count(v)>1?x.Children.only(null):x.isValidElement(v)?v.props.children:null:E);return g.jsx(o,{...f,ref:u,children:x.isValidElement(v)?x.cloneElement(v,void 0,w):null})}return g.jsx(o,{...f,ref:u,children:d})});return s.displayName=`${n}.Slot`,s}var Jw=Zw("Slot");function e1(n){const o=x.forwardRef((s,a)=>{let{children:u,...d}=s;if(Em(u)&&typeof wi=="function"&&(u=wi(u._payload)),x.isValidElement(u)){const f=o1(u),p=r1(d,u.props);return u.type!==x.Fragment&&(p.ref=a?Ei(a,f):f),x.cloneElement(u,p)}return x.Children.count(u)>1?x.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var t1=Symbol("radix.slottable");function n1(n){return x.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===t1}function r1(n,o){const s={...o};for(const a in o){const u=n[a],d=o[a];/^on[A-Z]/.test(a)?u&&d?s[a]=(...p)=>{const h=d(...p);return u(...p),h}:u&&(s[a]=u):a==="style"?s[a]={...u,...d}:a==="className"&&(s[a]=[u,d].filter(Boolean).join(" "))}return{...n,...s}}function o1(n){let o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning;return s?n.ref:(o=Object.getOwnPropertyDescriptor(n,"ref")?.get,s=o&&"isReactWarning"in o&&o.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}const s1=hp("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hover elevation-1 hover:elevation-2 rounded-md",contained:"bg-primary text-primary-foreground hover:bg-primary-hover elevation-1 hover:elevation-2 rounded-md",outlined:"border border-primary text-primary hover:bg-primary-light rounded-md",outline:"border border-primary text-primary hover:bg-primary-light rounded-md",text:"text-primary hover:bg-primary-light rounded-md",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hover elevation-1 hover:elevation-2 rounded-md",ghost:"hover:bg-accent hover:text-accent-foreground rounded-md",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 elevation-1 hover:elevation-2 rounded-md",link:"text-primary underline-offset-4 hover:underline rounded-md"},size:{sm:"h-9 px-4 text-sm",default:"h-11 px-6 text-sm",lg:"h-12 px-8 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Ur=x.forwardRef(({className:n,variant:o,size:s,asChild:a=!1,...u},d)=>{const f=a?Jw:"button";return g.jsx(f,{className:Kn(s1({variant:o,size:s,className:n})),ref:d,...u})});Ur.displayName="Button";const i1=()=>{const{theme:n,toggleTheme:o}=Qw(),{language:s,setLanguage:a}=cr(),[u,d]=x.useState(!1),[f,p]=x.useState(!1);x.useEffect(()=>{const v=()=>{p(window.scrollY>40)};return window.addEventListener("scroll",v),()=>window.removeEventListener("scroll",v)},[]);const h=v=>{const w=document.getElementById(v);w&&(w.scrollIntoView({behavior:"smooth"}),d(!1))};return g.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${f?"bg-background md:bg-surface/90 md:backdrop-blur-md md:border-b md:border-border md:shadow-sm":"bg-background md:bg-transparent"}`,children:[g.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:g.jsxs("div",{className:"flex flex-nowrap items-center justify-between h-16",children:[g.jsx("button",{onClick:()=>h("hero"),className:"text-xl font-bold text-primary hover:text-primary-hover transition-colors shrink-0 leading-none py-1",children:"LoadPayEasy"}),g.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[g.jsx("button",{onClick:()=>h("about"),className:"text-foreground hover:text-primary transition-colors font-medium",children:s==="pt-BR"?"Sobre":"About"}),g.jsx("button",{onClick:()=>h("features"),className:"text-foreground hover:text-primary transition-colors font-medium",children:s==="pt-BR"?"Soluções":"Solutions"}),g.jsx("button",{onClick:()=>h("reports"),className:"text-foreground hover:text-primary transition-colors font-medium",children:s==="pt-BR"?"Relatórios":"Reports"}),g.jsx("button",{onClick:()=>h("contact"),className:"text-foreground hover:text-primary transition-colors font-medium",children:s==="pt-BR"?"Contato":"Contact"})]}),g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx(Ur,{variant:"text",size:"sm",onClick:()=>a(s==="pt-BR"?"en-US":"pt-BR"),className:"font-medium",children:s==="pt-BR"?"EN":"PT"}),g.jsx("button",{onClick:o,className:"relative w-9 h-9 flex items-center justify-center rounded-lg hover:bg-muted transition",children:g.jsx("span",{className:`material-icons-outlined text-lg transition-colors duration-300 ${n==="light"?"text-yellow-500":"text-blue-400"}`,children:n==="light"?"light_mode":"dark_mode"})}),g.jsx(Ur,{variant:"contained",size:"sm",onClick:()=>h("contact"),className:"hidden sm:inline-flex",children:s==="pt-BR"?"Fale conosco":"Contact us"}),g.jsxs("button",{onClick:()=>d(!u),className:"md:hidden flex flex-col justify-center items-center w-9 h-9",children:[g.jsx("span",{className:`block h-0.5 w-6 bg-foreground transition-all duration-300 ${u?"rotate-45 translate-y-1.5":""}`}),g.jsx("span",{className:`block h-0.5 w-6 bg-foreground my-1 transition-all duration-300 ${u?"opacity-0":""}`}),g.jsx("span",{className:`block h-0.5 w-6 bg-foreground transition-all duration-300 ${u?"-rotate-45 -translate-y-1.5":""}`})]})]})]})}),g.jsx("div",{className:`md:hidden overflow-hidden transition-all duration-300 ease-in-out ${u?"max-h-60 opacity-100 translate-y-0 border-t border-border":"max-h-0 opacity-0 -translate-y-2"}`,children:g.jsxs("div",{className:"flex flex-col px-6 py-4 space-y-4 bg-surface",children:[g.jsx("button",{onClick:()=>h("about"),className:"text-left text-foreground hover:text-primary font-medium",children:s==="pt-BR"?"Sobre":"About"}),g.jsx("button",{onClick:()=>h("features"),className:"text-left text-foreground hover:text-primary font-medium",children:s==="pt-BR"?"Soluções":"Solutions"}),g.jsx("button",{onClick:()=>h("reports"),className:"text-left text-foreground hover:text-primary font-medium",children:s==="pt-BR"?"Relatórios":"Reports"}),g.jsx(Ur,{variant:"contained",size:"sm",onClick:()=>h("contact"),className:"w-full",children:s==="pt-BR"?"Fale conosco":"Contact us"})]})})]})},a1="/assets/hero-carhauling-BRGXY5A1.jpg",l1=()=>{const{t:n}=cr(),o=x.useRef(null);x.useEffect(()=>{const a=new IntersectionObserver(d=>{d.forEach(f=>{f.isIntersecting&&f.target.classList.add("scroll-reveal")})},{threshold:.1});return o.current?.querySelectorAll(".animate-on-scroll")?.forEach(d=>a.observe(d)),()=>a.disconnect()},[]);const s=()=>{const a=document.getElementById("contact");a&&a.scrollIntoView({behavior:"smooth"})};return g.jsxs("section",{id:"hero",ref:o,className:"min-h-screen pt-24 md:pt-24 flex items-center justify-center bg-gradient-to-br from-primary-light to-secondary-light relative overflow-hidden",children:[g.jsxs("div",{className:"absolute inset-0 opacity-20",children:[g.jsx("img",{src:a1,alt:"Car hauling trucks",className:"w-full h-full object-cover"}),g.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/20 to-secondary/20"})]}),g.jsxs("div",{className:"absolute inset-0 opacity-10",children:[g.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-primary rounded-full mix-blend-multiply filter blur-xl animate-pulse"}),g.jsx("div",{className:"absolute top-3/4 right-1/4 w-96 h-96 bg-secondary rounded-full mix-blend-multiply filter blur-xl animate-pulse delay-1000"})]}),g.jsx("div",{className:"container mx-auto px-4 lg:px-8 relative z-10",children:g.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8",children:[g.jsx("h1",{className:"hidden md:block text-4xl md:text-5xl lg:text-6xl font-bold pb-2 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent",children:n("hero.title")}),g.jsx("div",{className:"animate-on-scroll scroll-reveal-delay-1",children:g.jsxs(Ur,{variant:"contained",size:"lg",onClick:s,className:"text-lg px-12 py-4 h-auto elevation-2 hover:elevation-3",children:[g.jsx("span",{className:"material-icons-outlined mr-2",children:"chat"}),n("hero.cta")]})}),g.jsxs("div",{className:"animate-on-scroll scroll-reveal-delay-2 grid grid-cols-1 md:grid-cols-3 gap-6 mt-16",children:[g.jsxs("div",{className:"text-center p-6 rounded-lg bg-surface/50 backdrop-blur-sm border border-border/50",children:[g.jsx("span",{className:"material-icons-outlined text-4xl text-primary mb-4 block",children:"directions_car"}),g.jsx("h3",{className:"font-semibold text-foreground mb-2",children:n("features.loads.title")}),g.jsx("p",{className:"text-sm text-muted-foreground",children:n("features.loads.desc")})]}),g.jsxs("div",{className:"text-center p-6 rounded-lg bg-surface/50 backdrop-blur-sm border border-border/50",children:[g.jsx("span",{className:"material-icons-outlined text-4xl text-secondary mb-4 block",children:"qr_code_2"}),g.jsx("h3",{className:"font-semibold text-foreground mb-2",children:n("features.qr.title")}),g.jsx("p",{className:"text-sm text-muted-foreground",children:n("features.qr.desc")})]}),g.jsxs("div",{className:"text-center p-6 rounded-lg bg-surface/50 backdrop-blur-sm border border-border/50",children:[g.jsx("span",{className:"material-icons-outlined text-4xl text-primary mb-4 block",children:"analytics"}),g.jsx("h3",{className:"font-semibold text-foreground mb-2",children:n("features.reports.title")}),g.jsx("p",{className:"text-sm text-muted-foreground",children:n("features.reports.desc")})]})]}),g.jsxs("div",{className:"animate-on-scroll scroll-reveal-delay-1",children:[g.jsx("p",{className:"text-xl md:text-2xl text-foreground/80 max-w-2xl mx-auto",children:n("impact.title")}),g.jsx("p",{className:"text-xl md:text-2xl text-foreground/80 max-w-2xl mx-auto",children:n("impact.description")})]})]})})]})},u1="/assets/fleet-management-kxUFgN6t.jpg",c1=()=>{const{t:n}=cr(),o=x.useRef(null);return x.useEffect(()=>{const s=new IntersectionObserver(u=>{u.forEach(d=>{d.isIntersecting&&d.target.classList.add("scroll-reveal")})},{threshold:.1});return o.current?.querySelectorAll(".animate-on-scroll")?.forEach(u=>s.observe(u)),()=>s.disconnect()},[]),g.jsx("section",{id:"about",ref:o,className:"py-24 bg-surface",children:g.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:g.jsxs("div",{className:"max-w-4xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16 animate-on-scroll",children:[g.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:n("about.title")}),g.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-primary to-secondary mx-auto mb-8"})]}),g.jsx("div",{className:"animate-on-scroll scroll-reveal-delay-1",children:g.jsxs("div",{className:"bg-card rounded-xl overflow-hidden elevation-1 border border-border/50",children:[g.jsxs("div",{className:"aspect-video relative",children:[g.jsx("img",{src:u1,alt:"Fleet management operations",className:"w-full h-full object-cover"}),g.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-card/90 to-transparent"})]}),g.jsx("div",{className:"p-8 md:p-12",children:g.jsx("p",{className:"text-lg md:text-xl leading-relaxed text-foreground/90 text-center",children:n("about.description")})})]})}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mt-16 animate-on-scroll scroll-reveal-delay-2",children:[g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:g.jsx("span",{className:"material-icons-outlined text-primary text-2xl",children:"security"})}),g.jsx("h3",{className:"font-semibold text-lg mb-2",children:n("benefits.security.title")}),g.jsx("p",{className:"text-muted-foreground",children:n("benefits.security.desc")})]}),g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"w-16 h-16 bg-secondary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:g.jsx("span",{className:"material-icons-outlined text-secondary text-2xl",children:"speed"})}),g.jsx("h3",{className:"font-semibold text-lg mb-2",children:n("benefits.efficiency.title")}),g.jsx("p",{className:"text-muted-foreground",children:n("benefits.efficiency.desc")})]}),g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4",children:g.jsx("span",{className:"material-icons-outlined text-primary text-2xl",children:"visibility"})}),g.jsx("h3",{className:"font-semibold text-lg mb-2",children:n("benefits.transparency.title")}),g.jsx("p",{className:"text-muted-foreground",children:n("benefits.transparency.desc")})]})]})]})})})},d1="/assets/route-planning-B5qJ7hQv.jpg",f1="/assets/qr-payment-Cnrp9_X6.jpg",p1=()=>{const{t:n}=cr(),o=x.useRef(null);x.useEffect(()=>{const a=new IntersectionObserver(d=>{d.forEach(f=>{f.isIntersecting&&f.target.classList.add("scroll-reveal")})},{threshold:.1});return o.current?.querySelectorAll(".animate-on-scroll")?.forEach(d=>a.observe(d)),()=>a.disconnect()},[]);const s=[{icon:"directions_car",titleKey:"features.load.title",descriptionKey:"features.load.description",color:"primary",image:null},{icon:"alt_route",titleKey:"features.routes.title",descriptionKey:"features.routes.description",color:"secondary",image:d1},{icon:"link",titleKey:"features.magic.title",descriptionKey:"features.magic.description",color:"primary",image:null},{icon:"analytics",titleKey:"features.reports.title",descriptionKey:"features.reports.description",color:"secondary",image:null},{icon:"qr_code_2",titleKey:"features.qr.title",descriptionKey:"features.qr.description",color:"primary",image:f1},{icon:"verified_user",titleKey:"features.auth.title",descriptionKey:"features.auth.description",color:"secondary",image:null}];return g.jsx("section",{id:"features",ref:o,className:"py-24 bg-background",children:g.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16 animate-on-scroll",children:[g.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:n("features.title")}),g.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-primary to-secondary mx-auto mb-8"}),g.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:n("hero.subtitle2")})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.map((a,u)=>g.jsxs("div",{className:`animate-on-scroll scroll-reveal-delay-${Math.min(u%3+1,3)} bg-card rounded-xl overflow-hidden elevation-1 hover:elevation-2 card-hover border border-border/50 transition-all duration-300`,children:[a.image&&g.jsx("div",{className:"aspect-video relative",children:g.jsx("img",{src:a.image,alt:n(a.titleKey),className:"w-full h-full object-cover"})}),g.jsxs("div",{className:"p-8",children:[g.jsx("div",{className:`w-16 h-16 bg-${a.color}/10 rounded-xl flex items-center justify-center mb-6`,children:g.jsx("span",{className:`material-icons-outlined text-${a.color} text-3xl`,children:a.icon})}),g.jsx("h3",{className:"text-xl font-semibold mb-4 text-foreground",children:n(a.titleKey)}),g.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n(a.descriptionKey)})]})]},a.titleKey))})]})})})},m1=()=>{const{t:n}=cr(),o=x.useRef(null);x.useEffect(()=>{const u=new IntersectionObserver(f=>{f.forEach(p=>{p.isIntersecting&&p.target.classList.add("scroll-reveal")})},{threshold:.1});return o.current?.querySelectorAll(".animate-on-scroll")?.forEach(f=>u.observe(f)),()=>u.disconnect()},[]);const s=[{load:"LOAD-001",route:"MIAMI-ATLANTA-01",value:`${n("dashboard.load.currency")} 15.000,00`,status:"Pago",date:"15/01/2024"},{load:"LOAD-002",route:"ATLANTA-MIAMI-02",value:`${n("dashboard.load.currency")} 12.500,00`,status:"Pendente",date:"16/01/2024"},{load:"LOAD-003",route:"MIAMI-ATLANTA-03",value:`${n("dashboard.load.currency")} 8.750,00`,status:"Pago",date:"17/01/2024"},{load:"LOAD-004",route:"ATLANTA-NASHVILLE-04",value:`${n("dashboard.load.currency")} 22.00,00`,status:"Em andamento",date:"18/01/2024"},{load:"LOAD-005",route:"NASHVILLE-MIAMI-05",value:`${n("dashboard.load.currency")} 18.300,00`,status:"Pendente",date:"19/01/2024"}],a=u=>{switch(u){case"Pago":return"text-success bg-success/10";case"Pendente":return"text-warning bg-warning/10";case"Em andamento":return"text-primary bg-primary/10";default:return"text-muted-foreground bg-muted/10"}};return g.jsx("section",{id:"reports",ref:o,className:"py-24 bg-muted/30",children:g.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16 animate-on-scroll",children:[g.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:n("reports.title")}),g.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-primary to-secondary mx-auto mb-8"}),g.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:n("report.subtitle")})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 mb-12 animate-on-scroll scroll-reveal-delay-1",children:[g.jsxs("div",{className:"bg-card rounded-xl p-6 elevation-1 border border-border/50",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n("dashboard.totalReceived")}),g.jsx("span",{className:"material-icons-outlined text-success text-lg",children:"trending_up"})]}),g.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[n("dashboard.load.currency")," 42.050,00"]}),g.jsx("p",{className:"text-xs text-success",children:n("dashboard.prevMonthComparison")})]}),g.jsxs("div",{className:"bg-card rounded-xl p-6 elevation-1 border border-border/50",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n("dashboard.pending")}),g.jsx("span",{className:"material-icons-outlined text-warning text-lg",children:"schedule"})]}),g.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[n("dashboard.load.currency")," 12.500,00"]}),g.jsx("p",{className:"text-xs text-muted-foreground",children:n("dashboard.loads.count").replace("{{count}}","2")})]}),g.jsxs("div",{className:"bg-card rounded-xl p-6 elevation-1 border border-border/50",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n("dashboard.inProgress")}),g.jsx("span",{className:"material-icons-outlined text-primary text-lg",children:"local_shipping"})]}),g.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[n("dashboard.load.currency")," 22.000,00"]}),g.jsx("p",{className:"text-xs text-muted-foreground",children:n("dashboard.load.count").replace("{{count}}","1")})]}),g.jsxs("div",{className:"bg-card rounded-xl p-6 elevation-1 border border-border/50",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n("dashboard.monthTotal")}),g.jsx("span",{className:"material-icons-outlined text-secondary text-lg",children:"analytics"})]}),g.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[n("dashboard.load.currency")," 76.550,00"]}),g.jsx("p",{className:"text-xs text-secondary",children:n("dashboard.loads.count").replace("{{count}}","5")})]})]}),g.jsx("div",{className:"animate-on-scroll scroll-reveal-delay-2",children:g.jsxs("div",{className:"bg-card rounded-xl overflow-hidden elevation-1 border border-border/50",children:[g.jsx("div",{className:"p-6 border-b border-border",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h3",{className:"text-xl font-semibold text-foreground",children:n("report.detailed.title")}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsxs("button",{className:"inline-flex items-center px-3 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[g.jsx("span",{className:"material-icons-outlined mr-1 text-base",children:"filter_list"}),n("report.filters")]}),g.jsxs("button",{className:"inline-flex items-center px-3 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[g.jsx("span",{className:"material-icons-outlined mr-1 text-base",children:"download"}),n("report.export")]})]})]})}),g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full",children:[g.jsx("thead",{className:"bg-muted/50",children:g.jsxs("tr",{children:[g.jsx("th",{className:"text-left p-4 text-sm font-medium text-muted-foreground",children:n("reports.load")}),g.jsx("th",{className:"text-left p-4 text-sm font-medium text-muted-foreground",children:n("reports.route")}),g.jsx("th",{className:"text-left p-4 text-sm font-medium text-muted-foreground",children:n("reports.value")}),g.jsx("th",{className:"text-left p-4 text-sm font-medium text-muted-foreground",children:n("reports.status")}),g.jsx("th",{className:"text-left p-4 text-sm font-medium text-muted-foreground",children:n("reports.date")})]})}),g.jsx("tbody",{children:s.map((u,d)=>g.jsxs("tr",{className:"border-t border-border hover:bg-muted/20 transition-colors",children:[g.jsx("td",{className:"p-4",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("span",{className:"material-icons-outlined text-primary mr-3",children:"directions_car"}),g.jsx("span",{className:"font-medium text-foreground",children:u.load})]})}),g.jsx("td",{className:"p-4",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("span",{className:"material-icons-outlined text-secondary mr-3",children:"alt_route"}),g.jsx("span",{className:"text-foreground",children:u.route})]})}),g.jsx("td",{className:"p-4",children:g.jsx("span",{className:"font-semibold text-foreground",children:u.value})}),g.jsx("td",{className:"p-4",children:g.jsx("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium ${a(u.status)}`,children:u.status})}),g.jsx("td",{className:"p-4",children:g.jsx("span",{className:"text-muted-foreground",children:u.date})})]},u.load))})]})})]})})]})})})},h1=()=>{const{t:n}=cr();Bf();const o=x.useRef(null);x.useRef(null);const[s,a]=x.useState({name:"",email:"",company:"",message:"",captcha:""}),[u,d]=x.useState(!1);return x.useEffect(()=>{const f=new IntersectionObserver(h=>{h.forEach(v=>{v.isIntersecting&&v.target.classList.add("scroll-reveal")})},{threshold:.1});return o.current?.querySelectorAll(".animate-on-scroll")?.forEach(h=>f.observe(h)),()=>f.disconnect()},[]),g.jsx("section",{id:"contact",ref:o,className:"py-24 bg-gradient-to-br from-primary-light via-surface to-secondary-light",children:g.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16 animate-on-scroll",children:[g.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-6 text-foreground",children:n("contact.title")}),g.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-primary to-secondary mx-auto mb-8"}),g.jsx("p",{className:"text-xl text-foreground/80 max-w-3xl mx-auto",children:n("contact.cta")})]}),g.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-1 gap-12 text-center",children:g.jsxs("div",{className:"animate-on-scroll scroll-reveal-delay-2 space-y-8",children:[g.jsxs("div",{className:"bg-card rounded-xl p-8 elevation-1 border border-border/50",children:[g.jsx("h3",{className:"text-2xl font-semibold mb-1 text-foreground",children:n("contact.info.title")}),g.jsxs("div",{className:"space-y-6 flex flex-col items-center text-center",children:[g.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[g.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center",children:g.jsx("span",{className:"material-icons-outlined text-primary",children:g.jsx("a",{href:"mailto:loadpayeasy@gmail.com",children:"email"})})}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-medium text-foreground",children:g.jsx("a",{href:"mailto:loadpayeasy@gmail.com",children:n("contact.info.email")})}),g.jsx("p",{className:"text-muted-foreground",children:g.jsx("a",{href:"mailto:loadpayeasy@gmail.com",children:"loadpayeasy@gmail.com"})})]})]}),g.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[g.jsx("div",{className:"w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center",children:g.jsx("span",{className:"material-icons-outlined text-primary",children:"schedule"})}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-medium text-foreground",children:n("contact.info.hours")}),g.jsx("p",{className:"text-muted-foreground",children:n("contact.info.hours.value")})]})]})]})]}),g.jsxs("div",{className:"bg-gradient-to-r from-primary to-secondary rounded-xl p-8 text-white ",children:[g.jsx("h3",{className:"text-xl font-semibold mb-4",children:n("cta.ready.title")}),g.jsx("p",{className:"mb-6 opacity-90",children:n("cta.ready.desc")}),g.jsx("a",{href:"app/sign-up",target:"_blank",rel:"noopener noreferrer",children:g.jsxs(Ur,{variant:"outlined",className:"border-white text-white hover:bg-white hover:text-primary",children:[g.jsx("span",{className:"material-icons-outlined mr-2",children:"play_arrow"}),n("cta.request.demo")]})})]})]})})]})})})},g1=()=>{const{t:n}=cr();return g.jsxs("div",{className:"min-h-screen bg-background",children:[g.jsx(i1,{}),g.jsxs("main",{children:[g.jsx(l1,{}),g.jsx(c1,{}),g.jsx(p1,{}),g.jsx(m1,{}),g.jsx(h1,{})]}),g.jsx("footer",{className:"bg-surface border-t border-border py-12",children:g.jsxs("div",{className:"container mx-auto px-4 lg:px-8",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[g.jsxs("div",{className:"col-span-1 md:col-span-2",children:[g.jsx("h3",{className:"text-xl font-bold text-primary mb-4",children:"LoadPayEasy"}),g.jsx("p",{className:"text-muted-foreground mb-4 max-w-md",children:n("footer.description")}),g.jsx("p",{className:"text-muted-foreground mb-4 max-w-md",children:n("footer.information")}),g.jsx("p",{className:"text-muted-foreground mb-4 max-w-md",children:n("footer.ia")}),g.jsx("p",{className:"text-muted-foreground mb-4 max-w-md",children:n("footer.startlocation")})]}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-semibold mb-4 text-foreground",children:n("footer.product")}),g.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[g.jsx("li",{children:g.jsx("a",{href:"#features",className:"hover:text-foreground transition-colors",children:n("footer.features")})}),g.jsx("li",{children:g.jsx("a",{href:"#reports",className:"hover:text-foreground transition-colors",children:n("footer.reports")})})]})]}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-semibold mb-4 text-foreground",children:n("footer.company")}),g.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[g.jsx("li",{children:g.jsx("a",{href:"#about",className:"hover:text-foreground transition-colors",children:n("footer.about")})}),g.jsx("li",{children:g.jsx("a",{href:"#contact",className:"hover:text-foreground transition-colors",children:n("footer.contact")})})]})]})]}),g.jsx("div",{className:"border-t border-border mt-8 pt-8 text-center text-sm text-muted-foreground",children:g.jsxs("p",{children:["© 2026 LoadPayEasy. ",n("footer.rights")]})})]})})]})},v1=()=>{const n=ym();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",n.pathname)},[n.pathname]),g.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),g.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),g.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},y1=new nw,x1=()=>g.jsx(ow,{client:y1,children:g.jsx(Kw,{children:g.jsx(Yw,{children:g.jsxs(Nx,{children:[g.jsx(my,{}),g.jsx(Qy,{}),g.jsx(Hw,{children:g.jsxs(Uw,{children:[g.jsx(Wl,{path:"/",element:g.jsx(g1,{})}),g.jsx(Wl,{path:"*",element:g.jsx(v1,{})})]})})]})})})});Cg.createRoot(document.getElementById("root")).render(g.jsx(x1,{}));