var Nb=e=>{throw TypeError(e)};var $h=(e,t,n)=>t.has(e)||Nb("Cannot "+n);var W=(e,t,n)=>($h(e,t,"read from private field"),n?n.call(e):t.get(e)),Oe=(e,t,n)=>t.has(e)?Nb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,r)=>($h(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),bt=(e,t,n)=>($h(e,t,"access private method"),n);var lu=(e,t,n,r)=>({set _(i){fe(e,t,i,n)},get _(){return W(e,t,r)}});function J$(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var cu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var RP={exports:{}},Jd={},DP={exports:{}},ge={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vc=Symbol.for("react.element"),eM=Symbol.for("react.portal"),tM=Symbol.for("react.fragment"),nM=Symbol.for("react.strict_mode"),rM=Symbol.for("react.profiler"),iM=Symbol.for("react.provider"),oM=Symbol.for("react.context"),aM=Symbol.for("react.forward_ref"),sM=Symbol.for("react.suspense"),lM=Symbol.for("react.memo"),cM=Symbol.for("react.lazy"),$b=Symbol.iterator;function uM(e){return e===null||typeof e!="object"?null:(e=$b&&e[$b]||e["@@iterator"],typeof e=="function"?e:null)}var LP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FP=Object.assign,BP={};function bs(e,t,n){this.props=e,this.context=t,this.refs=BP,this.updater=n||LP}bs.prototype.isReactComponent={};bs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zP(){}zP.prototype=bs.prototype;function Hy(e,t,n){this.props=e,this.context=t,this.refs=BP,this.updater=n||LP}var Vy=Hy.prototype=new zP;Vy.constructor=Hy;FP(Vy,bs.prototype);Vy.isPureReactComponent=!0;var Mb=Array.isArray,UP=Object.prototype.hasOwnProperty,Gy={current:null},WP={key:!0,ref:!0,__self:!0,__source:!0};function HP(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)UP.call(t,r)&&!WP.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,U=C[B];if(0>>1;Bi(ve,H))rei(X,ve)?(C[B]=X,C[re]=H,B=re):(C[B]=ve,C[ee]=H,B=ee);else if(rei(X,H))C[B]=X,C[re]=H,B=re;else break e}}return D}function i(C,D){var H=C.sortIndex-D.sortIndex;return H!==0?H:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,h=!1,y=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(C){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=C)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function w(C){if(m=!1,b(C),!y)if(n(l)!==null)y=!0,M(S);else{var D=n(c);D!==null&&L(w,D.startTime-C)}}function S(C,D){y=!1,m&&(m=!1,x(A),A=-1),h=!0;var H=p;try{for(b(D),f=n(l);f!==null&&(!(f.expirationTime>D)||C&&!N());){var B=f.callback;if(typeof B=="function"){f.callback=null,p=f.priorityLevel;var U=B(f.expirationTime<=D);D=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(l)&&r(l),b(D)}else r(l);f=n(l)}if(f!==null)var K=!0;else{var ee=n(c);ee!==null&&L(w,ee.startTime-D),K=!1}return K}finally{f=null,p=H,h=!1}}var O=!1,P=null,A=-1,T=5,_=-1;function N(){return!(e.unstable_now()-_C||125B?(C.sortIndex=H,t(c,C),n(l)===null&&C===n(c)&&(m?(x(A),A=-1):m=!0,L(w,H-B))):(C.sortIndex=U,t(l,C),y||h||(y=!0,M(S))),C},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(C){var D=p;return function(){var H=p;p=D;try{return C.apply(this,arguments)}finally{p=H}}}})(XP);YP.exports=XP;var wM=YP.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var SM=j,on=wM;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xm=Object.prototype.hasOwnProperty,jM=/^[: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]*$/,Rb={},Db={};function OM(e){return Xm.call(Db,e)?!0:Xm.call(Rb,e)?!1:jM.test(e)?Db[e]=!0:(Rb[e]=!0,!1)}function PM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function AM(e,t,n,r){if(t===null||typeof t>"u"||PM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rt(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new Rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new Rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Rt(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){yt[e]=new Rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var qy=/[\-:]([a-z])/g;function Yy(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(qy,Yy);yt[t]=new Rt(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(qy,Yy);yt[t]=new Rt(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(qy,Yy);yt[t]=new Rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Rt(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xy(e,t,n,r){var i=yt.hasOwnProperty(t)?yt[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Rh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hl(e):""}function EM(e){switch(e.tag){case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return hl("Suspense");case 19:return hl("SuspenseList");case 0:case 2:case 15:return e=Dh(e.type,!1),e;case 11:return e=Dh(e.type.render,!1),e;case 1:return e=Dh(e.type,!0),e;default:return""}}function eg(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 na:return"Fragment";case ta:return"Portal";case Qm:return"Profiler";case Qy:return"StrictMode";case Zm:return"Suspense";case Jm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case JP:return(e.displayName||"Context")+".Consumer";case ZP:return(e._context.displayName||"Context")+".Provider";case Zy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jy:return t=e.displayName||null,t!==null?t:eg(e.type)||"Memo";case ei:t=e._payload,e=e._init;try{return eg(e(t))}catch{}}return null}function kM(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 eg(t);case 8:return t===Qy?"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 Ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CM(e){var t=tA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function du(e){e._valueTracker||(e._valueTracker=CM(e))}function nA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gf(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 tg(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ei(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rA(e,t){t=t.checked,t!=null&&Xy(e,"checked",t,!1)}function ng(e,t){rA(e,t);var n=Ei(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rg(e,t.type,n):t.hasOwnProperty("defaultValue")&&rg(e,t.type,Ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rg(e,t,n){(t!=="number"||gf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ml=Array.isArray;function ma(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=pu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bl={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},TM=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){TM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function sA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function lA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var _M=Ve({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 ag(e,t){if(t){if(_M[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function sg(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 lg=null;function e0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cg=null,ga=null,va=null;function Wb(e){if(e=qc(e)){if(typeof cg!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ip(t),cg(e.stateNode,e.type,t))}}function cA(e){ga?va?va.push(e):va=[e]:ga=e}function uA(){if(ga){var e=ga,t=va;if(va=ga=null,Wb(e),t)for(e=0;e>>=0,e===0?32:31-(UM(e)/WM|0)|0}var hu=64,mu=4194304;function gl(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 bf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=gl(s):(o&=a,o!==0&&(r=gl(o)))}else a=n&~i,a!==0?r=gl(a):o!==0&&(r=gl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fn(t),e[t]=n}function KM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Sl),Zb=" ",Jb=!1;function TA(e,t){switch(e){case"keyup":return wI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _A(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function jI(e,t){switch(e){case"compositionend":return _A(t);case"keypress":return t.which!==32?null:(Jb=!0,Zb);case"textInput":return e=t.data,e===Zb&&Jb?null:e;default:return null}}function OI(e,t){if(ra)return e==="compositionend"||!l0&&TA(e,t)?(e=kA(),Ju=o0=fi=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rw(n)}}function IA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?IA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RA(){for(var e=window,t=gf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gf(e.document)}return t}function c0(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 $I(e){var t=RA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&IA(n.ownerDocument.documentElement,n)){if(r!==null&&c0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=iw(n,o);var a=iw(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ia=null,mg=null,Ol=null,gg=!1;function ow(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gg||ia==null||ia!==gf(r)||(r=ia,"selectionStart"in r&&c0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ol&&Vl(Ol,r)||(Ol=r,r=jf(mg,"onSelect"),0sa||(e.current=Sg[sa],Sg[sa]=null,sa--)}function $e(e,t){sa++,Sg[sa]=e.current,e.current=t}var ki={},kt=Ii(ki),zt=Ii(!1),wo=ki;function La(e,t){var n=e.type.contextTypes;if(!n)return ki;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ut(e){return e=e.childContextTypes,e!=null}function Pf(){Fe(zt),Fe(kt)}function dw(e,t,n){if(kt.current!==ki)throw Error(V(168));$e(kt,t),$e(zt,n)}function VA(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(V(108,kM(e)||"Unknown",i));return Ve({},n,r)}function Af(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ki,wo=kt.current,$e(kt,e),$e(zt,zt.current),!0}function pw(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=VA(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,Fe(zt),Fe(kt),$e(kt,e)):Fe(zt),$e(zt,n)}var br=null,op=!1,Qh=!1;function GA(e){br===null?br=[e]:br.push(e)}function VI(e){op=!0,GA(e)}function Ri(){if(!Qh&&br!==null){Qh=!0;var e=0,t=Pe;try{var n=br;for(Pe=1;e>=a,i-=a,Sr=1<<32-Fn(t)+i|n<A?(T=P,P=null):T=P.sibling;var _=p(x,P,b[A],w);if(_===null){P===null&&(P=T);break}e&&P&&_.alternate===null&&t(x,P),g=o(_,g,A),O===null?S=_:O.sibling=_,O=_,P=T}if(A===b.length)return n(x,P),ze&&Qi(x,A),S;if(P===null){for(;AA?(T=P,P=null):T=P.sibling;var N=p(x,P,_.value,w);if(N===null){P===null&&(P=T);break}e&&P&&N.alternate===null&&t(x,P),g=o(N,g,A),O===null?S=N:O.sibling=N,O=N,P=T}if(_.done)return n(x,P),ze&&Qi(x,A),S;if(P===null){for(;!_.done;A++,_=b.next())_=f(x,_.value,w),_!==null&&(g=o(_,g,A),O===null?S=_:O.sibling=_,O=_);return ze&&Qi(x,A),S}for(P=r(x,P);!_.done;A++,_=b.next())_=h(P,x,A,_.value,w),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?A:_.key),g=o(_,g,A),O===null?S=_:O.sibling=_,O=_);return e&&P.forEach(function(k){return t(x,k)}),ze&&Qi(x,A),S}function v(x,g,b,w){if(typeof b=="object"&&b!==null&&b.type===na&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case fu:e:{for(var S=b.key,O=g;O!==null;){if(O.key===S){if(S=b.type,S===na){if(O.tag===7){n(x,O.sibling),g=i(O,b.props.children),g.return=x,x=g;break e}}else if(O.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ei&&gw(S)===O.type){n(x,O.sibling),g=i(O,b.props),g.ref=Js(x,O,b),g.return=x,x=g;break e}n(x,O);break}else t(x,O);O=O.sibling}b.type===na?(g=vo(b.props.children,x.mode,w,b.key),g.return=x,x=g):(w=lf(b.type,b.key,b.props,null,x.mode,w),w.ref=Js(x,g,b),w.return=x,x=w)}return a(x);case ta:e:{for(O=b.key;g!==null;){if(g.key===O)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(x,g.sibling),g=i(g,b.children||[]),g.return=x,x=g;break e}else{n(x,g);break}else t(x,g);g=g.sibling}g=om(b,x.mode,w),g.return=x,x=g}return a(x);case ei:return O=b._init,v(x,g,O(b._payload),w)}if(ml(b))return y(x,g,b,w);if(qs(b))return m(x,g,b,w);Su(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(x,g.sibling),g=i(g,b),g.return=x,x=g):(n(x,g),g=im(b,x.mode,w),g.return=x,x=g),a(x)):n(x,g)}return v}var Ba=XA(!0),QA=XA(!1),Cf=Ii(null),Tf=null,ua=null,p0=null;function h0(){p0=ua=Tf=null}function m0(e){var t=Cf.current;Fe(Cf),e._currentValue=t}function Pg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xa(e,t){Tf=e,p0=ua=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ft=!0),e.firstContext=null)}function wn(e){var t=e._currentValue;if(p0!==e)if(e={context:e,memoizedValue:t,next:null},ua===null){if(Tf===null)throw Error(V(308));ua=e,Tf.dependencies={lanes:0,firstContext:e}}else ua=ua.next=e;return t}var io=null;function g0(e){io===null?io=[e]:io.push(e)}function ZA(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,g0(t)):(n.next=i.next,i.next=n),t.interleaved=n,$r(e,r)}function $r(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ti=!1;function v0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function JA(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 Er(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,be&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,$r(e,n)}return i=r.interleaved,i===null?(t.next=t,g0(r)):(t.next=i.next,i.next=t),r.interleaved=t,$r(e,n)}function tf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,n0(e,n)}}function vw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _f(e,t,n,r){var i=e.updateQueue;ti=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,d=c=l=null,s=o;do{var p=s.lane,h=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,m=s;switch(p=t,h=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){f=y.call(h,f,p);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,p=typeof y=="function"?y.call(h,f,p):y,p==null)break e;f=Ve({},f,p);break e;case 2:ti=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=f):d=d.next=h,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Oo|=a,e.lanes=a,e.memoizedState=f}}function yw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Jh.transition;Jh.transition={};try{e(!1),t()}finally{Pe=n,Jh.transition=r}}function gE(){return Sn().memoizedState}function YI(e,t,n){var r=ji(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vE(e))yE(t,n);else if(n=ZA(e,t,n,r),n!==null){var i=Mt();Bn(n,e,r,i),xE(n,t,r)}}function XI(e,t,n){var r=ji(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vE(e))yE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Un(s,a)){var l=t.interleaved;l===null?(i.next=i,g0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=ZA(e,t,i,r),n!==null&&(i=Mt(),Bn(n,e,r,i),xE(n,t,r))}}function vE(e){var t=e.alternate;return e===He||t!==null&&t===He}function yE(e,t){Pl=$f=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,n0(e,n)}}var Mf={readContext:wn,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},QI={readContext:wn,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:bw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rf(4194308,4,fE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rf(4194308,4,e,t)},useInsertionEffect:function(e,t){return rf(4,2,e,t)},useMemo:function(e,t){var n=Qn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=YI.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=Qn();return e={current:e},t.memoizedState=e},useState:xw,useDebugValue:P0,useDeferredValue:function(e){return Qn().memoizedState=e},useTransition:function(){var e=xw(!1),t=e[0];return e=qI.bind(null,e[1]),Qn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,i=Qn();if(ze){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),dt===null)throw Error(V(349));jo&30||rE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bw(oE.bind(null,r,o,e),[e]),r.flags|=2048,Jl(9,iE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qn(),t=dt.identifierPrefix;if(ze){var n=jr,r=Sr;n=(r&~(1<<32-Fn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ql++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[tr]=t,e[ql]=r,CE(e,t,!1,!1),t.stateNode=e;e:{switch(a=sg(n,r),n){case"dialog":Re("cancel",e),Re("close",e),i=r;break;case"iframe":case"object":case"embed":Re("load",e),i=r;break;case"video":case"audio":for(i=0;iWa&&(t.flags|=128,r=!0,el(o,!1),t.lanes=4194304)}else{if(!r)if(e=Nf(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),el(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ze)return St(t),null}else 2*Ze()-o.renderingStartTime>Wa&&n!==1073741824&&(t.flags|=128,r=!0,el(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ze(),t.sibling=null,n=We.current,$e(We,r?n&1|2:n&1),t):(St(t),null);case 22:case 23:return _0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function oR(e,t){switch(f0(t),t.tag){case 1:return Ut(t.type)&&Pf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return za(),Fe(zt),Fe(kt),b0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return x0(t),null;case 13:if(Fe(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(We),null;case 4:return za(),null;case 10:return m0(t.type._context),null;case 22:case 23:return _0(),null;case 24:return null;default:return null}}var Ou=!1,Pt=!1,aR=typeof WeakSet=="function"?WeakSet:Set,Z=null;function fa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qe(e,t,r)}else n.current=null}function Mg(e,t,n){try{n()}catch(r){qe(e,t,r)}}var _w=!1;function sR(e,t){if(vg=wf,e=RA(),c0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(yg={focusedElem:e,selectionRange:n},wf=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,v=y.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?m:Tn(t.type,m),v);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(w){qe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return y=_w,_w=!1,y}function Al(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Mg(t,n,o)}i=i.next}while(i!==r)}}function lp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ig(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function NE(e){var t=e.alternate;t!==null&&(e.alternate=null,NE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tr],delete t[ql],delete t[wg],delete t[WI],delete t[HI])),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 $E(e){return e.tag===5||e.tag===3||e.tag===4}function Nw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$E(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 Rg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Of));else if(r!==4&&(e=e.child,e!==null))for(Rg(e,t,n),e=e.sibling;e!==null;)Rg(e,t,n),e=e.sibling}function Dg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Dg(e,t,n),e=e.sibling;e!==null;)Dg(e,t,n),e=e.sibling}var mt=null,$n=!1;function qr(e,t,n){for(n=n.child;n!==null;)ME(e,t,n),n=n.sibling}function ME(e,t,n){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(ep,n)}catch{}switch(n.tag){case 5:Pt||fa(n,t);case 6:var r=mt,i=$n;mt=null,qr(e,t,n),mt=r,$n=i,mt!==null&&($n?(e=mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):mt.removeChild(n.stateNode));break;case 18:mt!==null&&($n?(e=mt,n=n.stateNode,e.nodeType===8?Xh(e.parentNode,n):e.nodeType===1&&Xh(e,n),Wl(e)):Xh(mt,n.stateNode));break;case 4:r=mt,i=$n,mt=n.stateNode.containerInfo,$n=!0,qr(e,t,n),mt=r,$n=i;break;case 0:case 11:case 14:case 15:if(!Pt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Mg(n,t,a),i=i.next}while(i!==r)}qr(e,t,n);break;case 1:if(!Pt&&(fa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){qe(n,t,s)}qr(e,t,n);break;case 21:qr(e,t,n);break;case 22:n.mode&1?(Pt=(r=Pt)||n.memoizedState!==null,qr(e,t,n),Pt=r):qr(e,t,n);break;default:qr(e,t,n)}}function $w(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aR),t.forEach(function(r){var i=gR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function An(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ze()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cR(r/1960))-r,10e?16:e,di===null)var r=!1;else{if(e=di,di=null,Df=0,be&6)throw Error(V(331));var i=be;for(be|=4,Z=e.current;Z!==null;){var o=Z,a=o.child;if(Z.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lZe()-C0?go(e,0):k0|=n),Wt(e,t)}function UE(e,t){t===0&&(e.mode&1?(t=mu,mu<<=1,!(mu&130023424)&&(mu=4194304)):t=1);var n=Mt();e=$r(e,t),e!==null&&(Gc(e,t,n),Wt(e,n))}function mR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),UE(e,n)}function gR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),UE(e,n)}var WE;WE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||zt.current)Ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ft=!1,rR(e,t,n);Ft=!!(e.flags&131072)}else Ft=!1,ze&&t.flags&1048576&&KA(t,kf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;of(e,t),e=t.pendingProps;var i=La(t,kt.current);xa(t,n),i=S0(null,t,r,e,i,n);var o=j0();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ut(r)?(o=!0,Af(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,v0(t),i.updater=sp,t.stateNode=i,i._reactInternals=t,Eg(t,r,e,n),t=Tg(null,t,r,!0,o,n)):(t.tag=0,ze&&o&&u0(t),_t(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(of(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yR(r),e=Tn(r,e),i){case 0:t=Cg(null,t,r,e,n);break e;case 1:t=kw(null,t,r,e,n);break e;case 11:t=Aw(null,t,r,e,n);break e;case 14:t=Ew(null,t,r,Tn(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),Cg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),kw(e,t,r,i,n);case 3:e:{if(AE(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,JA(e,t),_f(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ua(Error(V(423)),t),t=Cw(e,t,r,n,i);break e}else if(r!==i){i=Ua(Error(V(424)),t),t=Cw(e,t,r,n,i);break e}else for(tn=bi(t.stateNode.containerInfo.firstChild),nn=t,ze=!0,Rn=null,n=QA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fa(),r===i){t=Mr(e,t,n);break e}_t(e,t,r,n)}t=t.child}return t;case 5:return eE(t),e===null&&Og(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,xg(r,i)?a=null:o!==null&&xg(r,o)&&(t.flags|=32),PE(e,t),_t(e,t,a,n),t.child;case 6:return e===null&&Og(t),null;case 13:return EE(e,t,n);case 4:return y0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):_t(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),Aw(e,t,r,i,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,$e(Cf,r._currentValue),r._currentValue=a,o!==null)if(Un(o.value,a)){if(o.children===i.children&&!zt.current){t=Mr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Er(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Pg(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Pg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}_t(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xa(t,n),i=wn(i),r=r(i),t.flags|=1,_t(e,t,r,n),t.child;case 14:return r=t.type,i=Tn(r,t.pendingProps),i=Tn(r.type,i),Ew(e,t,r,i,n);case 15:return jE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),of(e,t),t.tag=1,Ut(r)?(e=!0,Af(t)):e=!1,xa(t,n),bE(t,r,i),Eg(t,r,i,n),Tg(null,t,r,!0,e,n);case 19:return kE(e,t,n);case 22:return OE(e,t,n)}throw Error(V(156,t.tag))};function HE(e,t){return vA(e,t)}function vR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vn(e,t,n,r){return new vR(e,t,n,r)}function $0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yR(e){if(typeof e=="function")return $0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zy)return 11;if(e===Jy)return 14}return 2}function Oi(e,t){var n=e.alternate;return n===null?(n=vn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")$0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case na:return vo(n.children,i,o,t);case Qy:a=8,i|=8;break;case Qm:return e=vn(12,n,t,i|2),e.elementType=Qm,e.lanes=o,e;case Zm:return e=vn(13,n,t,i),e.elementType=Zm,e.lanes=o,e;case Jm:return e=vn(19,n,t,i),e.elementType=Jm,e.lanes=o,e;case eA:return up(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ZP:a=10;break e;case JP:a=9;break e;case Zy:a=11;break e;case Jy:a=14;break e;case ei:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=vn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function vo(e,t,n,r){return e=vn(7,e,r,t),e.lanes=n,e}function up(e,t,n,r){return e=vn(22,e,r,t),e.elementType=eA,e.lanes=n,e.stateNode={isHidden:!1},e}function im(e,t,n){return e=vn(6,e,null,t),e.lanes=n,e}function om(e,t,n){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Fh(0),this.expirationTimes=Fh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function M0(e,t,n,r,i,o,a,s,l){return e=new xR(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=vn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},v0(o),e}function bR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qE)}catch(e){console.error(e)}}qE(),qP.exports=sn;var Lo=qP.exports;const YE=Ce(Lo);var XE,zw=Lo;XE=zw.createRoot,zw.hydrateRoot;const PR=1,AR=1e6;let am=0;function ER(){return am=(am+1)%Number.MAX_SAFE_INTEGER,am.toString()}const sm=new Map,Uw=e=>{if(sm.has(e))return;const t=setTimeout(()=>{sm.delete(e),Cl({type:"REMOVE_TOAST",toastId:e})},AR);sm.set(e,t)},kR=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,PR)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Uw(n):e.toasts.forEach(r=>{Uw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},cf=[];let uf={toasts:[]};function Cl(e){uf=kR(uf,e),cf.forEach(t=>{t(uf)})}function CR({...e}){const t=ER(),n=i=>Cl({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Cl({type:"DISMISS_TOAST",toastId:t});return Cl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function QE(){const[e,t]=j.useState(uf);return j.useEffect(()=>(cf.push(t),()=>{const n=cf.indexOf(t);n>-1&&cf.splice(n,1)}),[e]),{...e,toast:CR,dismiss:n=>Cl({type:"DISMISS_TOAST",toastId:n})}}function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function TR(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ZE(...e){return t=>e.forEach(n=>TR(n,t))}function Be(...e){return j.useCallback(ZE(...e),e)}function _R(e,t=[]){let n=[];function r(o,a){const s=j.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...y}=f,m=(p==null?void 0:p[e][l])||s,v=j.useMemo(()=>y,Object.values(y));return u.jsx(m.Provider,{value:v,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,y=j.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(a=>j.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return j.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,NR(i,...t)]}function NR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Ao=j.forwardRef((e,t)=>{const{children:n,...r}=e,i=j.Children.toArray(n),o=i.find($R);if(o){const a=o.props.children,s=i.map(l=>l===o?j.Children.count(a)>1?j.Children.only(null):j.isValidElement(a)?a.props.children:null:l);return u.jsx(Ug,{...r,ref:t,children:j.isValidElement(a)?j.cloneElement(a,void 0,s):null})}return u.jsx(Ug,{...r,ref:t,children:n})});Ao.displayName="Slot";var Ug=j.forwardRef((e,t)=>{const{children:n,...r}=e;if(j.isValidElement(n)){const i=IR(n);return j.cloneElement(n,{...MR(r,n.props),ref:t?ZE(t,i):i})}return j.Children.count(n)>1?j.Children.only(null):null});Ug.displayName="SlotClone";var JE=({children:e})=>u.jsx(u.Fragment,{children:e});function $R(e){return j.isValidElement(e)&&e.type===JE}function MR(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function IR(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function L0(e){const t=e+"CollectionProvider",[n,r]=_R(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:y,children:m}=h,v=E.useRef(null),x=E.useRef(new Map).current;return u.jsx(i,{scope:y,itemMap:x,collectionRef:v,children:m})};a.displayName=t;const s=e+"CollectionSlot",l=E.forwardRef((h,y)=>{const{scope:m,children:v}=h,x=o(s,m),g=Be(y,x.collectionRef);return u.jsx(Ao,{ref:g,children:v})});l.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=E.forwardRef((h,y)=>{const{scope:m,children:v,...x}=h,g=E.useRef(null),b=Be(y,g),w=o(c,m);return E.useEffect(()=>(w.itemMap.set(g,{ref:g,...x}),()=>void w.itemMap.delete(g))),u.jsx(Ao,{[d]:"",ref:b,children:v})});f.displayName=c;function p(h){const y=o(e+"CollectionConsumer",h);return E.useCallback(()=>{const v=y.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((w,S)=>x.indexOf(w.ref.current)-x.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},p,r]}function js(e,t=[]){let n=[];function r(o,a){const s=j.createContext(a),l=n.length;n=[...n,a];const c=f=>{var x;const{scope:p,children:h,...y}=f,m=((x=p==null?void 0:p[e])==null?void 0:x[l])||s,v=j.useMemo(()=>y,Object.values(y));return u.jsx(m.Provider,{value:v,children:h})};c.displayName=o+"Provider";function d(f,p){var m;const h=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,y=j.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[c,d]}const i=()=>{const o=n.map(a=>j.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return j.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,RR(i,...t)]}function RR(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var DR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ye=DR.reduce((e,t)=>{const n=j.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?Ao:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(s,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ek(e,t){e&&Lo.flushSync(()=>e.dispatchEvent(t))}function an(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function LR(e,t=globalThis==null?void 0:globalThis.document){const n=an(e);j.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var FR="DismissableLayer",Wg="dismissableLayer.update",BR="dismissableLayer.pointerDownOutside",zR="dismissableLayer.focusOutside",Ww,tk=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mp=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,c=j.useContext(tk),[d,f]=j.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=j.useState({}),y=Be(t,P=>f(P)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(v),g=d?m.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=g>=x,S=WR(P=>{const A=P.target,T=[...c.branches].some(_=>_.contains(A));!w||T||(i==null||i(P),a==null||a(P),P.defaultPrevented||s==null||s())},p),O=HR(P=>{const A=P.target;[...c.branches].some(_=>_.contains(A))||(o==null||o(P),a==null||a(P),P.defaultPrevented||s==null||s())},p);return LR(P=>{g===c.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},p),j.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ww=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Hw(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ww)}},[d,p,n,c]),j.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Hw())},[d,c]),j.useEffect(()=>{const P=()=>h({});return document.addEventListener(Wg,P),()=>document.removeEventListener(Wg,P)},[]),u.jsx(ye.div,{...l,ref:y,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:de(e.onFocusCapture,O.onFocusCapture),onBlurCapture:de(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:de(e.onPointerDownCapture,S.onPointerDownCapture)})});mp.displayName=FR;var UR="DismissableLayerBranch",nk=j.forwardRef((e,t)=>{const n=j.useContext(tk),r=j.useRef(null),i=Be(t,r);return j.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),u.jsx(ye.div,{...e,ref:i})});nk.displayName=UR;function WR(e,t=globalThis==null?void 0:globalThis.document){const n=an(e),r=j.useRef(!1),i=j.useRef(()=>{});return j.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let l=function(){rk(BR,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function HR(e,t=globalThis==null?void 0:globalThis.document){const n=an(e),r=j.useRef(!1);return j.useEffect(()=>{const i=o=>{o.target&&!r.current&&rk(zR,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hw(){const e=new CustomEvent(Wg);document.dispatchEvent(e)}function rk(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ek(i,o):i.dispatchEvent(o)}var VR=mp,GR=nk,xt=globalThis!=null&&globalThis.document?j.useLayoutEffect:()=>{},KR="Portal",F0=j.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,o]=j.useState(!1);xt(()=>o(!0),[]);const a=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?YE.createPortal(u.jsx(ye.div,{...r,ref:t}),a):null});F0.displayName=KR;function qR(e,t){return j.useReducer((n,r)=>t[n][r]??n,e)}var gp=e=>{const{present:t,children:n}=e,r=YR(t),i=typeof n=="function"?n({present:r.isPresent}):j.Children.only(n),o=Be(r.ref,XR(i));return typeof n=="function"||r.isPresent?j.cloneElement(i,{ref:o}):null};gp.displayName="Presence";function YR(e){const[t,n]=j.useState(),r=j.useRef({}),i=j.useRef(e),o=j.useRef("none"),a=e?"mounted":"unmounted",[s,l]=qR(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const c=Eu(r.current);o.current=s==="mounted"?c:"none"},[s]),xt(()=>{const c=r.current,d=i.current;if(d!==e){const p=o.current,h=Eu(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),xt(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=h=>{const m=Eu(r.current).includes(h.animationName);if(h.target===t&&m&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=h=>{h.target===t&&(o.current=Eu(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:j.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Eu(e){return(e==null?void 0:e.animationName)||"none"}function XR(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ci({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=QR({defaultProp:t,onChange:n}),o=e!==void 0,a=o?e:r,s=an(n),l=j.useCallback(c=>{if(o){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else i(c)},[o,e,i,s]);return[a,l]}function QR({defaultProp:e,onChange:t}){const n=j.useState(e),[r]=n,i=j.useRef(r),o=an(t);return j.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var ZR="VisuallyHidden",Xc=j.forwardRef((e,t)=>u.jsx(ye.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Xc.displayName=ZR;var JR=Xc,B0="ToastProvider",[z0,eD,tD]=L0("Toast"),[ik,Jfe]=js("Toast",[tD]),[nD,vp]=ik(B0),ok=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=j.useState(null),[c,d]=j.useState(0),f=j.useRef(!1),p=j.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${B0}\`. Expected non-empty \`string\`.`),u.jsx(z0.Provider,{scope:t,children:u.jsx(nD,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:j.useCallback(()=>d(h=>h+1),[]),onToastRemove:j.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:a})})};ok.displayName=B0;var ak="ToastViewport",rD=["F8"],Hg="toast.viewportPause",Vg="toast.viewportResume",sk=j.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=rD,label:i="Notifications ({hotkey})",...o}=e,a=vp(ak,n),s=eD(n),l=j.useRef(null),c=j.useRef(null),d=j.useRef(null),f=j.useRef(null),p=Be(t,f,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=a.toastCount>0;j.useEffect(()=>{const v=x=>{var b;r.length!==0&&r.every(w=>x[w]||x.code===w)&&((b=f.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),j.useEffect(()=>{const v=l.current,x=f.current;if(y&&v&&x){const g=()=>{if(!a.isClosePausedRef.current){const O=new CustomEvent(Hg);x.dispatchEvent(O),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const O=new CustomEvent(Vg);x.dispatchEvent(O),a.isClosePausedRef.current=!1}},w=O=>{!v.contains(O.relatedTarget)&&b()},S=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",g),v.addEventListener("focusout",w),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",w),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",b)}}},[y,a.isClosePausedRef]);const m=j.useCallback(({tabbingDirection:v})=>{const g=s().map(b=>{const w=b.ref.current,S=[w,...gD(w)];return v==="forwards"?S:S.reverse()});return(v==="forwards"?g.reverse():g).flat()},[s]);return j.useEffect(()=>{const v=f.current;if(v){const x=g=>{var S,O,P;const b=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!b){const A=document.activeElement,T=g.shiftKey;if(g.target===v&&T){(S=c.current)==null||S.focus();return}const k=m({tabbingDirection:T?"backwards":"forwards"}),I=k.findIndex($=>$===A);lm(k.slice(I+1))?g.preventDefault():T?(O=c.current)==null||O.focus():(P=d.current)==null||P.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[s,m]),u.jsxs(GR,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&u.jsx(Gg,{ref:c,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"forwards"});lm(v)}}),u.jsx(z0.Slot,{scope:n,children:u.jsx(ye.ol,{tabIndex:-1,...o,ref:p})}),y&&u.jsx(Gg,{ref:d,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"backwards"});lm(v)}})]})});sk.displayName=ak;var lk="ToastFocusProxy",Gg=j.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=vp(lk,n);return u.jsx(Xc,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const s=a.relatedTarget;!((c=o.viewport)!=null&&c.contains(s))&&r()}})});Gg.displayName=lk;var yp="Toast",iD="toast.swipeStart",oD="toast.swipeMove",aD="toast.swipeCancel",sD="toast.swipeEnd",ck=j.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,l]=Ci({prop:r,defaultProp:i,onChange:o});return u.jsx(gp,{present:n||s,children:u.jsx(uD,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:an(e.onPause),onResume:an(e.onResume),onSwipeStart:de(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:de(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:de(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:de(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});ck.displayName=yp;var[lD,cD]=ik(yp,{onClose(){}}),uD=j.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:h,...y}=e,m=vp(yp,n),[v,x]=j.useState(null),g=Be(t,$=>x($)),b=j.useRef(null),w=j.useRef(null),S=i||m.duration,O=j.useRef(0),P=j.useRef(S),A=j.useRef(0),{onToastAdd:T,onToastRemove:_}=m,N=an(()=>{var R;(v==null?void 0:v.contains(document.activeElement))&&((R=m.viewport)==null||R.focus()),a()}),k=j.useCallback($=>{!$||$===1/0||(window.clearTimeout(A.current),O.current=new Date().getTime(),A.current=window.setTimeout(N,$))},[N]);j.useEffect(()=>{const $=m.viewport;if($){const R=()=>{k(P.current),c==null||c()},M=()=>{const L=new Date().getTime()-O.current;P.current=P.current-L,window.clearTimeout(A.current),l==null||l()};return $.addEventListener(Hg,M),$.addEventListener(Vg,R),()=>{$.removeEventListener(Hg,M),$.removeEventListener(Vg,R)}}},[m.viewport,S,l,c,k]),j.useEffect(()=>{o&&!m.isClosePausedRef.current&&k(S)},[o,S,m.isClosePausedRef,k]),j.useEffect(()=>(T(),()=>_()),[T,_]);const I=j.useMemo(()=>v?gk(v):null,[v]);return m.viewport?u.jsxs(u.Fragment,{children:[I&&u.jsx(fD,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:I}),u.jsx(lD,{scope:n,onClose:N,children:Lo.createPortal(u.jsx(z0.ItemSlot,{scope:n,children:u.jsx(VR,{asChild:!0,onEscapeKeyDown:de(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||N(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:de(e.onKeyDown,$=>{$.key==="Escape"&&(s==null||s($.nativeEvent),$.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,N()))}),onPointerDown:de(e.onPointerDown,$=>{$.button===0&&(b.current={x:$.clientX,y:$.clientY})}),onPointerMove:de(e.onPointerMove,$=>{if(!b.current)return;const R=$.clientX-b.current.x,M=$.clientY-b.current.y,L=!!w.current,C=["left","right"].includes(m.swipeDirection),D=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,H=C?D(0,R):0,B=C?0:D(0,M),U=$.pointerType==="touch"?10:2,K={x:H,y:B},ee={originalEvent:$,delta:K};L?(w.current=K,ku(oD,f,ee,{discrete:!1})):Vw(K,m.swipeDirection,U)?(w.current=K,ku(iD,d,ee,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(R)>U||Math.abs(M)>U)&&(b.current=null)}),onPointerUp:de(e.onPointerUp,$=>{const R=w.current,M=$.target;if(M.hasPointerCapture($.pointerId)&&M.releasePointerCapture($.pointerId),w.current=null,b.current=null,R){const L=$.currentTarget,C={originalEvent:$,delta:R};Vw(R,m.swipeDirection,m.swipeThreshold)?ku(sD,h,C,{discrete:!0}):ku(aD,p,C,{discrete:!0}),L.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),fD=e=>{const{__scopeToast:t,children:n,...r}=e,i=vp(yp,t),[o,a]=j.useState(!1),[s,l]=j.useState(!1);return hD(()=>a(!0)),j.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:u.jsx(F0,{asChild:!0,children:u.jsx(Xc,{...r,children:o&&u.jsxs(u.Fragment,{children:[i.label," ",n]})})})},dD="ToastTitle",uk=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(ye.div,{...r,ref:t})});uk.displayName=dD;var pD="ToastDescription",fk=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return u.jsx(ye.div,{...r,ref:t})});fk.displayName=pD;var dk="ToastAction",pk=j.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?u.jsx(mk,{altText:n,asChild:!0,children:u.jsx(U0,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dk}\`. Expected non-empty \`string\`.`),null)});pk.displayName=dk;var hk="ToastClose",U0=j.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=cD(hk,n);return u.jsx(mk,{asChild:!0,children:u.jsx(ye.button,{type:"button",...r,ref:t,onClick:de(e.onClick,i.onClose)})})});U0.displayName=hk;var mk=j.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return u.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function gk(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),mD(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...gk(r))}}),t}function ku(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ek(i,o):i.dispatchEvent(o)}var Vw=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function hD(e=()=>{}){const t=an(e);xt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function mD(e){return e.nodeType===e.ELEMENT_NODE}function gD(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var vD=ok,vk=sk,yk=ck,xk=uk,bk=fk,wk=pk,Sk=U0;function jk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Kw=me,xp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Kw(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const p=Gw(d)||Gw(f);return i[c][p]}),s=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:p,...h}=d;return Object.entries(h).every(y=>{let[m,v]=y;return Array.isArray(v)?v.includes({...o,...s}[m]):{...o,...s}[m]===v})?[...c,f,p]:c},[]);return Kw(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ok=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var xD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bD=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>j.createElement("svg",{ref:l,...xD,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ok("lucide",i),...s},[...a.map(([c,d])=>j.createElement(c,d)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Se=(e,t)=>{const n=j.forwardRef(({className:r,...i},o)=>j.createElement(bD,{ref:o,iconNode:t,className:Ok(`lucide-${yD(e)}`,r),...i}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wD=Se("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=Se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SD=Se("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jD=Se("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OD=Se("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PD=Se("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AD=Se("ChartNoAxesColumnIncreasing",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ED=Se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bp=Se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kD=Se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CD=Se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TD=Se("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _D=Se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H0=Se("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ND=Se("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $D=Se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MD=Se("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ID=Se("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RD=Se("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pk=Se("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DD=Se("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LD=Se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FD=Se("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BD=Se("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zD=Se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const UD=Se("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const WD=Se("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bf=Se("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const HD=Se("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const VD=Se("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const GD=Se("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),G0="-",KD=e=>{const t=YD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(G0);return s[0]===""&&s.length!==1&&s.shift(),Ak(s,t)||qD(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},Ak=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Ak(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(G0);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},qw=/^\[(.+)\]$/,qD=e=>{if(qw.test(e)){const t=qw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},YD=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return QD(Object.entries(e.classGroups),n).forEach(([o,a])=>{Kg(a,r,o,t)}),r},Kg=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Yw(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(XD(i)){Kg(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{Kg(a,Yw(t,o),n,r)})})},Yw=(e,t)=>{let n=e;return t.split(G0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},XD=e=>e.isThemeGetter,QD=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,ZD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},Ek="!",JD=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let c=0,d=0,f;for(let v=0;vd?f-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},eL=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},tL=e=>({cache:ZD(e.cacheSize),parseClassName:JD(e),...KD(e)}),nL=/\s+/,rL=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(nL);let s="";for(let l=a.length-1;l>=0;l-=1){const c=a[l],{modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:h}=n(c);let y=!!h,m=r(y?p.substring(0,h):p);if(!m){if(!y){s=c+(s.length>0?" "+s:s);continue}if(m=r(p),!m){s=c+(s.length>0?" "+s:s);continue}y=!1}const v=eL(d).join(":"),x=f?v+Ek:v,g=x+m;if(o.includes(g))continue;o.push(g);const b=i(m,y);for(let w=0;w0?" "+s:s)}return s};function iL(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(d),e());return n=tL(c),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const c=r(l);if(c)return c;const d=rL(l,n);return i(l,d),d}return function(){return o(iL.apply(null,arguments))}}const Ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ck=/^\[(?:([a-z-]+):)?(.+)\]$/i,aL=/^\d+\/\d+$/,sL=new Set(["px","full","screen"]),lL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cL=/\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$/,uL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gr=e=>wa(e)||sL.has(e)||aL.test(e),Yr=e=>Os(e,"length",bL),wa=e=>!!e&&!Number.isNaN(Number(e)),cm=e=>Os(e,"number",wa),nl=e=>!!e&&Number.isInteger(Number(e)),pL=e=>e.endsWith("%")&&wa(e.slice(0,-1)),le=e=>Ck.test(e),Xr=e=>lL.test(e),hL=new Set(["length","size","percentage"]),mL=e=>Os(e,hL,Tk),gL=e=>Os(e,"position",Tk),vL=new Set(["image","url"]),yL=e=>Os(e,vL,SL),xL=e=>Os(e,"",wL),rl=()=>!0,Os=(e,t,n)=>{const r=Ck.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},bL=e=>cL.test(e)&&!uL.test(e),Tk=()=>!1,wL=e=>fL.test(e),SL=e=>dL.test(e),jL=()=>{const e=Ie("colors"),t=Ie("spacing"),n=Ie("blur"),r=Ie("brightness"),i=Ie("borderColor"),o=Ie("borderRadius"),a=Ie("borderSpacing"),s=Ie("borderWidth"),l=Ie("contrast"),c=Ie("grayscale"),d=Ie("hueRotate"),f=Ie("invert"),p=Ie("gap"),h=Ie("gradientColorStops"),y=Ie("gradientColorStopPositions"),m=Ie("inset"),v=Ie("margin"),x=Ie("opacity"),g=Ie("padding"),b=Ie("saturate"),w=Ie("scale"),S=Ie("sepia"),O=Ie("skew"),P=Ie("space"),A=Ie("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",le,t],k=()=>[le,t],I=()=>["",gr,Yr],$=()=>["auto",wa,le],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",le],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[wa,le];return{cacheSize:500,separator:":",theme:{colors:[rl],spacing:[gr,Yr],blur:["none","",Xr,le],brightness:B(),borderColor:[e],borderRadius:["none","","full",Xr,le],borderSpacing:k(),borderWidth:I(),contrast:B(),grayscale:D(),hueRotate:B(),invert:D(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[pL,Yr],inset:N(),margin:N(),opacity:B(),padding:k(),saturate:B(),scale:B(),sepia:D(),skew:B(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[Xr]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:[...R(),le]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",nl,le]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",nl,le]}],"grid-cols":[{"grid-cols":[rl]}],"col-start-end":[{col:["auto",{span:["full",nl,le]},le]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[rl]}],"row-start-end":[{row:["auto",{span:[nl,le]},le]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",le,t]}],"min-w":[{"min-w":[le,t,"min","max","fit"]}],"max-w":[{"max-w":[le,t,"none","full","min","max","fit","prose",{screen:[Xr]},Xr]}],h:[{h:[le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xr,Yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cm]}],"font-family":[{font:[rl]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",le]}],"line-clamp":[{"line-clamp":["none",wa,cm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gr,le]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gr,Yr]}],"underline-offset":[{"underline-offset":["auto",gr,le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],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",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),gL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:M()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[gr,le]}],"outline-w":[{outline:[gr,Yr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[gr,Yr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xr,xL]}],"shadow-color":[{shadow:[rl]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xr,le]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[nl,le]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[gr,Yr,cm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},OL=oL(jL);function pe(...e){return OL(me(e))}const PL=vD,_k=j.forwardRef(({className:e,...t},n)=>u.jsx(vk,{ref:n,className:pe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));_k.displayName=vk.displayName;const AL=xp("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"}}),Nk=j.forwardRef(({className:e,variant:t,...n},r)=>u.jsx(yk,{ref:r,className:pe(AL({variant:t}),e),...n}));Nk.displayName=yk.displayName;const EL=j.forwardRef(({className:e,...t},n)=>u.jsx(wk,{ref:n,className:pe("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",e),...t}));EL.displayName=wk.displayName;const $k=j.forwardRef(({className:e,...t},n)=>u.jsx(Sk,{ref:n,className:pe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(V0,{className:"h-4 w-4"})}));$k.displayName=Sk.displayName;const Mk=j.forwardRef(({className:e,...t},n)=>u.jsx(xk,{ref:n,className:pe("text-sm font-semibold",e),...t}));Mk.displayName=xk.displayName;const Ik=j.forwardRef(({className:e,...t},n)=>u.jsx(bk,{ref:n,className:pe("text-sm opacity-90",e),...t}));Ik.displayName=bk.displayName;function kL(){const{toasts:e}=QE();return u.jsxs(PL,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return u.jsxs(Nk,{...o,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(Mk,{children:n}),r&&u.jsx(Ik,{children:r})]}),i,u.jsx($k,{})]},t)}),u.jsx(_k,{})]})}var Xw=["light","dark"],CL="(prefers-color-scheme: dark)",TL=j.createContext(void 0),_L={setTheme:e=>{},themes:[]},NL=()=>{var e;return(e=j.useContext(TL))!=null?e:_L};j.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let c=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=i?Xw.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(y,m=!1,v=!0)=>{let x=a?a[y]:y,g=m?y+"|| ''":`'${x}'`,b="";return i&&v&&!m&&Xw.includes(y)&&(b+=`d.style.colorScheme = '${y}';`),n==="class"?m||x?b+=`c.add(${g})`:b+="null":x&&(b+=`d[s](n,${g})`),b},h=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${CL}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}${c?"":"else{"+p(o,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${p(a?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${f}}catch(t){}}();`;return j.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var $L=e=>{switch(e){case"success":return RL;case"info":return LL;case"warning":return DL;case"error":return FL;default:return null}},ML=Array(12).fill(0),IL=({visible:e})=>E.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},E.createElement("div",{className:"sonner-spinner"},ML.map((t,n)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),RL=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),DL=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.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"})),LL=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),FL=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.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"})),BL=()=>{let[e,t]=E.useState(document.hidden);return E.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},qg=1,zL=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:qg++,o=this.toasts.find(s=>s.id===i),a=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(s=>s.id===i?(this.publish({...s,...e,id:i,title:n}),{...s,...e,id:i,dismissible:a,title:n}):s):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(async o=>{if(WL(o)&&!o.ok){i=!1;let a=typeof t.error=="function"?await t.error(`HTTP error! status: ${o.status}`):t.error,s=typeof t.description=="function"?await t.description(`HTTP error! status: ${o.status}`):t.description;this.create({id:n,type:"error",message:a,description:s})}else if(t.success!==void 0){i=!1;let a=typeof t.success=="function"?await t.success(o):t.success,s=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"success",message:a,description:s})}}).catch(async o=>{if(t.error!==void 0){i=!1;let a=typeof t.error=="function"?await t.error(o):t.error,s=typeof t.description=="function"?await t.description(o):t.description;this.create({id:n,type:"error",message:a,description:s})}}).finally(()=>{var o;i&&(this.dismiss(n),n=void 0),(o=t.finally)==null||o.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||qg++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Xt=new zL,UL=(e,t)=>{let n=(t==null?void 0:t.id)||qg++;return Xt.addToast({title:e,...t,id:n}),n},WL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",HL=UL,VL=()=>Xt.toasts;Object.assign(HL,{success:Xt.success,info:Xt.info,warning:Xt.warning,error:Xt.error,custom:Xt.custom,message:Xt.message,promise:Xt.promise,dismiss:Xt.dismiss,loading:Xt.loading},{getHistory:VL});function GL(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}GL(`: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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;background:var(--gray1);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}: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:0;right:0;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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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-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 Cu(e){return e.label!==void 0}var KL=3,qL="32px",YL=4e3,XL=356,QL=14,ZL=20,JL=200;function e3(...e){return e.filter(Boolean).join(" ")}var t3=e=>{var t,n,r,i,o,a,s,l,c,d;let{invert:f,toast:p,unstyled:h,interacting:y,setHeights:m,visibleToasts:v,heights:x,index:g,toasts:b,expanded:w,removeToast:S,defaultRichColors:O,closeButton:P,style:A,cancelButtonStyle:T,actionButtonStyle:_,className:N="",descriptionClassName:k="",duration:I,position:$,gap:R,loadingIcon:M,expandByDefault:L,classNames:C,icons:D,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:B,cn:U}=e,[K,ee]=E.useState(!1),[ve,re]=E.useState(!1),[X,ae]=E.useState(!1),[G,Y]=E.useState(!1),[Q,F]=E.useState(0),[he,ne]=E.useState(0),Ee=E.useRef(null),xe=E.useRef(null),Qe=g===0,Gt=g+1<=v,Ge=p.type,Dt=p.dismissible!==!1,mr=p.className||"",Ks=p.descriptionClassName||"",Yi=E.useMemo(()=>x.findIndex(se=>se.toastId===p.id)||0,[x,p.id]),au=E.useMemo(()=>{var se;return(se=p.closeButton)!=null?se:P},[p.closeButton,P]),Eb=E.useMemo(()=>p.duration||I||YL,[p.duration,I]),_h=E.useRef(0),Vo=E.useRef(0),kb=E.useRef(0),Go=E.useRef(null),[Cb,Y$]=$.split("-"),Tb=E.useMemo(()=>x.reduce((se,Me,_e)=>_e>=Yi?se:se+Me.height,0),[x,Yi]),_b=BL(),X$=p.invert||f,Nh=Ge==="loading";Vo.current=E.useMemo(()=>Yi*R+Tb,[Yi,Tb]),E.useEffect(()=>{ee(!0)},[]),E.useLayoutEffect(()=>{if(!K)return;let se=xe.current,Me=se.style.height;se.style.height="auto";let _e=se.getBoundingClientRect().height;se.style.height=Me,ne(_e),m(qn=>qn.find(Yn=>Yn.toastId===p.id)?qn.map(Yn=>Yn.toastId===p.id?{...Yn,height:_e}:Yn):[{toastId:p.id,height:_e,position:p.position},...qn])},[K,p.title,p.description,m,p.id]);let Kr=E.useCallback(()=>{re(!0),F(Vo.current),m(se=>se.filter(Me=>Me.toastId!==p.id)),setTimeout(()=>{S(p)},JL)},[p,S,m,Vo]);E.useEffect(()=>{if(p.promise&&Ge==="loading"||p.duration===1/0||p.type==="loading")return;let se,Me=Eb;return w||y||B&&_b?(()=>{if(kb.current<_h.current){let _e=new Date().getTime()-_h.current;Me=Me-_e}kb.current=new Date().getTime()})():Me!==1/0&&(_h.current=new Date().getTime(),se=setTimeout(()=>{var _e;(_e=p.onAutoClose)==null||_e.call(p,p),Kr()},Me)),()=>clearTimeout(se)},[w,y,L,p,Eb,Kr,p.promise,Ge,B,_b]),E.useEffect(()=>{let se=xe.current;if(se){let Me=se.getBoundingClientRect().height;return ne(Me),m(_e=>[{toastId:p.id,height:Me,position:p.position},..._e]),()=>m(_e=>_e.filter(qn=>qn.toastId!==p.id))}},[m,p.id]),E.useEffect(()=>{p.delete&&Kr()},[Kr,p.delete]);function Q$(){return D!=null&&D.loading?E.createElement("div",{className:"sonner-loader","data-visible":Ge==="loading"},D.loading):M?E.createElement("div",{className:"sonner-loader","data-visible":Ge==="loading"},M):E.createElement(IL,{visible:Ge==="loading"})}return E.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:xe,className:U(N,mr,C==null?void 0:C.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,C==null?void 0:C.default,C==null?void 0:C[Ge],(n=p==null?void 0:p.classNames)==null?void 0:n[Ge]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:O,"data-styled":!(p.jsx||p.unstyled||h),"data-mounted":K,"data-promise":!!p.promise,"data-removed":ve,"data-visible":Gt,"data-y-position":Cb,"data-x-position":Y$,"data-index":g,"data-front":Qe,"data-swiping":X,"data-dismissible":Dt,"data-type":Ge,"data-invert":X$,"data-swipe-out":G,"data-expanded":!!(w||L&&K),style:{"--index":g,"--toasts-before":g,"--z-index":b.length-g,"--offset":`${ve?Q:Vo.current}px`,"--initial-height":L?"auto":`${he}px`,...A,...p.style},onPointerDown:se=>{Nh||!Dt||(Ee.current=new Date,F(Vo.current),se.target.setPointerCapture(se.pointerId),se.target.tagName!=="BUTTON"&&(ae(!0),Go.current={x:se.clientX,y:se.clientY}))},onPointerUp:()=>{var se,Me,_e,qn;if(G||!Dt)return;Go.current=null;let Yn=Number(((se=xe.current)==null?void 0:se.style.getPropertyValue("--swipe-amount").replace("px",""))||0),su=new Date().getTime()-((Me=Ee.current)==null?void 0:Me.getTime()),Z$=Math.abs(Yn)/su;if(Math.abs(Yn)>=ZL||Z$>.11){F(Vo.current),(_e=p.onDismiss)==null||_e.call(p,p),Kr(),Y(!0);return}(qn=xe.current)==null||qn.style.setProperty("--swipe-amount","0px"),ae(!1)},onPointerMove:se=>{var Me;if(!Go.current||!Dt)return;let _e=se.clientY-Go.current.y,qn=se.clientX-Go.current.x,Yn=(Cb==="top"?Math.min:Math.max)(0,_e),su=se.pointerType==="touch"?10:2;Math.abs(Yn)>su?(Me=xe.current)==null||Me.style.setProperty("--swipe-amount",`${_e}px`):Math.abs(qn)>su&&(Go.current=null)}},au&&!p.jsx?E.createElement("button",{"aria-label":H,"data-disabled":Nh,"data-close-button":!0,onClick:Nh||!Dt?()=>{}:()=>{var se;Kr(),(se=p.onDismiss)==null||se.call(p,p)},className:U(C==null?void 0:C.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},E.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"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||E.isValidElement(p.title)?p.jsx||p.title:E.createElement(E.Fragment,null,Ge||p.icon||p.promise?E.createElement("div",{"data-icon":"",className:U(C==null?void 0:C.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Q$():null,p.type!=="loading"?p.icon||(D==null?void 0:D[Ge])||$L(Ge):null):null,E.createElement("div",{"data-content":"",className:U(C==null?void 0:C.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},E.createElement("div",{"data-title":"",className:U(C==null?void 0:C.title,(s=p==null?void 0:p.classNames)==null?void 0:s.title)},p.title),p.description?E.createElement("div",{"data-description":"",className:U(k,Ks,C==null?void 0:C.description,(l=p==null?void 0:p.classNames)==null?void 0:l.description)},p.description):null),E.isValidElement(p.cancel)?p.cancel:p.cancel&&Cu(p.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||T,onClick:se=>{var Me,_e;Cu(p.cancel)&&Dt&&((_e=(Me=p.cancel).onClick)==null||_e.call(Me,se),Kr())},className:U(C==null?void 0:C.cancelButton,(c=p==null?void 0:p.classNames)==null?void 0:c.cancelButton)},p.cancel.label):null,E.isValidElement(p.action)?p.action:p.action&&Cu(p.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||_,onClick:se=>{var Me,_e;Cu(p.action)&&(se.defaultPrevented||((_e=(Me=p.action).onClick)==null||_e.call(Me,se),Kr()))},className:U(C==null?void 0:C.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function Qw(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var n3=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:s,theme:l="light",richColors:c,duration:d,style:f,visibleToasts:p=KL,toastOptions:h,dir:y=Qw(),gap:m=QL,loadingIcon:v,icons:x,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:b,cn:w=e3}=e,[S,O]=E.useState([]),P=E.useMemo(()=>Array.from(new Set([n].concat(S.filter(B=>B.position).map(B=>B.position)))),[S,n]),[A,T]=E.useState([]),[_,N]=E.useState(!1),[k,I]=E.useState(!1),[$,R]=E.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=E.useRef(null),L=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=E.useRef(null),D=E.useRef(!1),H=E.useCallback(B=>{var U;(U=S.find(K=>K.id===B.id))!=null&&U.delete||Xt.dismiss(B.id),O(K=>K.filter(({id:ee})=>ee!==B.id))},[S]);return E.useEffect(()=>Xt.subscribe(B=>{if(B.dismiss){O(U=>U.map(K=>K.id===B.id?{...K,delete:!0}:K));return}setTimeout(()=>{YE.flushSync(()=>{O(U=>{let K=U.findIndex(ee=>ee.id===B.id);return K!==-1?[...U.slice(0,K),{...U[K],...B},...U.slice(K+1)]:[B,...U]})})})}),[]),E.useEffect(()=>{if(l!=="system"){R(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:B})=>{R(B?"dark":"light")})},[l]),E.useEffect(()=>{S.length<=1&&N(!1)},[S]),E.useEffect(()=>{let B=U=>{var K,ee;r.every(ve=>U[ve]||U.code===ve)&&(N(!0),(K=M.current)==null||K.focus()),U.code==="Escape"&&(document.activeElement===M.current||(ee=M.current)!=null&&ee.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[r]),E.useEffect(()=>{if(M.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,D.current=!1)}},[M.current]),S.length?E.createElement("section",{"aria-label":`${g} ${L}`,tabIndex:-1},P.map((B,U)=>{var K;let[ee,ve]=B.split("-");return E.createElement("ol",{key:B,dir:y==="auto"?Qw():y,tabIndex:-1,ref:M,className:a,"data-sonner-toaster":!0,"data-theme":$,"data-y-position":ee,"data-x-position":ve,style:{"--front-toast-height":`${((K=A[0])==null?void 0:K.height)||0}px`,"--offset":typeof s=="number"?`${s}px`:s||qL,"--width":`${XL}px`,"--gap":`${m}px`,...f},onBlur:re=>{D.current&&!re.currentTarget.contains(re.relatedTarget)&&(D.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||D.current||(D.current=!0,C.current=re.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{k||N(!1)},onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},S.filter(re=>!re.position&&U===0||re.position===B).map((re,X)=>{var ae,G;return E.createElement(t3,{key:re.id,icons:x,index:X,toast:re,defaultRichColors:c,duration:(ae=h==null?void 0:h.duration)!=null?ae:d,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:t,visibleToasts:p,closeButton:(G=h==null?void 0:h.closeButton)!=null?G:o,interacting:k,position:B,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:H,toasts:S.filter(Y=>Y.position==re.position),heights:A.filter(Y=>Y.position==re.position),setHeights:T,expandByDefault:i,gap:m,loadingIcon:v,expanded:_,pauseWhenPageIsHidden:b,cn:w})}))})):null};const r3=({...e})=>{const{theme:t="system"}=NL();return u.jsx(n3,{theme:t,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"}},...e})};var i3=GP.useId||(()=>{}),o3=0;function Ps(e){const[t,n]=j.useState(i3());return xt(()=>{n(r=>r??String(o3++))},[e]),t?`radix-${t}`:""}const a3=["top","right","bottom","left"],Ti=Math.min,Jt=Math.max,zf=Math.round,Tu=Math.floor,_i=e=>({x:e,y:e}),s3={left:"right",right:"left",bottom:"top",top:"bottom"},l3={start:"end",end:"start"};function Yg(e,t,n){return Jt(e,Ti(t,n))}function Ir(e,t){return typeof e=="function"?e(t):e}function Rr(e){return e.split("-")[0]}function As(e){return e.split("-")[1]}function K0(e){return e==="x"?"y":"x"}function q0(e){return e==="y"?"height":"width"}function Ni(e){return["top","bottom"].includes(Rr(e))?"y":"x"}function Y0(e){return K0(Ni(e))}function c3(e,t,n){n===void 0&&(n=!1);const r=As(e),i=Y0(e),o=q0(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Uf(a)),[a,Uf(a)]}function u3(e){const t=Uf(e);return[Xg(e),t,Xg(t)]}function Xg(e){return e.replace(/start|end/g,t=>l3[t])}function f3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function d3(e,t,n,r){const i=As(e);let o=f3(Rr(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Xg)))),o}function Uf(e){return e.replace(/left|right|bottom|top/g,t=>s3[t])}function p3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rk(e){return typeof e!="number"?p3(e):{top:e,right:e,bottom:e,left:e}}function Wf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Zw(e,t,n){let{reference:r,floating:i}=e;const o=Ni(t),a=Y0(t),s=q0(a),l=Rr(t),c=o==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(As(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const h3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Zw(c,r,l),p=r,h={},y=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Ir(e,t)||{};if(c==null)return{};const f=Rk(d),p={x:n,y:r},h=Y0(i),y=q0(h),m=await a.getDimensions(c),v=h==="y",x=v?"top":"left",g=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=o.reference[y]+o.reference[h]-p[h]-o.floating[y],S=p[h]-o.reference[h],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let P=O?O[b]:0;(!P||!await(a.isElement==null?void 0:a.isElement(O)))&&(P=s.floating[b]||o.floating[y]);const A=w/2-S/2,T=P/2-m[y]/2-1,_=Ti(f[x],T),N=Ti(f[g],T),k=_,I=P-m[y]-N,$=P/2-m[y]/2+A,R=Yg(k,$,I),M=!l.arrow&&As(i)!=null&&$!==R&&o.reference[y]/2-($$<=0)){var N,k;const $=(((N=o.flip)==null?void 0:N.index)||0)+1,R=P[$];if(R)return{data:{index:$,overflows:_},reset:{placement:R}};let M=(k=_.filter(L=>L.overflows[0]<=0).sort((L,C)=>L.overflows[1]-C.overflows[1])[0])==null?void 0:k.placement;if(!M)switch(h){case"bestFit":{var I;const L=(I=_.filter(C=>{if(O){const D=Ni(C.placement);return D===g||D==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(D=>D>0).reduce((D,H)=>D+H,0)]).sort((C,D)=>C[1]-D[1])[0])==null?void 0:I[0];L&&(M=L);break}case"initialPlacement":M=s;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function Jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function e1(e){return a3.some(t=>e[t]>=0)}const v3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ir(e,t);switch(r){case"referenceHidden":{const o=await tc(t,{...i,elementContext:"reference"}),a=Jw(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:e1(a)}}}case"escaped":{const o=await tc(t,{...i,altBoundary:!0}),a=Jw(o,n.floating);return{data:{escapedOffsets:a,escaped:e1(a)}}}default:return{}}}}};async function y3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Rr(n),s=As(n),l=Ni(n)==="y",c=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,f=Ir(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof y=="number"&&(h=s==="end"?y*-1:y),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const x3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await y3(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},b3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x,y:g}=v;return{x,y:g}}},...l}=Ir(e,t),c={x:n,y:r},d=await tc(t,l),f=Ni(Rr(i)),p=K0(f);let h=c[p],y=c[f];if(o){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",g=h+d[v],b=h-d[x];h=Yg(g,h,b)}if(a){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",g=y+d[v],b=y-d[x];y=Yg(g,y,b)}const m=s.fn({...t,[p]:h,[f]:y});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[f]:a}}}}}},w3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ir(e,t),d={x:n,y:r},f=Ni(i),p=K0(f);let h=d[p],y=d[f];const m=Ir(s,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=p==="y"?"height":"width",w=o.reference[p]-o.floating[b]+v.mainAxis,S=o.reference[p]+o.reference[b]-v.mainAxis;hS&&(h=S)}if(c){var x,g;const b=p==="y"?"width":"height",w=["top","left"].includes(Rr(i)),S=o.reference[f]-o.floating[b]+(w&&((x=a.offset)==null?void 0:x[f])||0)+(w?0:v.crossAxis),O=o.reference[f]+o.reference[b]+(w?0:((g=a.offset)==null?void 0:g[f])||0)-(w?v.crossAxis:0);yO&&(y=O)}return{[p]:h,[f]:y}}}},S3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Ir(e,t),d=await tc(t,c),f=Rr(i),p=As(i),h=Ni(i)==="y",{width:y,height:m}=o.floating;let v,x;f==="top"||f==="bottom"?(v=f,x=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(x=f,v=p==="end"?"top":"bottom");const g=m-d.top-d.bottom,b=y-d.left-d.right,w=Ti(m-d[v],g),S=Ti(y-d[x],b),O=!t.middlewareData.shift;let P=w,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=g),O&&!p){const _=Jt(d.left,0),N=Jt(d.right,0),k=Jt(d.top,0),I=Jt(d.bottom,0);h?A=y-2*(_!==0||N!==0?_+N:Jt(d.left,d.right)):P=m-2*(k!==0||I!==0?k+I:Jt(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:P});const T=await a.getDimensions(s.floating);return y!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function wp(){return typeof window<"u"}function Es(e){return Dk(e)?(e.nodeName||"").toLowerCase():"#document"}function rn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pr(e){var t;return(t=(Dk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dk(e){return wp()?e instanceof Node||e instanceof rn(e).Node:!1}function Wn(e){return wp()?e instanceof Element||e instanceof rn(e).Element:!1}function fr(e){return wp()?e instanceof HTMLElement||e instanceof rn(e).HTMLElement:!1}function t1(e){return!wp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rn(e).ShadowRoot}function Qc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j3(e){return["table","td","th"].includes(Es(e))}function Sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function X0(e){const t=Q0(),n=Wn(e)?Hn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function O3(e){let t=$i(e);for(;fr(t)&&!Ha(t);){if(X0(t))return t;if(Sp(t))return null;t=$i(t)}return null}function Q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ha(e){return["html","body","#document"].includes(Es(e))}function Hn(e){return rn(e).getComputedStyle(e)}function jp(e){return Wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $i(e){if(Es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||t1(e)&&e.host||pr(e);return t1(t)?t.host:t}function Lk(e){const t=$i(e);return Ha(t)?e.ownerDocument?e.ownerDocument.body:e.body:fr(t)&&Qc(t)?t:Lk(t)}function nc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Lk(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=rn(i);if(o){const s=Qg(a);return t.concat(a,a.visualViewport||[],Qc(i)?i:[],s&&n?nc(s):[])}return t.concat(i,nc(i,[],n))}function Qg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fk(e){const t=Hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=fr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=zf(n)!==o||zf(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Z0(e){return Wn(e)?e:e.contextElement}function Sa(e){const t=Z0(e);if(!fr(t))return _i(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Fk(t);let a=(o?zf(n.width):n.width)/r,s=(o?zf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const P3=_i(0);function Bk(e){const t=rn(e);return!Q0()||!t.visualViewport?P3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function A3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rn(e)?!1:t}function Eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Z0(e);let a=_i(1);t&&(r?Wn(r)&&(a=Sa(r)):a=Sa(e));const s=A3(o,n,r)?Bk(o):_i(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const p=rn(o),h=r&&Wn(r)?rn(r):r;let y=p,m=Qg(y);for(;m&&r&&h!==y;){const v=Sa(m),x=m.getBoundingClientRect(),g=Hn(m),b=x.left+(m.clientLeft+parseFloat(g.paddingLeft))*v.x,w=x.top+(m.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=b,c+=w,y=rn(m),m=Qg(y)}}return Wf({width:d,height:f,x:l,y:c})}function E3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=pr(r),s=t?Sp(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=_i(1);const d=_i(0),f=fr(r);if((f||!f&&!o)&&((Es(r)!=="body"||Qc(a))&&(l=jp(r)),fr(r))){const p=Eo(r);c=Sa(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function k3(e){return Array.from(e.getClientRects())}function Zg(e,t){const n=jp(e).scrollLeft;return t?t.left+n:Eo(pr(e)).left+n}function C3(e){const t=pr(e),n=jp(e),r=e.ownerDocument.body,i=Jt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Jt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Zg(e);const s=-n.scrollTop;return Hn(r).direction==="rtl"&&(a+=Jt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function T3(e,t){const n=rn(e),r=pr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const c=Q0();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function _3(e,t){const n=Eo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=fr(e)?Sa(e):_i(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function n1(e,t,n){let r;if(t==="viewport")r=T3(e,n);else if(t==="document")r=C3(pr(e));else if(Wn(t))r=_3(t,n);else{const i=Bk(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Wf(r)}function zk(e,t){const n=$i(e);return n===t||!Wn(n)||Ha(n)?!1:Hn(n).position==="fixed"||zk(n,t)}function N3(e,t){const n=t.get(e);if(n)return n;let r=nc(e,[],!1).filter(s=>Wn(s)&&Es(s)!=="body"),i=null;const o=Hn(e).position==="fixed";let a=o?$i(e):e;for(;Wn(a)&&!Ha(a);){const s=Hn(a),l=X0(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Qc(a)&&!l&&zk(e,a))?r=r.filter(d=>d!==a):i=s,a=$i(a)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Sp(t)?[]:N3(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,d)=>{const f=n1(t,d,i);return c.top=Jt(f.top,c.top),c.right=Ti(f.right,c.right),c.bottom=Ti(f.bottom,c.bottom),c.left=Jt(f.left,c.left),c},n1(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function M3(e){const{width:t,height:n}=Fk(e);return{width:t,height:n}}function I3(e,t,n){const r=fr(t),i=pr(t),o=n==="fixed",a=Eo(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=_i(0);if(r||!r&&!o)if((Es(t)!=="body"||Qc(i))&&(s=jp(t)),r){const h=Eo(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&(l.x=Zg(i));let c=0,d=0;if(i&&!r&&!o){const h=i.getBoundingClientRect();d=h.top+s.scrollTop,c=h.left+s.scrollLeft-Zg(i,h)}const f=a.left+s.scrollLeft-l.x-c,p=a.top+s.scrollTop-l.y-d;return{x:f,y:p,width:a.width,height:a.height}}function um(e){return Hn(e).position==="static"}function r1(e,t){if(!fr(e)||Hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pr(e)===n&&(n=n.ownerDocument.body),n}function Uk(e,t){const n=rn(e);if(Sp(e))return n;if(!fr(e)){let i=$i(e);for(;i&&!Ha(i);){if(Wn(i)&&!um(i))return i;i=$i(i)}return n}let r=r1(e,t);for(;r&&j3(r)&&um(r);)r=r1(r,t);return r&&Ha(r)&&um(r)&&!X0(r)?n:r||O3(e)||n}const R3=async function(e){const t=this.getOffsetParent||Uk,n=this.getDimensions,r=await n(e.floating);return{reference:I3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function D3(e){return Hn(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:E3,getDocumentElement:pr,getClippingRect:$3,getOffsetParent:Uk,getElementRects:R3,getClientRects:k3,getDimensions:M3,getScale:Sa,isElement:Wn,isRTL:D3};function F3(e,t){let n=null,r;const i=pr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(s||t(),!f||!p)return;const h=Tu(d),y=Tu(i.clientWidth-(c+f)),m=Tu(i.clientHeight-(d+p)),v=Tu(c),g={rootMargin:-h+"px "+-y+"px "+-m+"px "+-v+"px",threshold:Jt(0,Ti(1,l))||1};let b=!0;function w(S){const O=S[0].intersectionRatio;if(O!==l){if(!b)return a();O?a(!1,O):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(w,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,g)}n.observe(e)}return a(!0),o}function B3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Z0(e),d=i||o?[...c?nc(c):[],...nc(t)]:[];d.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const f=c&&s?F3(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(x=>{let[g]=x;g&&g.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let y,m=l?Eo(e):null;l&&v();function v(){const x=Eo(e);m&&(x.x!==m.x||x.y!==m.y||x.width!==m.width||x.height!==m.height)&&n(),m=x,y=requestAnimationFrame(v)}return n(),()=>{var x;d.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const z3=x3,U3=b3,W3=g3,H3=S3,V3=v3,i1=m3,G3=w3,K3=(e,t,n)=>{const r=new Map,i={platform:L3,...n},o={...i.platform,_c:r};return h3(e,t,{...i,platform:o})};var ff=typeof document<"u"?j.useLayoutEffect:j.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Hf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function o1(e,t){const n=Wk(e);return Math.round(t*n)/n}function fm(e){const t=j.useRef(e);return ff(()=>{t.current=e}),t}function q3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=j.useState(r);Hf(p,r)||h(r);const[y,m]=j.useState(null),[v,x]=j.useState(null),g=j.useCallback(C=>{C!==O.current&&(O.current=C,m(C))},[]),b=j.useCallback(C=>{C!==P.current&&(P.current=C,x(C))},[]),w=o||y,S=a||v,O=j.useRef(null),P=j.useRef(null),A=j.useRef(d),T=l!=null,_=fm(l),N=fm(i),k=fm(c),I=j.useCallback(()=>{if(!O.current||!P.current)return;const C={placement:t,strategy:n,middleware:p};N.current&&(C.platform=N.current),K3(O.current,P.current,C).then(D=>{const H={...D,isPositioned:k.current!==!1};$.current&&!Hf(A.current,H)&&(A.current=H,Lo.flushSync(()=>{f(H)}))})},[p,t,n,N,k]);ff(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(C=>({...C,isPositioned:!1})))},[c]);const $=j.useRef(!1);ff(()=>($.current=!0,()=>{$.current=!1}),[]),ff(()=>{if(w&&(O.current=w),S&&(P.current=S),w&&S){if(_.current)return _.current(w,S,I);I()}},[w,S,I,_,T]);const R=j.useMemo(()=>({reference:O,floating:P,setReference:g,setFloating:b}),[g,b]),M=j.useMemo(()=>({reference:w,floating:S}),[w,S]),L=j.useMemo(()=>{const C={position:n,left:0,top:0};if(!M.floating)return C;const D=o1(M.floating,d.x),H=o1(M.floating,d.y);return s?{...C,transform:"translate("+D+"px, "+H+"px)",...Wk(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:H}},[n,s,M.floating,d.x,d.y]);return j.useMemo(()=>({...d,update:I,refs:R,elements:M,floatingStyles:L}),[d,I,R,M,L])}const Y3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i1({element:r.current,padding:i}).fn(n):{}:r?i1({element:r,padding:i}).fn(n):{}}}},X3=(e,t)=>({...z3(e),options:[e,t]}),Q3=(e,t)=>({...U3(e),options:[e,t]}),Z3=(e,t)=>({...G3(e),options:[e,t]}),J3=(e,t)=>({...W3(e),options:[e,t]}),e4=(e,t)=>({...H3(e),options:[e,t]}),t4=(e,t)=>({...V3(e),options:[e,t]}),n4=(e,t)=>({...Y3(e),options:[e,t]});var r4="Arrow",Hk=j.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return u.jsx(ye.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hk.displayName=r4;var i4=Hk;function o4(e,t=[]){let n=[];function r(o,a){const s=j.createContext(a),l=n.length;n=[...n,a];function c(f){const{scope:p,children:h,...y}=f,m=(p==null?void 0:p[e][l])||s,v=j.useMemo(()=>y,Object.values(y));return u.jsx(m.Provider,{value:v,children:h})}function d(f,p){const h=(p==null?void 0:p[e][l])||s,y=j.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(a=>j.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return j.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,a4(i,...t)]}function a4(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(o)[`__scope${c}`];return{...s,...f}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Vk(e){const[t,n]=j.useState(void 0);return xt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var J0="Popper",[Gk,Op]=o4(J0),[s4,Kk]=Gk(J0),qk=e=>{const{__scopePopper:t,children:n}=e,[r,i]=j.useState(null);return u.jsx(s4,{scope:t,anchor:r,onAnchorChange:i,children:n})};qk.displayName=J0;var Yk="PopperAnchor",Xk=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Kk(Yk,n),a=j.useRef(null),s=Be(t,a);return j.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:u.jsx(ye.div,{...i,ref:s})});Xk.displayName=Yk;var ex="PopperContent",[l4,c4]=Gk(ex),Qk=j.forwardRef((e,t)=>{var X,ae,G,Y,Q,F;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:y,...m}=e,v=Kk(ex,n),[x,g]=j.useState(null),b=Be(t,he=>g(he)),[w,S]=j.useState(null),O=Vk(w),P=(O==null?void 0:O.width)??0,A=(O==null?void 0:O.height)??0,T=r+(o!=="center"?"-"+o:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(c)?c:[c],k=N.length>0,I={padding:_,boundary:N.filter(f4),altBoundary:k},{refs:$,floatingStyles:R,placement:M,isPositioned:L,middlewareData:C}=q3({strategy:"fixed",placement:T,whileElementsMounted:(...he)=>B3(...he,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[X3({mainAxis:i+A,alignmentAxis:a}),l&&Q3({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Z3():void 0,...I}),l&&J3({...I}),e4({...I,apply:({elements:he,rects:ne,availableWidth:Ee,availableHeight:xe})=>{const{width:Qe,height:Gt}=ne.reference,Ge=he.floating.style;Ge.setProperty("--radix-popper-available-width",`${Ee}px`),Ge.setProperty("--radix-popper-available-height",`${xe}px`),Ge.setProperty("--radix-popper-anchor-width",`${Qe}px`),Ge.setProperty("--radix-popper-anchor-height",`${Gt}px`)}}),w&&n4({element:w,padding:s}),d4({arrowWidth:P,arrowHeight:A}),p&&t4({strategy:"referenceHidden",...I})]}),[D,H]=eC(M),B=an(y);xt(()=>{L&&(B==null||B())},[L,B]);const U=(X=C.arrow)==null?void 0:X.x,K=(ae=C.arrow)==null?void 0:ae.y,ee=((G=C.arrow)==null?void 0:G.centerOffset)!==0,[ve,re]=j.useState();return xt(()=>{x&&re(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:L?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(Y=C.transformOrigin)==null?void 0:Y.x,(Q=C.transformOrigin)==null?void 0:Q.y].join(" "),...((F=C.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(l4,{scope:n,placedSide:D,onArrowChange:S,arrowX:U,arrowY:K,shouldHideArrow:ee,children:u.jsx(ye.div,{"data-side":D,"data-align":H,...m,ref:b,style:{...m.style,animation:L?void 0:"none"}})})})});Qk.displayName=ex;var Zk="PopperArrow",u4={top:"bottom",right:"left",bottom:"top",left:"right"},Jk=j.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=c4(Zk,r),a=u4[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(i4,{...i,ref:n,style:{...i.style,display:"block"}})})});Jk.displayName=Zk;function f4(e){return e!==null}var d4=e=>({name:"transformOrigin",options:e,fn(t){var v,x,g;const{placement:n,rects:r,middlewareData:i}=t,a=((v=i.arrow)==null?void 0:v.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,d]=eC(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((x=i.arrow)==null?void 0:x.x)??0)+s/2,h=(((g=i.arrow)==null?void 0:g.y)??0)+l/2;let y="",m="";return c==="bottom"?(y=a?f:`${p}px`,m=`${-l}px`):c==="top"?(y=a?f:`${p}px`,m=`${r.floating.height+l}px`):c==="right"?(y=`${-l}px`,m=a?f:`${h}px`):c==="left"&&(y=`${r.floating.width+l}px`,m=a?f:`${h}px`),{data:{x:y,y:m}}}});function eC(e){const[t,n="center"]=e.split("-");return[t,n]}var tC=qk,nC=Xk,rC=Qk,iC=Jk,[Pp,ede]=js("Tooltip",[Op]),Ap=Op(),oC="TooltipProvider",p4=700,Jg="tooltip.open",[h4,tx]=Pp(oC),aC=e=>{const{__scopeTooltip:t,delayDuration:n=p4,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=j.useState(!0),l=j.useRef(!1),c=j.useRef(0);return j.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(h4,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:j.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:j.useCallback(d=>{l.current=d},[]),disableHoverableContent:i,children:o})};aC.displayName=oC;var Ep="Tooltip",[m4,kp]=Pp(Ep),sC=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tx(Ep,e.__scopeTooltip),c=Ap(t),[d,f]=j.useState(null),p=Ps(),h=j.useRef(0),y=a??l.disableHoverableContent,m=s??l.delayDuration,v=j.useRef(!1),[x=!1,g]=Ci({prop:r,defaultProp:i,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(Jg))):l.onClose(),o==null||o(P)}}),b=j.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),w=j.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,g(!0)},[g]),S=j.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g(!1)},[g]),O=j.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,g(!0),h.current=0},m)},[m,g]);return j.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(tC,{...c,children:u.jsx(m4,{scope:t,contentId:p,open:x,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:j.useCallback(()=>{l.isOpenDelayed?O():w()},[l.isOpenDelayed,O,w]),onTriggerLeave:j.useCallback(()=>{y?S():(window.clearTimeout(h.current),h.current=0)},[S,y]),onOpen:w,onClose:S,disableHoverableContent:y,children:n})})};sC.displayName=Ep;var ev="TooltipTrigger",lC=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=kp(ev,n),o=tx(ev,n),a=Ap(n),s=j.useRef(null),l=Be(t,s,i.onTriggerChange),c=j.useRef(!1),d=j.useRef(!1),f=j.useCallback(()=>c.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(nC,{asChild:!0,...a,children:u.jsx(ye.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:de(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:de(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:de(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:de(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:de(e.onBlur,i.onClose),onClick:de(e.onClick,i.onClose)})})});lC.displayName=ev;var g4="TooltipPortal",[tde,v4]=Pp(g4,{forceMount:void 0}),Va="TooltipContent",cC=j.forwardRef((e,t)=>{const n=v4(Va,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=kp(Va,e.__scopeTooltip);return u.jsx(gp,{present:r||a.open,children:a.disableHoverableContent?u.jsx(uC,{side:i,...o,ref:t}):u.jsx(y4,{side:i,...o,ref:t})})}),y4=j.forwardRef((e,t)=>{const n=kp(Va,e.__scopeTooltip),r=tx(Va,e.__scopeTooltip),i=j.useRef(null),o=Be(t,i),[a,s]=j.useState(null),{trigger:l,onClose:c}=n,d=i.current,{onPointerInTransitChange:f}=r,p=j.useCallback(()=>{s(null),f(!1)},[f]),h=j.useCallback((y,m)=>{const v=y.currentTarget,x={x:y.clientX,y:y.clientY},g=S4(x,v.getBoundingClientRect()),b=j4(x,g),w=O4(m.getBoundingClientRect()),S=A4([...b,...w]);s(S),f(!0)},[f]);return j.useEffect(()=>()=>p(),[p]),j.useEffect(()=>{if(l&&d){const y=v=>h(v,d),m=v=>h(v,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",m)}}},[l,d,h,p]),j.useEffect(()=>{if(a){const y=m=>{const v=m.target,x={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),b=!P4(x,a);g?p():b&&(p(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,a,c,p]),u.jsx(uC,{...e,ref:o})}),[x4,b4]=Pp(Ep,{isInside:!1}),uC=j.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=kp(Va,n),c=Ap(n),{onClose:d}=l;return j.useEffect(()=>(document.addEventListener(Jg,d),()=>document.removeEventListener(Jg,d)),[d]),j.useEffect(()=>{if(l.trigger){const f=p=>{const h=p.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(mp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(rC,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.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:[u.jsx(JE,{children:r}),u.jsx(x4,{scope:n,isInside:!0,children:u.jsx(JR,{id:l.contentId,role:"tooltip",children:i||r})})]})})});cC.displayName=Va;var fC="TooltipArrow",w4=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ap(n);return b4(fC,n).isInside?null:u.jsx(iC,{...i,...r,ref:t})});w4.displayName=fC;function S4(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function j4(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function O4(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function P4(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;or!=d>r&&n<(c-s)*(r-l)/(d-l)+s&&(i=!i)}return i}function A4(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),E4(t)}function E4(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var k4=aC,C4=sC,T4=lC,dC=cC;const _4=k4,nx=C4,rx=T4,Cp=j.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(dC,{ref:r,sideOffset:t,className:pe("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",e),...n}));Cp.displayName=dC.displayName;var Tp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_p=typeof window>"u"||"Deno"in globalThis;function _n(){}function N4(e,t){return typeof e=="function"?e(t):e}function $4(e){return typeof e=="number"&&e>=0&&e!==1/0}function M4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function a1(e,t){return typeof e=="function"?e(t):e}function I4(e,t){return typeof e=="function"?e(t):e}function s1(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==ix(a,t.options))return!1}else if(!ic(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function l1(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(rc(t.options.mutationKey)!==rc(o))return!1}else if(!ic(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ix(e,t){return((t==null?void 0:t.queryKeyHashFn)||rc)(e)}function rc(e){return JSON.stringify(e,(t,n)=>tv(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ic(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ic(e[n],t[n])):!1}function pC(e,t){if(e===t)return e;const n=c1(e)&&c1(t);if(n||tv(e)&&tv(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function D4(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pC(e,t):t}function L4(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function F4(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ox=Symbol();function hC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ox?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var fo,ai,ka,kP,B4=(kP=class extends Tp{constructor(){super();Oe(this,fo);Oe(this,ai);Oe(this,ka);fe(this,ka,t=>{if(!_p&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){W(this,ai)||this.setEventListener(W(this,ka))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,ai))==null||t.call(this),fe(this,ai,void 0))}setEventListener(t){var n;fe(this,ka,t),(n=W(this,ai))==null||n.call(this),fe(this,ai,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){W(this,fo)!==t&&(fe(this,fo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof W(this,fo)=="boolean"?W(this,fo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},fo=new WeakMap,ai=new WeakMap,ka=new WeakMap,kP),mC=new B4,Ca,si,Ta,CP,z4=(CP=class extends Tp{constructor(){super();Oe(this,Ca,!0);Oe(this,si);Oe(this,Ta);fe(this,Ta,t=>{if(!_p&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){W(this,si)||this.setEventListener(W(this,Ta))}onUnsubscribe(){var t;this.hasListeners()||((t=W(this,si))==null||t.call(this),fe(this,si,void 0))}setEventListener(t){var n;fe(this,Ta,t),(n=W(this,si))==null||n.call(this),fe(this,si,t(this.setOnline.bind(this)))}setOnline(t){W(this,Ca)!==t&&(fe(this,Ca,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return W(this,Ca)}},Ca=new WeakMap,si=new WeakMap,Ta=new WeakMap,CP),Vf=new z4;function U4(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function W4(e){return Math.min(1e3*2**e,3e4)}function gC(e){return(e??"online")==="online"?Vf.isOnline():!0}var vC=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dm(e){return e instanceof vC}function yC(e){let t=!1,n=0,r=!1,i;const o=U4(),a=m=>{var v;r||(p(new vC(m)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>mC.isFocused()&&(e.networkMode==="always"||Vf.isOnline())&&e.canRun(),d=()=>gC(e.networkMode)&&e.canRun(),f=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),i==null||i(),o.resolve(m))},p=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),i==null||i(),o.reject(m))},h=()=>new Promise(m=>{var v;i=x=>{(r||c())&&m(x)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(r)return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(x){m=Promise.reject(x)}Promise.resolve(m).then(f).catch(x=>{var O;if(r)return;const g=e.retry??(_p?0:3),b=e.retryDelay??W4,w=typeof b=="function"?b(n,x):b,S=g===!0||typeof g=="number"&&nc()?void 0:h()).then(()=>{t?p(x):y()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:d,start:()=>(d()?y():h().then(y),o)}}function H4(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Nt=H4(),po,TP,xC=(TP=class{constructor(){Oe(this,po)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$4(this.gcTime)&&fe(this,po,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_p?1/0:5*60*1e3))}clearGcTimeout(){W(this,po)&&(clearTimeout(W(this,po)),fe(this,po,void 0))}},po=new WeakMap,TP),_a,Na,pn,jt,Wc,ho,Nn,yr,_P,V4=(_P=class extends xC{constructor(t){super();Oe(this,Nn);Oe(this,_a);Oe(this,Na);Oe(this,pn);Oe(this,jt);Oe(this,Wc);Oe(this,ho);fe(this,ho,!1),fe(this,Wc,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,pn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,_a,K4(this.options)),this.state=t.state??W(this,_a),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=W(this,jt))==null?void 0:t.promise}setOptions(t){this.options={...W(this,Wc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&W(this,pn).remove(this)}setData(t,n){const r=D4(this.state.data,t,this.options);return bt(this,Nn,yr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){bt(this,Nn,yr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=W(this,jt))==null?void 0:r.promise;return(i=W(this,jt))==null||i.cancel(t),n?n.then(_n).catch(_n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(W(this,_a))}isActive(){return this.observers.some(t=>I4(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ox||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!M4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,jt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=W(this,jt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),W(this,pn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(W(this,jt)&&(W(this,ho)?W(this,jt).cancel({revert:!0}):W(this,jt).cancelRetry()),this.scheduleGc()),W(this,pn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||bt(this,Nn,yr).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(W(this,jt))return W(this,jt).continueRetry(),W(this,jt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(fe(this,ho,!0),r.signal)})},o=()=>{const f=hC(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),fe(this,ho,!1),this.options.persister?this.options.persister(f,p,this):f(p)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),fe(this,Na,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&bt(this,Nn,yr).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const s=f=>{var p,h,y,m;dm(f)&&f.silent||bt(this,Nn,yr).call(this,{type:"error",error:f}),dm(f)||((h=(p=W(this,pn).config).onError)==null||h.call(p,f,this),(m=(y=W(this,pn).config).onSettled)==null||m.call(y,this.state.data,f,this)),this.scheduleGc()};return fe(this,jt,yC({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,h,y,m;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(h=(p=W(this,pn).config).onSuccess)==null||h.call(p,f,this),(m=(y=W(this,pn).config).onSettled)==null||m.call(y,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,p)=>{bt(this,Nn,yr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{bt(this,Nn,yr).call(this,{type:"pause"})},onContinue:()=>{bt(this,Nn,yr).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),W(this,jt).start()}},_a=new WeakMap,Na=new WeakMap,pn=new WeakMap,jt=new WeakMap,Wc=new WeakMap,ho=new WeakMap,Nn=new WeakSet,yr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...G4(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return dm(i)&&i.revert&&W(this,Na)?{...W(this,Na),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Nt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),W(this,pn).notify({query:this,type:"updated",action:t})})},_P);function G4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function K4(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zn,NP,q4=(NP=class extends Tp{constructor(t={}){super();Oe(this,Zn);this.config=t,fe(this,Zn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??ix(i,n);let a=this.get(o);return a||(a=new V4({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){W(this,Zn).has(t.queryHash)||(W(this,Zn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=W(this,Zn).get(t.queryHash);n&&(t.destroy(),n===t&&W(this,Zn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return W(this,Zn).get(t)}getAll(){return[...W(this,Zn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>s1(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>s1(t,r)):n}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zn=new WeakMap,NP),Jn,Tt,mo,er,Qr,$P,Y4=($P=class extends xC{constructor(t){super();Oe(this,er);Oe(this,Jn);Oe(this,Tt);Oe(this,mo);this.mutationId=t.mutationId,fe(this,Tt,t.mutationCache),fe(this,Jn,[]),this.state=t.state||X4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){W(this,Jn).includes(t)||(W(this,Jn).push(t),this.clearGcTimeout(),W(this,Tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,Jn,W(this,Jn).filter(n=>n!==t)),this.scheduleGc(),W(this,Tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){W(this,Jn).length||(this.state.status==="pending"?this.scheduleGc():W(this,Tt).remove(this))}continue(){var t;return((t=W(this,mo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,c,d,f,p,h,y,m,v,x,g,b,w,S,O,P;fe(this,mo,yC({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,T)=>{bt(this,er,Qr).call(this,{type:"failed",failureCount:A,error:T})},onPause:()=>{bt(this,er,Qr).call(this,{type:"pause"})},onContinue:()=>{bt(this,er,Qr).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>W(this,Tt).canRun(this)}));const n=this.state.status==="pending",r=!W(this,mo).canStart();try{if(!n){bt(this,er,Qr).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=W(this,Tt).config).onMutate)==null?void 0:o.call(i,t,this));const T=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));T!==this.state.context&&bt(this,er,Qr).call(this,{type:"pending",context:T,variables:t,isPaused:r})}const A=await W(this,mo).start();return await((c=(l=W(this,Tt).config).onSuccess)==null?void 0:c.call(l,A,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,A,t,this.state.context)),await((h=(p=W(this,Tt).config).onSettled)==null?void 0:h.call(p,A,null,this.state.variables,this.state.context,this)),await((m=(y=this.options).onSettled)==null?void 0:m.call(y,A,null,t,this.state.context)),bt(this,er,Qr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((x=(v=W(this,Tt).config).onError)==null?void 0:x.call(v,A,t,this.state.context,this)),await((b=(g=this.options).onError)==null?void 0:b.call(g,A,t,this.state.context)),await((S=(w=W(this,Tt).config).onSettled)==null?void 0:S.call(w,void 0,A,this.state.variables,this.state.context,this)),await((P=(O=this.options).onSettled)==null?void 0:P.call(O,void 0,A,t,this.state.context)),A}finally{bt(this,er,Qr).call(this,{type:"error",error:A})}}finally{W(this,Tt).runNext(this)}}},Jn=new WeakMap,Tt=new WeakMap,mo=new WeakMap,er=new WeakSet,Qr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Nt.batch(()=>{W(this,Jn).forEach(r=>{r.onMutationUpdate(t)}),W(this,Tt).notify({mutation:this,type:"updated",action:t})})},$P);function X4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yt,Hc,MP,Q4=(MP=class extends Tp{constructor(t={}){super();Oe(this,Yt);Oe(this,Hc);this.config=t,fe(this,Yt,new Map),fe(this,Hc,Date.now())}build(t,n,r){const i=new Y4({mutationCache:this,mutationId:++lu(this,Hc)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=_u(t),r=W(this,Yt).get(n)??[];r.push(t),W(this,Yt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=_u(t);if(W(this,Yt).has(n)){const i=(r=W(this,Yt).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?W(this,Yt).delete(n):W(this,Yt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=W(this,Yt).get(_u(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=W(this,Yt).get(_u(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...W(this,Yt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>l1(n,r))}findAll(t={}){return this.getAll().filter(n=>l1(t,n))}notify(t){Nt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Nt.batch(()=>Promise.all(t.map(n=>n.continue().catch(_n))))}},Yt=new WeakMap,Hc=new WeakMap,MP);function _u(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function f1(e){return{onFetch:(t,n)=>{var d,f,p,h,y;const r=t.options,i=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],a=((y=t.state.data)==null?void 0:y.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},x=hC(t.options,t.fetchOptions),g=async(b,w,S)=>{if(m)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const O={queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};v(O);const P=await x(O),{maxPages:A}=t.options,T=S?F4:L4;return{pages:T(b.pages,P,A),pageParams:T(b.pageParams,w,A)}};if(i&&o.length){const b=i==="backward",w=b?Z4:d1,S={pages:o,pageParams:a},O=w(r,S);s=await g(S,O,b)}else{const b=e??o.length;do{const w=l===0?a[0]??r.initialPageParam:d1(r,s);if(l>0&&w==null)break;s=await g(s,w),l++}while(l{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function d1(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Z4(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ke,li,ci,$a,Ma,ui,Ia,Ra,IP,J4=(IP=class{constructor(e={}){Oe(this,Ke);Oe(this,li);Oe(this,ci);Oe(this,$a);Oe(this,Ma);Oe(this,ui);Oe(this,Ia);Oe(this,Ra);fe(this,Ke,e.queryCache||new q4),fe(this,li,e.mutationCache||new Q4),fe(this,ci,e.defaultOptions||{}),fe(this,$a,new Map),fe(this,Ma,new Map),fe(this,ui,0)}mount(){lu(this,ui)._++,W(this,ui)===1&&(fe(this,Ia,mC.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Ke).onFocus())})),fe(this,Ra,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),W(this,Ke).onOnline())})))}unmount(){var e,t;lu(this,ui)._--,W(this,ui)===0&&((e=W(this,Ia))==null||e.call(this),fe(this,Ia,void 0),(t=W(this,Ra))==null||t.call(this),fe(this,Ra,void 0))}isFetching(e){return W(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return W(this,li).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Ke).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=W(this,Ke).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(a1(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return W(this,Ke).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=W(this,Ke).get(r.queryHash),o=i==null?void 0:i.state.data,a=N4(t,o);if(a!==void 0)return W(this,Ke).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Nt.batch(()=>W(this,Ke).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=W(this,Ke).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=W(this,Ke);Nt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=W(this,Ke),r={type:"active",...e};return Nt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Nt.batch(()=>W(this,Ke).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_n).catch(_n)}invalidateQueries(e={},t={}){return Nt.batch(()=>{if(W(this,Ke).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Nt.batch(()=>W(this,Ke).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_n)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_n)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=W(this,Ke).build(this,t);return n.isStaleByTime(a1(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_n).catch(_n)}fetchInfiniteQuery(e){return e.behavior=f1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_n).catch(_n)}ensureInfiniteQueryData(e){return e.behavior=f1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vf.isOnline()?W(this,li).resumePausedMutations():Promise.resolve()}getQueryCache(){return W(this,Ke)}getMutationCache(){return W(this,li)}getDefaultOptions(){return W(this,ci)}setDefaultOptions(e){fe(this,ci,e)}setQueryDefaults(e,t){W(this,$a).set(rc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...W(this,$a).values()];let n={};return t.forEach(r=>{ic(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){W(this,Ma).set(rc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...W(this,Ma).values()];let n={};return t.forEach(r=>{ic(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...W(this,ci).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ix(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===ox&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...W(this,ci).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){W(this,Ke).clear(),W(this,li).clear()}},Ke=new WeakMap,li=new WeakMap,ci=new WeakMap,$a=new WeakMap,Ma=new WeakMap,ui=new WeakMap,Ia=new WeakMap,Ra=new WeakMap,IP),e5=j.createContext(void 0),t5=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(e5.Provider,{value:e,children:t}));/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function r5(){return Math.random().toString(36).substr(2,8)}function h1(e,t){return{usr:e.state,key:e.key,idx:t}}function nv(e,t,n,r){return n===void 0&&(n=null),oc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ks(t):t,{state:n,key:t&&t.key||r||r5()})}function Gf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ks(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function i5(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=pi.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(oc({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=pi.Pop;let v=d(),x=v==null?null:v-c;c=v,l&&l({action:s,location:m.location,delta:x})}function p(v,x){s=pi.Push;let g=nv(m.location,v,x);c=d()+1;let b=h1(g,c),w=m.createHref(g);try{a.pushState(b,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(w)}o&&l&&l({action:s,location:m.location,delta:1})}function h(v,x){s=pi.Replace;let g=nv(m.location,v,x);c=d();let b=h1(g,c),w=m.createHref(g);a.replaceState(b,"",w),o&&l&&l({action:s,location:m.location,delta:0})}function y(v){let x=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof v=="string"?v:Gf(v);return g=g.replace(/ $/,"%20"),et(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let m={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(p1,f),l=v,()=>{i.removeEventListener(p1,f),l=null}},createHref(v){return t(i,v)},createURL:y,encodeLocation(v){let x=y(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:h,go(v){return a.go(v)}};return m}var m1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(m1||(m1={}));function o5(e,t,n){return n===void 0&&(n="/"),a5(e,t,n,!1)}function a5(e,t,n,r){let i=typeof t=="string"?ks(t):t,o=ax(i.pathname||"/",n);if(o==null)return null;let a=wC(e);s5(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(et(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Pi([r,l.relativePath]),d=n.concat(l);o.children&&o.children.length>0&&(et(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),wC(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:h5(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of SC(o.path))i(o,a,l)}),t}function SC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=SC(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function s5(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:m5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const l5=/^:[\w-]+$/,c5=3,u5=2,f5=1,d5=10,p5=-2,g1=e=>e==="*";function h5(e,t){let n=e.split("/"),r=n.length;return n.some(g1)&&(r+=p5),t&&(r+=u5),n.filter(i=>!g1(i)).reduce((i,o)=>i+(l5.test(o)?c5:o===""?f5:d5),r)}function m5(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function g5(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:p,isOptional:h}=d;if(p==="*"){let m=s[f]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const y=s[f];return h&&!y?c[p]=void 0:c[p]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function v5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function y5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ax(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function x5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ks(e):e;return{pathname:n?n.startsWith("/")?n:b5(n,t):t,search:j5(r),hash:O5(i)}}function b5(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function pm(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function w5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sx(e,t){let n=w5(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ks(e):(i=oc({},e),et(!i.pathname||!i.pathname.includes("?"),pm("?","pathname","search",i)),et(!i.pathname||!i.pathname.includes("#"),pm("#","pathname","hash",i)),et(!i.search||!i.search.includes("#"),pm("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=x5(i,s),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Pi=e=>e.join("/").replace(/\/\/+/g,"/"),S5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,O5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function P5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jC=["post","put","patch","delete"];new Set(jC);const A5=["get",...jC];new Set(A5);/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),j.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=lx(c,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Pi([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}function EC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=j.useContext(Di),{matches:i}=j.useContext(Li),{pathname:o}=Ur(),a=JSON.stringify(sx(i,r.v7_relativeSplatPath));return j.useMemo(()=>lx(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function T5(e,t){return _5(e,t)}function _5(e,t,n,r){Cs()||et(!1);let{navigator:i}=j.useContext(Di),{matches:o}=j.useContext(Li),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Ur(),d;if(t){var f;let v=typeof t=="string"?ks(t):t;l==="/"||(f=v.pathname)!=null&&f.startsWith(l)||et(!1),d=v}else d=c;let p=d.pathname||"/",h=p;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let y=o5(e,{pathname:h}),m=R5(y&&y.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Pi([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Pi([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r);return t&&m?j.createElement(Np.Provider,{value:{location:ac({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:pi.Pop}},m):m}function N5(){let e=B5(),t=P5(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:i},n):null,null)}const $5=j.createElement(N5,null);class M5 extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?j.createElement(Li.Provider,{value:this.props.routeContext},j.createElement(OC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I5(e){let{routeContext:t,match:n,children:r}=e,i=j.useContext(cx);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(Li.Provider,{value:t},r)}function R5(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||et(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,y=!1,m=null,v=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,m=f.route.errorElement||$5,l&&(c<0&&p===0?(y=!0,v=null):c===p&&(y=!0,v=f.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,p+1)),g=()=>{let b;return h?b=m:y?b=v:f.route.Component?b=j.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,j.createElement(I5,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?j.createElement(M5,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var kC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kC||{}),Kf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Kf||{});function D5(e){let t=j.useContext(cx);return t||et(!1),t}function L5(e){let t=j.useContext(E5);return t||et(!1),t}function F5(e){let t=j.useContext(Li);return t||et(!1),t}function CC(e){let t=F5(),n=t.matches[t.matches.length-1];return n.route.id||et(!1),n.route.id}function B5(){var e;let t=j.useContext(OC),n=L5(Kf.UseRouteError),r=CC(Kf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function z5(){let{router:e}=D5(kC.UseNavigateStable),t=CC(Kf.UseNavigateStable),n=j.useRef(!1);return PC(()=>{n.current=!0}),j.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ac({fromRouteId:t},o)))},[e,t])}function U5(e){let{to:t,replace:n,state:r,relative:i}=e;Cs()||et(!1);let{future:o,static:a}=j.useContext(Di),{matches:s}=j.useContext(Li),{pathname:l}=Ur(),c=AC(),d=lx(t,sx(s,o.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return j.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:i}),[c,f,i,n,r]),null}function kn(e){et(!1)}function W5(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pi.Pop,navigator:o,static:a=!1,future:s}=e;Cs()&&et(!1);let l=t.replace(/^\/*/,"/"),c=j.useMemo(()=>({basename:l,navigator:o,static:a,future:ac({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=ks(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:y="default"}=r,m=j.useMemo(()=>{let v=ax(d,l);return v==null?null:{location:{pathname:v,search:f,hash:p,state:h,key:y},navigationType:i}},[l,d,f,p,h,y,i]);return m==null?null:j.createElement(Di.Provider,{value:c},j.createElement(Np.Provider,{children:n,value:m}))}function H5(e){let{children:t,location:n}=e;return T5(rv(t),n)}new Promise(()=>{});function rv(e,t){t===void 0&&(t=[]);let n=[];return j.Children.forEach(e,(r,i)=>{if(!j.isValidElement(r))return;let o=[...t,i];if(r.type===j.Fragment){n.push.apply(n,rv(r.props.children,o));return}r.type!==kn&&et(!1),!r.props.index||!r.props.children||et(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rv(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function G5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K5(e,t){return e.button===0&&(!t||t==="_self")&&!G5(e)}const q5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Y5="6";try{window.__reactRouterVersion=Y5}catch{}const X5="startTransition",y1=GP[X5];function Q5(e){let{basename:t,children:n,future:r,window:i}=e,o=j.useRef();o.current==null&&(o.current=n5({window:i,v5Compat:!0}));let a=o.current,[s,l]=j.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=j.useCallback(f=>{c&&y1?y1(()=>l(f)):l(f)},[l,c]);return j.useLayoutEffect(()=>a.listen(d),[a,d]),j.createElement(W5,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const Z5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",J5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=j.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:d,viewTransition:f}=t,p=V5(t,q5),{basename:h}=j.useContext(Di),y,m=!1;if(typeof c=="string"&&J5.test(c)&&(y=c,Z5))try{let b=new URL(window.location.href),w=c.startsWith("//")?new URL(b.protocol+c):new URL(c),S=ax(w.pathname,h);w.origin===b.origin&&S!=null?c=S+w.search+w.hash:m=!0}catch{}let v=k5(c,{relative:i}),x=e6(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:f});function g(b){r&&r(b),b.defaultPrevented||x(b)}return j.createElement("a",iv({},p,{href:y||v,onClick:m||o?r:g,ref:n,target:l}))});var x1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(x1||(x1={}));var b1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(b1||(b1={}));function e6(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=AC(),c=Ur(),d=EC(e,{relative:a});return j.useCallback(f=>{if(K5(f,n)){f.preventDefault();let p=r!==void 0?r:Gf(c)===Gf(d);l(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,d,r,i,n,e,o,a,s])}const Fo=()=>{const[e,t]=j.useState(!1),[n,r]=j.useState(!1),[i,o]=j.useState(!1),a=j.useRef(null),s=Ur();j.useEffect(()=>{const f=()=>{window.scrollY>50?o(!0):o(!1)};return window.addEventListener("scroll",f),()=>window.removeEventListener("scroll",f)},[]),j.useEffect(()=>{const f=p=>{a.current&&!a.current.contains(p.target)&&r(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]);const l=[{name:"About Me",href:"/about-me"},{name:"My Experience",href:"/my-experience"}],c=[{name:"PPC Season Insight Analyzer",href:"/tools/season-insight-analyzer"}],d=[{name:"Blogs",href:"/blogs"},{name:"Get in Touch",href:"/contact-me"}];return u.jsxs("nav",{className:`fixed w-full z-50 transition-all duration-300 ${i?"bg-white shadow-md py-2":"bg-transparent py-4"}`,children:[u.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("div",{className:"flex-shrink-0",children:u.jsxs(Xe,{to:"/",className:"font-display font-bold text-xl md:text-2xl text-marketing-text",children:["Evolving Fellow",u.jsx("span",{className:"text-marketing-purple",children:"."})]})}),u.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[l.map(f=>u.jsx(Xe,{to:f.href,className:`font-medium transition-colors ${s.pathname===f.href?"text-marketing-purple":"text-gray-700 hover:text-marketing-purple"}`,children:f.name},f.name)),u.jsxs("div",{className:"relative",ref:a,children:[u.jsxs("button",{onClick:()=>r(!n),className:`font-medium transition-colors flex items-center gap-1 ${c.some(f=>s.pathname===f.href)?"text-marketing-purple":"text-gray-700 hover:text-marketing-purple"}`,children:["Tools",u.jsx(bp,{size:16,className:`transition-transform ${n?"rotate-180":""}`})]}),n&&u.jsx("div",{className:"absolute top-full left-0 mt-2 w-56 bg-white rounded-lg shadow-lg border border-gray-100 py-2 z-50",children:c.map(f=>u.jsx(Xe,{to:f.href,className:`block px-4 py-2 text-sm font-medium transition-colors ${s.pathname===f.href?"text-marketing-purple bg-gray-50":"text-gray-700 hover:text-marketing-purple hover:bg-gray-50"}`,onClick:()=>r(!1),children:f.name},f.name))})]}),d.map(f=>u.jsx(Xe,{to:f.href,className:`font-medium transition-colors ${s.pathname===f.href?"text-marketing-purple":"text-gray-700 hover:text-marketing-purple"}`,children:f.name},f.name))]}),u.jsx("div",{className:"md:hidden",children:u.jsx("button",{onClick:()=>t(!e),className:"text-gray-700 hover:text-marketing-purple focus:outline-none",children:e?u.jsx(V0,{size:24}):u.jsx(LD,{size:24})})})]})}),u.jsx("div",{className:`md:hidden transition-all duration-300 ease-in-out overflow-hidden ${e?"max-h-[500px] opacity-100":"max-h-0 opacity-0"}`,children:u.jsxs("div",{className:"px-4 pt-2 pb-4 space-y-1 bg-white",children:[l.map(f=>u.jsx(Xe,{to:f.href,className:`block px-3 py-2 text-base font-medium rounded-md ${s.pathname===f.href?"text-marketing-purple bg-gray-50":"text-gray-700 hover:text-marketing-purple hover:bg-gray-50"}`,onClick:()=>t(!1),children:f.name},f.name)),u.jsxs("div",{className:"px-3 py-2",children:[u.jsx("div",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"Tools"}),c.map(f=>u.jsx(Xe,{to:f.href,className:`block px-3 py-2 text-base font-medium rounded-md ${s.pathname===f.href?"text-marketing-purple bg-gray-50":"text-gray-700 hover:text-marketing-purple hover:bg-gray-50"}`,onClick:()=>t(!1),children:f.name},f.name))]}),d.map(f=>u.jsx(Xe,{to:f.href,className:`block px-3 py-2 text-base font-medium rounded-md ${s.pathname===f.href?"text-marketing-purple bg-gray-50":"text-gray-700 hover:text-marketing-purple hover:bg-gray-50"}`,onClick:()=>t(!1),children:f.name},f.name))]})})]})},t6=xp("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Vn=j.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?Ao:"button";return u.jsx(a,{className:pe(t6({variant:t,size:n,className:e})),ref:o,...i})});Vn.displayName="Button";const n6=()=>u.jsx("section",{className:"min-h-screen flex items-center pt-20 bg-gradient-to-br from-white to-purple-50",children:u.jsx("div",{className:"section-container",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{className:"animate-fade-in",children:[u.jsx("h2",{className:"text-xl md:text-2xl font-medium text-marketing-purple mb-2",children:"Hello, I'm"}),u.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-4 leading-tight",children:"Rohit Ghosh"}),u.jsxs("h2",{className:"text-2xl md:text-3xl font-semibold mb-6 text-gray-700",children:["Digital Marketing ",u.jsx("span",{className:"gradient-text",children:"Strategist"})]}),u.jsx("p",{className:"text-lg text-gray-600 mb-8 max-w-2xl",children:"I specialize in data-driven growth strategies, blending deep keyword research, high-traffic website management, and performance-driven SEM to maximize impact. With a proven track record of boosting organic rankings, driving exponential traffic growth, and enhancing brand visibility, I help businesses dominate search and scale their digital presence. From SEO to paid marketing and automation workflows, I craft strategies that convert."}),u.jsxs("div",{className:"flex flex-wrap gap-4",children:[u.jsx(Vn,{className:"bg-marketing-purple hover:bg-marketing-light-purple text-white px-6 py-2 rounded-md",children:u.jsxs(Xe,{to:"/contact-me",className:"flex items-center",children:["Contact Me",u.jsx(W0,{size:16,className:"ml-2"})]})}),u.jsx(Vn,{variant:"outline",className:"border-marketing-purple text-marketing-purple hover:bg-marketing-purple hover:text-white px-6 py-2 rounded-md",children:u.jsx(Xe,{to:"/my-experience",children:"View My Work"})})]})]}),u.jsx("div",{className:"relative animate-slide-up lg:flex justify-center",children:u.jsxs("div",{className:"relative w-full max-w-md mx-auto",children:[u.jsx("div",{className:"relative p-4 bg-white rounded-lg shadow-xl",children:u.jsxs("svg",{viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg",className:"w-full",children:[u.jsx("g",{transform:"translate(400, 400)",children:u.jsxs("text",{textAnchor:"middle",fontSize:"48",fontWeight:"bold",fill:"#333333",children:[u.jsx("tspan",{x:"0",y:"0",children:"DIGITAL"}),u.jsx("tspan",{x:"0",y:"55",children:"MARKETING"})]})}),u.jsxs("g",{transform:"translate(620, 170)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsx("text",{textAnchor:"middle",fontSize:"20",fontWeight:"bold",fill:"white",children:u.jsx("tspan",{x:"0",y:"5",children:"SEO"})})]}),u.jsxs("g",{transform:"translate(660, 400)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"SOCIAL MEDIA"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(580, 600)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"18",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"0",children:"PPC"}),u.jsx("tspan",{x:"0",y:"25",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(375, 650)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"CONTENT"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(170, 620)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"18",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"EMAIL"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(140, 400)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"AFFILIATE"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(180, 170)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"VIDEO"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]}),u.jsxs("g",{transform:"translate(400, 130)",children:[u.jsx("circle",{cx:"0",cy:"0",r:"70",fill:"#8B5CF6"}),u.jsx("circle",{cx:"0",cy:"0",r:"74",fill:"none",stroke:"#0EA5E9",strokeWidth:"3"}),u.jsxs("text",{textAnchor:"middle",fontSize:"16",fontWeight:"bold",fill:"white",children:[u.jsx("tspan",{x:"0",y:"-5",children:"WEBSITE"}),u.jsx("tspan",{x:"0",y:"15",children:"MARKETING"})]})]})]})}),u.jsx("div",{className:"absolute top-0 -right-4 w-24 h-24 bg-marketing-blue rounded-full filter blur-xl opacity-50"}),u.jsx("div",{className:"absolute bottom-0 -left-4 w-32 h-32 bg-marketing-purple rounded-full filter blur-xl opacity-50"})]})})]})})}),r6=()=>u.jsx("section",{className:"py-20 bg-white",children:u.jsxs("div",{className:"section-container",children:[u.jsx("h2",{className:"section-title",children:"My Experience"}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[u.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[u.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow border border-gray-100",children:[u.jsx("h3",{className:"text-xl font-semibold text-marketing-purple mb-2",children:"Chief Manager"}),u.jsx("p",{className:"text-base font-medium text-gray-700",children:"HDFC Life Insurance"}),u.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Sep 2023 - Present"}),u.jsxs("ul",{className:"space-y-2",children:[u.jsxs("li",{className:"flex items-start",children:[u.jsx("span",{className:"inline-block w-2 h-2 bg-marketing-blue rounded-full mt-1.5 mr-2"}),u.jsx("span",{className:"text-gray-600",children:"Implemented comprehensive strategic SEO initiatives achieving 85% growth in organic traffic"})]}),u.jsxs("li",{className:"flex items-start",children:[u.jsx("span",{className:"inline-block w-2 h-2 bg-marketing-blue rounded-full mt-1.5 mr-2"}),u.jsx("span",{className:"text-gray-600",children:"Enhanced website performance with top 3 SERP rankings for critical keywords"})]})]})]}),u.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow border border-gray-100",children:[u.jsx("h3",{className:"text-xl font-semibold text-marketing-purple mb-2",children:"Marketing Manager"}),u.jsx("p",{className:"text-base font-medium text-gray-700",children:"Max Life Insurance"}),u.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Nov 2020 - Sep 2023"}),u.jsxs("ul",{className:"space-y-2",children:[u.jsxs("li",{className:"flex items-start",children:[u.jsx("span",{className:"inline-block w-2 h-2 bg-marketing-blue rounded-full mt-1.5 mr-2"}),u.jsx("span",{className:"text-gray-600",children:"Catapulted organic search rankings for 1100+ keywords to top 5, elevating organic traffic by 32%"})]}),u.jsxs("li",{className:"flex items-start",children:[u.jsx("span",{className:"inline-block w-2 h-2 bg-marketing-blue rounded-full mt-1.5 mr-2"}),u.jsx("span",{className:"text-gray-600",children:"Reduced bounce rates on category/product pages from 52% to 34%"})]})]})]})]}),u.jsx("div",{className:"lg:col-span-1 flex flex-col",children:u.jsxs("div",{className:"bg-gray-50 rounded-lg p-6 shadow-md hover:shadow-lg transition-shadow border border-gray-100 h-full",children:[u.jsx("h3",{className:"text-xl font-semibold text-marketing-purple mb-6",children:"Key Certifications"}),u.jsxs("div",{className:"space-y-4 mb-8",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"w-8 h-8 rounded-full bg-marketing-purple/10 flex items-center justify-center mr-3",children:u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-marketing-purple",children:[u.jsx("path",{d:"M12.89 1.45l8 4A2 2 0 0 1 22 7.24v9.53a2 2 0 0 1-1.11 1.79l-8 4a2 2 0 0 1-1.79 0l-8-4a2 2 0 0 1-1.1-1.8V7.24a2 2 0 0 1 1.11-1.79l8-4a2 2 0 0 1 1.78 0z"}),u.jsx("polyline",{points:"2.32 6.16 12 11 21.68 6.16"}),u.jsx("line",{x1:"12",y1:"22.76",x2:"12",y2:"11"})]})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium text-gray-800",children:"Technical SEO"}),u.jsx("p",{className:"text-sm text-gray-500",children:"Blue Array SEO"})]})]}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"w-8 h-8 rounded-full bg-marketing-purple/10 flex items-center justify-center mr-3",children:u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-marketing-purple",children:[u.jsx("path",{d:"M12.89 1.45l8 4A2 2 0 0 1 22 7.24v9.53a2 2 0 0 1-1.11 1.79l-8 4a2 2 0 0 1-1.79 0l-8-4a2 2 0 0 1-1.1-1.8V7.24a2 2 0 0 1 1.11-1.79l8-4a2 2 0 0 1 1.78 0z"}),u.jsx("polyline",{points:"2.32 6.16 12 11 21.68 6.16"}),u.jsx("line",{x1:"12",y1:"22.76",x2:"12",y2:"11"})]})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium text-gray-800",children:"Advanced Analytics"}),u.jsx("p",{className:"text-sm text-gray-500",children:"Google Digital Academy"})]})]}),u.jsxs("div",{className:"flex items-center",children:[u.jsx("div",{className:"w-8 h-8 rounded-full bg-marketing-purple/10 flex items-center justify-center mr-3",children:u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-marketing-purple",children:[u.jsx("path",{d:"M12.89 1.45l8 4A2 2 0 0 1 22 7.24v9.53a2 2 0 0 1-1.11 1.79l-8 4a2 2 0 0 1-1.79 0l-8-4a2 2 0 0 1-1.1-1.8V7.24a2 2 0 0 1 1.11-1.79l8-4a2 2 0 0 1 1.78 0z"}),u.jsx("polyline",{points:"2.32 6.16 12 11 21.68 6.16"}),u.jsx("line",{x1:"12",y1:"22.76",x2:"12",y2:"11"})]})}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium text-gray-800",children:"Performance Marketing"}),u.jsx("p",{className:"text-sm text-gray-500",children:"Growth School"})]})]})]}),u.jsx(Xe,{to:"/my-experience",className:"mt-auto",children:u.jsxs(Vn,{className:"w-full bg-marketing-purple hover:bg-marketing-light-purple flex items-center justify-center",children:["Know more",u.jsx(W0,{size:16,className:"ml-2"})]})})]})})]})]})}),TC=()=>{const e=[{title:"How to Add Google Analytics to Your Website: A Beginner's Step-by-Step Guide",excerpt:"Learn how to properly set up Google Analytics 4 on your website. This step-by-step guide covers everything from creating an account to verifying your installation.",date:"March 16, 2025",category:"Analytics",image:"https://wsstgprdphotosonic01.blob.core.windows.net/photosonic/63d04241-aa2b-489b-9000-ca9386c1c156.png?st=2025-03-16T16%3A51%3A24Z&se=2025-03-23T16%3A51%3A24Z&sp=r&sv=2025-05-05&sr=b&sig=eNIsCeLbNMYSC%2Bg02caxUERZsNVO9W3Ra4osF2G1fi8%3D",link:"/blogs/how-to-add-google-analytics-to-your-website"},{title:"How to Use Screaming Frog's Internal Link Checker: A Step-by-Step Guide for SEOs",excerpt:"Master Screaming Frog's internal link checker to analyze your website's link structure. Improve SEO by identifying issues and optimizing internal links with this comprehensive guide.",date:"March 18, 2025",category:"Technical SEO",image:"https://wsstgprdphotosonic01.blob.core.windows.net/photosonic/3dc283e0-d4e6-4370-a7d2-66828b40f932.png?st=2025-03-16T18%3A35%3A42Z&se=2025-03-23T18%3A35%3A42Z&sp=r&sv=2025-05-05&sr=b&sig=i267VAqL9rjidazqdhMUZLRTzDFsiwxpQWtbGboEMVo%3D",link:"/blogs/how-to-use-screaming-frogs-internal-link-checker"}];return u.jsx("section",{id:"blogs",className:"py-20 bg-gray-50",children:u.jsxs("div",{className:"section-container",children:[u.jsx("h2",{className:"section-title",children:"Latest Blog Posts"}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>u.jsxs("div",{className:"bg-white rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-shadow group",children:[u.jsx("div",{className:"h-48 overflow-hidden",children:u.jsx("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-300",loading:"lazy",width:"400",height:"225"})}),u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("span",{className:"inline-block px-3 py-1 bg-marketing-purple/10 text-marketing-purple text-xs font-medium rounded-full",children:t.category}),u.jsx("span",{className:"text-sm text-gray-500",children:t.date})]}),u.jsx(Xe,{to:t.link,children:u.jsx("h3",{className:"text-xl font-semibold mb-2 group-hover:text-marketing-purple transition-colors",children:t.title})}),u.jsx("p",{className:"text-gray-600 mb-4",children:t.excerpt}),u.jsxs(Xe,{to:t.link,className:"inline-flex items-center text-marketing-purple hover:text-marketing-blue transition-colors",children:["Read More",u.jsx(W0,{size:16,className:"ml-1 group-hover:ml-2 transition-all"})]})]})]},n))}),u.jsx("div",{className:"mt-12 text-center",children:u.jsx(Vn,{className:"bg-marketing-purple hover:bg-marketing-light-purple",children:"View All Blog Posts"})})]})})},Bo=()=>{const e=()=>{window.scrollTo({top:0,behavior:"smooth"})};return u.jsx("footer",{className:"bg-gray-900 text-white",children:u.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[u.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[u.jsxs("div",{className:"mb-6 md:mb-0",children:[u.jsxs(Xe,{to:"/",className:"font-display font-bold text-2xl",children:["Evolving Fellow",u.jsx("span",{className:"text-marketing-purple",children:"."})]}),u.jsx("p",{className:"mt-2 text-gray-400 max-w-md",children:"Digital marketing professional helping businesses grow their online presence through strategic digital initiatives."})]}),u.jsxs("div",{className:"flex flex-col items-center md:items-end",children:[u.jsxs("div",{className:"flex space-x-4 mb-4",children:[u.jsx("a",{href:"https://www.linkedin.com/in/rohit-ghosh-642171a1/",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center hover:bg-marketing-purple transition-colors",children:u.jsx(RD,{size:20})}),u.jsx("a",{href:"#",className:"w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center hover:bg-marketing-purple transition-colors",children:u.jsx(HD,{size:20})}),u.jsx("a",{href:"mailto:contact@example.com",className:"w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center hover:bg-marketing-purple transition-colors",children:u.jsx(Pk,{size:20})})]}),u.jsxs("button",{onClick:e,className:"inline-flex items-center text-sm font-medium text-gray-400 hover:text-white transition-colors",children:["Back to top",u.jsx(SD,{size:16,className:"ml-1"})]})]})]}),u.jsxs("div",{className:"border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center",children:[u.jsx("div",{className:"mb-4 md:mb-0",children:u.jsxs("nav",{className:"flex flex-wrap gap-x-8 gap-y-2",children:[u.jsx(Xe,{to:"/about-me",className:"hover:text-marketing-purple transition-colors",children:"About Me"}),u.jsx(Xe,{to:"/my-experience",className:"hover:text-marketing-purple transition-colors",children:"My Experience"}),u.jsx(Xe,{to:"/blogs",className:"hover:text-marketing-purple transition-colors",children:"Blogs"}),u.jsx(Xe,{to:"/contact-me",className:"hover:text-marketing-purple transition-colors",children:"Get in Touch"})]})}),u.jsxs("div",{className:"text-gray-400 text-sm",children:["© ",new Date().getFullYear()," Evolving Fellow. All rights reserved."]})]})]})})},i6=()=>u.jsxs("div",{className:"min-h-screen",children:[u.jsx(Fo,{}),u.jsx(n6,{}),u.jsx(r6,{}),u.jsx(TC,{}),u.jsx(Bo,{})]}),o6=()=>u.jsx("section",{id:"about",className:"py-20 bg-white",children:u.jsxs("div",{className:"section-container",children:[u.jsx("h2",{className:"section-title",children:"About Me"}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{className:"animate-slide-right",children:[u.jsxs("div",{className:"prose max-w-none",children:[u.jsxs("p",{className:"text-lg mb-4",children:["I'm a ",u.jsx("span",{className:"highlight",children:"Website Organic Growth Specialist & Leader"})," with expertise in formulating strategy and executing digital initiatives to drive business impact."]}),u.jsxs("p",{className:"text-lg mb-4",children:["Currently working as a ",u.jsx("span",{className:"highlight",children:"Chief Manager at HDFC Life Insurance"})," in Mumbai, where I lead SEO initiatives that have achieved an 85% growth in organic traffic and 44% in leads."]}),u.jsxs("p",{className:"text-lg mb-4",children:["My expertise spans ",u.jsx("span",{className:"highlight",children:"SEO, Content Marketing, CRO, and Marketing Automation"}),". I'm passionate about leveraging data-driven insights to improve customer experience, having driven a 30% growth in session-to-lead conversion through rigorous A/B testing."]}),u.jsx("p",{className:"text-lg mb-4",children:"Throughout my career, I've managed cross-functional teams of SEO, design, CRO, analytics, content, and front-end development specialists. I've enhanced website performance, boosted organic search rankings, and implemented automated marketing workflows that improved conversions by 50%."}),u.jsx("p",{className:"text-lg mb-4",children:"I hold an MBA in Marketing and IT from TAPMI, Manipal (2019) and a B.Tech from WBUT, West Bengal (2015), alongside various professional certifications in SEO, Analytics, and Digital Marketing."})]}),u.jsx("div",{className:"mt-8",children:u.jsx(Xe,{to:"/my-experience",children:u.jsx(Vn,{className:"bg-marketing-purple hover:bg-marketing-light-purple",children:"View My Experience"})})})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100 transform transition-transform hover:scale-105",children:[u.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:u.jsx(MD,{className:"text-marketing-purple",size:24})}),u.jsx("h3",{className:"text-xl font-semibold mb-2",children:"SEO Strategy"}),u.jsx("p",{className:"text-gray-600",children:"Comprehensive on-page, off-page, and technical SEO initiatives leading to 85% growth in organic traffic."})]}),u.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100 transform transition-transform hover:scale-105",children:[u.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:u.jsx(Bf,{className:"text-marketing-blue",size:24})}),u.jsx("h3",{className:"text-xl font-semibold mb-2",children:"CRO Expertise"}),u.jsx("p",{className:"text-gray-600",children:"Rigorous A/B testing and data-driven decision making to improve user experience and conversion rates."})]}),u.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100 transform transition-transform hover:scale-105",children:[u.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:u.jsx(AD,{className:"text-marketing-purple",size:24})}),u.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Marketing Automation"}),u.jsx("p",{className:"text-gray-600",children:"Digital chase marketing via email, SMS, WhatsApp, and web push notifications with high engagement rates."})]}),u.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-md border border-gray-100 transform transition-transform hover:scale-105",children:[u.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:u.jsx(GD,{className:"text-marketing-blue",size:24})}),u.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Team Leadership"}),u.jsx("p",{className:"text-gray-600",children:"Managing cross-functional teams and fostering collaboration across departments for effective website enhancements."})]})]})]})]})}),a6=(e,t)=>{let n="";return e&&(n+=`${e} - Evolving Fellow`),t&&(n+=``),n},hm=e=>`