var nc=e=>{throw TypeError(e)};var qs=(e,t,n)=>t.has(e)||nc("Cannot "+n);var N=(e,t,n)=>(qs(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?nc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,r)=>(qs(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ke=(e,t,n)=>(qs(e,t,"access private method"),n);var ni=(e,t,n,r)=>({set _(o){H(e,t,o,n)},get _(){return N(e,t,r)}});function Zm(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tf={exports:{}},ys={},nf={exports:{}},G={};/** * @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 Wo=Symbol.for("react.element"),Jm=Symbol.for("react.portal"),ev=Symbol.for("react.fragment"),tv=Symbol.for("react.strict_mode"),nv=Symbol.for("react.profiler"),rv=Symbol.for("react.provider"),ov=Symbol.for("react.context"),iv=Symbol.for("react.forward_ref"),sv=Symbol.for("react.suspense"),lv=Symbol.for("react.memo"),av=Symbol.for("react.lazy"),rc=Symbol.iterator;function uv(e){return e===null||typeof e!="object"?null:(e=rc&&e[rc]||e["@@iterator"],typeof e=="function"?e:null)}var rf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},of=Object.assign,sf={};function Hr(e,t,n){this.props=e,this.context=t,this.refs=sf,this.updater=n||rf}Hr.prototype.isReactComponent={};Hr.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")};Hr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lf(){}lf.prototype=Hr.prototype;function $a(e,t,n){this.props=e,this.context=t,this.refs=sf,this.updater=n||rf}var Ua=$a.prototype=new lf;Ua.constructor=$a;of(Ua,Hr.prototype);Ua.isPureReactComponent=!0;var oc=Array.isArray,af=Object.prototype.hasOwnProperty,Ba={current:null},uf={key:!0,ref:!0,__self:!0,__source:!0};function cf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)af.call(t,r)&&!uf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,F=k[M];if(0>>1;Mo(Ve,z))Zo(lt,Ve)?(k[M]=lt,k[Z]=z,M=Z):(k[M]=Ve,k[le]=z,M=le);else if(Zo(lt,z))k[M]=lt,k[Z]=z,M=Z;else break e}}return O}function o(k,O){var z=k.sortIndex-O.sortIndex;return z!==0?z:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,c=3,g=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(k){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=k)r(u),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(u)}}function E(k){if(v=!1,m(k),!y)if(n(a)!==null)y=!0,U(C);else{var O=n(u);O!==null&&K(E,O.startTime-k)}}function C(k,O){y=!1,v&&(v=!1,h(R),R=-1),g=!0;var z=c;try{for(m(O),f=n(a);f!==null&&(!(f.expirationTime>O)||k&&!$());){var M=f.callback;if(typeof M=="function"){f.callback=null,c=f.priorityLevel;var F=M(f.expirationTime<=O);O=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(a)&&r(a),m(O)}else r(a);f=n(a)}if(f!==null)var Y=!0;else{var le=n(u);le!==null&&K(E,le.startTime-O),Y=!1}return Y}finally{f=null,c=z,g=!1}}var P=!1,T=null,R=-1,I=5,A=-1;function $(){return!(e.unstable_now()-Ak||125M?(k.sortIndex=z,t(u,k),n(a)===null&&k===n(u)&&(v?(h(R),R=-1):v=!0,K(E,z-M))):(k.sortIndex=F,t(a,k),y||g||(y=!0,U(C))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var O=c;return function(){var z=c;c=O;try{return k.apply(this,arguments)}finally{c=z}}}})(mf);hf.exports=mf;var Sv=hf.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 Ev=w,qe=Sv;function b(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"),_l=Object.prototype.hasOwnProperty,Cv=/^[: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]*$/,sc={},lc={};function kv(e){return _l.call(lc,e)?!0:_l.call(sc,e)?!1:Cv.test(e)?lc[e]=!0:(sc[e]=!0,!1)}function Pv(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 Tv(e,t,n,r){if(t===null||typeof t>"u"||Pv(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 Me(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(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){Ce[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ha=/[\-:]([a-z])/g;function Wa(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(Ha,Wa);Ce[t]=new Me(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(Ha,Wa);Ce[t]=new Me(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(Ha,Wa);Ce[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qa(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lo(e):""}function Nv(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function Ml(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 sr:return"Fragment";case ir:return"Portal";case Al:return"Profiler";case Ka:return"StrictMode";case jl:return"Suspense";case Ll:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yf:return(e.displayName||"Context")+".Consumer";case gf:return(e._context.displayName||"Context")+".Provider";case Ga:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ya:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case nn:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function Rv(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 Ml(t);case 8:return t===Ka?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bv(e){var t=xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ii(e){e._valueTracker||(e._valueTracker=bv(e))}function Sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $i(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 Il(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ef(e,t){t=t.checked,t!=null&&Qa(e,"checked",t,!1)}function Dl(e,t){Ef(e,t);var n=Cn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&zl(e,t.type,Cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zl(e,t,n){(t!=="number"||$i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ao=Array.isArray;function gr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fo={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},Ov=["Webkit","ms","Moz","O"];Object.keys(fo).forEach(function(e){Ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fo[t]=fo[e]})});function Tf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fo.hasOwnProperty(e)&&fo[e]?(""+t).trim():t+"px"}function Nf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Tf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var _v=ce({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 Ul(e,t){if(t){if(_v[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function Bl(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 Vl=null;function Xa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,yr=null,wr=null;function pc(e){if(e=Go(e)){if(typeof Hl!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Cs(t),Hl(e.stateNode,e.type,t))}}function Rf(e){yr?wr?wr.push(e):wr=[e]:yr=e}function bf(){if(yr){var e=yr,t=wr;if(wr=yr=null,pc(e),t)for(e=0;e>>=0,e===0?32:31-(Bv(e)/Vv|0)|0}var li=64,ai=4194304;function uo(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 Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=uo(l):(i&=s,i!==0&&(r=uo(i)))}else s=n&~o,s!==0?r=uo(s):i!==0&&(r=uo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Kv(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=ho),Ec=" ",Cc=!1;function Yf(e,t){switch(e){case"keyup":return Sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lr=!1;function Cg(e,t){switch(e){case"compositionend":return Xf(t);case"keypress":return t.which!==32?null:(Cc=!0,Ec);case"textInput":return e=t.data,e===Ec&&Cc?null:e;default:return null}}function kg(e,t){if(lr)return e==="compositionend"||!ou&&Yf(e,t)?(e=Kf(),Ri=tu=fn=null,lr=!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=Nc(n)}}function ep(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ep(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tp(){for(var e=window,t=$i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$i(e.document)}return t}function iu(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 jg(e){var t=tp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ep(n.ownerDocument.documentElement,n)){if(r!==null&&iu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rc(n,i);var s=Rc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ar=null,Xl=null,vo=null,ql=!1;function bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ql||ar==null||ar!==$i(r)||(r=ar,"selectionStart"in r&&iu(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}),vo&&bo(vo,r)||(vo=r,r=Ki(Xl,"onSelect"),0dr||(e.current=ra[dr],ra[dr]=null,dr--)}function te(e,t){dr++,ra[dr]=e.current,e.current=t}var kn={},be=On(kn),ze=On(!1),Hn=kn;function Ir(e,t){var n=e.type.contextTypes;if(!n)return kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function Yi(){ie(ze),ie(be)}function Ic(e,t,n){if(be.current!==kn)throw Error(b(168));te(be,t),te(ze,n)}function cp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,Rv(e)||"Unknown",o));return ce({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Hn=be.current,te(be,e),te(ze,ze.current),!0}function Dc(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=cp(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,ie(ze),ie(be),te(be,e)):ie(ze),te(ze,n)}var It=null,ks=!1,ml=!1;function dp(e){It===null?It=[e]:It.push(e)}function Wg(e){ks=!0,dp(e)}function _n(){if(!ml&&It!==null){ml=!0;var e=0,t=J;try{var n=It;for(J=1;e>=s,o-=s,Dt=1<<32-ht(t)+o|n<R?(I=T,T=null):I=T.sibling;var A=c(h,T,m[R],E);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,R),P===null?C=A:P.sibling=A,P=A,T=I}if(R===m.length)return n(h,T),se&&jn(h,R),C;if(T===null){for(;RR?(I=T,T=null):I=T.sibling;var $=c(h,T,A.value,E);if($===null){T===null&&(T=I);break}e&&T&&$.alternate===null&&t(h,T),p=i($,p,R),P===null?C=$:P.sibling=$,P=$,T=I}if(A.done)return n(h,T),se&&jn(h,R),C;if(T===null){for(;!A.done;R++,A=m.next())A=f(h,A.value,E),A!==null&&(p=i(A,p,R),P===null?C=A:P.sibling=A,P=A);return se&&jn(h,R),C}for(T=r(h,T);!A.done;R++,A=m.next())A=g(T,h,R,A.value,E),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),p=i(A,p,R),P===null?C=A:P.sibling=A,P=A);return e&&T.forEach(function(D){return t(h,D)}),se&&jn(h,R),C}function x(h,p,m,E){if(typeof m=="object"&&m!==null&&m.type===sr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case oi:e:{for(var C=m.key,P=p;P!==null;){if(P.key===C){if(C=m.type,C===sr){if(P.tag===7){n(h,P.sibling),p=o(P,m.props.children),p.return=h,h=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nn&&$c(C)===P.type){n(h,P.sibling),p=o(P,m.props),p.ref=no(h,P,m),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}m.type===sr?(p=Vn(m.props.children,h.mode,E,m.key),p.return=h,h=p):(E=Ii(m.type,m.key,m.props,null,h.mode,E),E.ref=no(h,p,m),E.return=h,h=E)}return s(h);case ir:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Cl(m,h.mode,E),p.return=h,h=p}return s(h);case nn:return P=m._init,x(h,p,P(m._payload),E)}if(ao(m))return y(h,p,m,E);if(qr(m))return v(h,p,m,E);mi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=El(m,h.mode,E),p.return=h,h=p),s(h)):n(h,p)}return x}var zr=mp(!0),vp=mp(!1),Ji=On(null),es=null,hr=null,uu=null;function cu(){uu=hr=es=null}function du(e){var t=Ji.current;ie(Ji),e._currentValue=t}function sa(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 Sr(e,t){es=e,uu=hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(De=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(uu!==e)if(e={context:e,memoizedValue:t,next:null},hr===null){if(es===null)throw Error(b(308));hr=e,es.dependencies={lanes:0,firstContext:e}}else hr=hr.next=e;return t}var In=null;function fu(e){In===null?In=[e]:In.push(e)}function gp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,fu(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bt(e,r)}function Bt(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 rn=!1;function pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yp(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 Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bt(e,n)}return o=r.interleaved,o===null?(t.next=t,fu(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bt(e,n)}function Oi(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,Za(e,n)}}function Uc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ts(e,t,n,r){var o=e.updateQueue;rn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var f=o.baseState;s=0,d=u=a=null,l=i;do{var c=l.lane,g=l.eventTime;if((r&c)===c){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,v=l;switch(c=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(g,f,c);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,c=typeof y=="function"?y.call(g,f,c):y,c==null)break e;f=ce({},f,c);break e;case 2:rn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=o.effects,c===null?o.effects=[l]:c.push(l))}else g={eventTime:g,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,a=f):d=d.next=g,s|=c;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;c=l,l=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}while(!0);if(d===null&&(a=f),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Kn|=s,e.lanes=s,e.memoizedState=f}}function Bc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=gl.transition;gl.transition={};try{e(!1),t()}finally{J=n,gl.transition=r}}function Mp(){return st().memoizedState}function Yg(e,t,n){var r=Sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ip(e))Dp(t,n);else if(n=gp(e,t,n,r),n!==null){var o=je();mt(n,e,r,o),zp(n,t,r)}}function Xg(e,t,n){var r=Sn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ip(e))Dp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,vt(l,s)){var a=t.interleaved;a===null?(o.next=o,fu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=gp(e,t,o,r),n!==null&&(o=je(),mt(n,e,r,o),zp(n,t,r))}}function Ip(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Dp(e,t){go=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Za(e,n)}}var os={readContext:it,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},qg={readContext:it,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Hc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ai(4194308,4,Op.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();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=Yg.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:Vc,useDebugValue:Su,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=Vc(!1),t=e[0];return e=Gg.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Ct();if(se){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),we===null)throw Error(b(349));Qn&30||Ep(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Hc(kp.bind(null,r,i,e),[e]),r.flags|=2048,Do(9,Cp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=we.identifierPrefix;if(se){var n=zt,r=Dt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Nt]=t,e[Ao]=r,Gp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bl(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oUr&&(t.flags|=128,r=!0,ro(i,!1),t.lanes=4194304)}else{if(!r)if(e=ns(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ro(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!se)return Te(t),null}else 2*pe()-i.renderingStartTime>Ur&&n!==1073741824&&(t.flags|=128,r=!0,ro(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,te(ae,r?n&1|2:n&1),t):(Te(t),null);case 22:case 23:return Nu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Te(t),t.subtreeFlags&6&&(t.flags|=8192)):Te(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function iy(e,t){switch(lu(t),t.tag){case 1:return Fe(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fr(),ie(ze),ie(be),vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Fr(),null;case 10:return du(t.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var gi=!1,Re=!1,sy=typeof WeakSet=="function"?WeakSet:Set,L=null;function mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function ma(e,t,n){try{n()}catch(r){fe(e,t,r)}}var td=!1;function ly(e,t){if(Zl=Wi,e=tp(),iu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,c=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)c=f,f=g;for(;;){if(f===e)break t;if(c===n&&++u===o&&(l=s),c===i&&++d===r&&(a=s),(g=f.nextSibling)!==null)break;f=c,c=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jl={focusedElem:e,selectionRange:n},Wi=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,x=y.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:ut(t.type,v),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=td,td=!1,y}function yo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ma(t,n,i)}o=o.next}while(o!==r)}}function Ns(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 va(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 qp(e){var t=e.alternate;t!==null&&(e.alternate=null,qp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[Ao],delete t[na],delete t[Vg],delete t[Hg])),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 Zp(e){return e.tag===5||e.tag===3||e.tag===4}function nd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zp(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 ga(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=Gi));else if(r!==4&&(e=e.child,e!==null))for(ga(e,t,n),e=e.sibling;e!==null;)ga(e,t,n),e=e.sibling}function ya(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(ya(e,t,n),e=e.sibling;e!==null;)ya(e,t,n),e=e.sibling}var Se=null,ft=!1;function Zt(e,t,n){for(n=n.child;n!==null;)Jp(e,t,n),n=n.sibling}function Jp(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(ws,n)}catch{}switch(n.tag){case 5:Re||mr(n,t);case 6:var r=Se,o=ft;Se=null,Zt(e,t,n),Se=r,ft=o,Se!==null&&(ft?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(ft?(e=Se,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),No(e)):hl(Se,n.stateNode));break;case 4:r=Se,o=ft,Se=n.stateNode.containerInfo,ft=!0,Zt(e,t,n),Se=r,ft=o;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ma(n,t,s),o=o.next}while(o!==r)}Zt(e,t,n);break;case 1:if(!Re&&(mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}Zt(e,t,n);break;case 21:Zt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Zt(e,t,n),Re=r):Zt(e,t,n);break;default:Zt(e,t,n)}}function rd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sy),t.forEach(function(r){var o=vy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uy(r/1960))-r,10e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,ls=0,X&6)throw Error(b(331));var o=X;for(X|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Pu?Bn(e,0):ku|=n),$e(e,t)}function lh(e,t){t===0&&(e.mode&1?(t=ai,ai<<=1,!(ai&130023424)&&(ai=4194304)):t=1);var n=je();e=Bt(e,t),e!==null&&(Qo(e,t,n),$e(e,n))}function my(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lh(e,n)}function vy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),lh(e,n)}var ah;ah=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)De=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return De=!1,ry(e,t,n);De=!!(e.flags&131072)}else De=!1,se&&t.flags&1048576&&fp(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ji(e,t),e=t.pendingProps;var o=Ir(t,be.current);Sr(t,n),o=yu(null,t,r,e,o,n);var i=wu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(i=!0,Xi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pu(t),o.updater=Ts,t.stateNode=o,o._reactInternals=t,aa(t,r,e,n),t=da(null,t,r,!0,i,n)):(t.tag=0,se&&i&&su(t),_e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=yy(r),e=ut(r,e),o){case 0:t=ca(null,t,r,e,n);break e;case 1:t=Zc(null,t,r,e,n);break e;case 11:t=Xc(null,t,r,e,n);break e;case 14:t=qc(null,t,r,ut(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),ca(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Zc(e,t,r,o,n);case 3:e:{if(Wp(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yp(e,t),ts(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=$r(Error(b(423)),t),t=Jc(e,t,r,n,o);break e}else if(r!==o){o=$r(Error(b(424)),t),t=Jc(e,t,r,n,o);break e}else for(Ge=yn(t.stateNode.containerInfo.firstChild),Ye=t,se=!0,pt=null,n=vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dr(),r===o){t=Vt(e,t,n);break e}_e(e,t,r,n)}t=t.child}return t;case 5:return wp(t),e===null&&ia(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ea(r,o)?s=null:i!==null&&ea(r,i)&&(t.flags|=32),Hp(e,t),_e(e,t,s,n),t.child;case 6:return e===null&&ia(t),null;case 13:return Qp(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zr(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Xc(e,t,r,o,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,te(Ji,r._currentValue),r._currentValue=s,i!==null)if(vt(i.value,s)){if(i.children===o.children&&!ze.current){t=Vt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ft(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),sa(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(b(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),sa(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}_e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Sr(t,n),o=it(o),r=r(o),t.flags|=1,_e(e,t,r,n),t.child;case 14:return r=t.type,o=ut(r,t.pendingProps),o=ut(r.type,o),qc(e,t,r,o,n);case 15:return Bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),ji(e,t),t.tag=1,Fe(r)?(e=!0,Xi(t)):e=!1,Sr(t,n),Fp(t,r,o),aa(t,r,o,n),da(null,t,r,!0,e,n);case 19:return Kp(e,t,n);case 22:return Vp(e,t,n)}throw Error(b(156,t.tag))};function uh(e,t){return If(e,t)}function gy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new gy(e,t,n,r)}function bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yy(e){if(typeof e=="function")return bu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ga)return 11;if(e===Ya)return 14}return 2}function En(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ii(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")bu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case sr:return Vn(n.children,o,i,t);case Ka:s=8,o|=8;break;case Al:return e=rt(12,n,t,o|2),e.elementType=Al,e.lanes=i,e;case jl:return e=rt(13,n,t,o),e.elementType=jl,e.lanes=i,e;case Ll:return e=rt(19,n,t,o),e.elementType=Ll,e.lanes=i,e;case wf:return bs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gf:s=10;break e;case yf:s=9;break e;case Ga:s=11;break e;case Ya:s=14;break e;case nn:s=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Vn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function bs(e,t,n,r){return e=rt(22,e,r,t),e.elementType=wf,e.lanes=n,e.stateNode={isHidden:!1},e}function El(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Cl(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,o,i,s,l,a){return e=new wy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pu(i),e}function xy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ph)}catch(e){console.error(e)}}ph(),pf.exports=Ze;var Xo=pf.exports;const hh=ef(Xo);var mh,dd=Xo;mh=dd.createRoot,dd.hydrateRoot;const Py=1,Ty=1e6;let kl=0;function Ny(){return kl=(kl+1)%Number.MAX_SAFE_INTEGER,kl.toString()}const Pl=new Map,fd=e=>{if(Pl.has(e))return;const t=setTimeout(()=>{Pl.delete(e),So({type:"REMOVE_TOAST",toastId:e})},Ty);Pl.set(e,t)},Ry=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Py)};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?fd(n):e.toasts.forEach(r=>{fd(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)}}},Di=[];let zi={toasts:[]};function So(e){zi=Ry(zi,e),Di.forEach(t=>{t(zi)})}function by({...e}){const t=Ny(),n=o=>So({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>So({type:"DISMISS_TOAST",toastId:t});return So({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Oy(){const[e,t]=w.useState(zi);return w.useEffect(()=>(Di.push(t),()=>{const n=Di.indexOf(t);n>-1&&Di.splice(n,1)}),[e]),{...e,toast:by,dismiss:n=>So({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function _y(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function vh(...e){return t=>e.forEach(n=>_y(n,t))}function gt(...e){return w.useCallback(vh(...e),e)}function Ay(e,t=[]){let n=[];function r(i,s){const l=w.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:c,children:g,...y}=f,v=(c==null?void 0:c[e][a])||l,x=w.useMemo(()=>y,Object.values(y));return S.jsx(v.Provider,{value:x,children:g})}function d(f,c){const g=(c==null?void 0:c[e][a])||l,y=w.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,jy(o,...t)]}function jy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var cs=w.forwardRef((e,t)=>{const{children:n,...r}=e,o=w.Children.toArray(n),i=o.find(Ly);if(i){const s=i.props.children,l=o.map(a=>a===i?w.Children.count(s)>1?w.Children.only(null):w.isValidElement(s)?s.props.children:null:a);return S.jsx(Ca,{...r,ref:t,children:w.isValidElement(s)?w.cloneElement(s,void 0,l):null})}return S.jsx(Ca,{...r,ref:t,children:n})});cs.displayName="Slot";var Ca=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const o=Iy(n);return w.cloneElement(n,{...My(r,n.props),ref:t?vh(t,o):o})}return w.Children.count(n)>1?w.Children.only(null):null});Ca.displayName="SlotClone";var gh=({children:e})=>S.jsx(S.Fragment,{children:e});function Ly(e){return w.isValidElement(e)&&e.type===gh}function My(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Iy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Dy(e){const t=e+"CollectionProvider",[n,r]=Ay(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:y,children:v}=g,x=_.useRef(null),h=_.useRef(new Map).current;return S.jsx(o,{scope:y,itemMap:h,collectionRef:x,children:v})};s.displayName=t;const l=e+"CollectionSlot",a=_.forwardRef((g,y)=>{const{scope:v,children:x}=g,h=i(l,v),p=gt(y,h.collectionRef);return S.jsx(cs,{ref:p,children:x})});a.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=_.forwardRef((g,y)=>{const{scope:v,children:x,...h}=g,p=_.useRef(null),m=gt(y,p),E=i(u,v);return _.useEffect(()=>(E.itemMap.set(p,{ref:p,...h}),()=>void E.itemMap.delete(p))),S.jsx(cs,{[d]:"",ref:m,children:x})});f.displayName=u;function c(g){const y=i(e+"CollectionConsumer",g);return _.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const h=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((E,C)=>h.indexOf(E.ref.current)-h.indexOf(C.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:a,ItemSlot:f},c,r]}function yh(e,t=[]){let n=[];function r(i,s){const l=w.createContext(s),a=n.length;n=[...n,s];const u=f=>{var h;const{scope:c,children:g,...y}=f,v=((h=c==null?void 0:c[e])==null?void 0:h[a])||l,x=w.useMemo(()=>y,Object.values(y));return S.jsx(v.Provider,{value:x,children:g})};u.displayName=i+"Provider";function d(f,c){var v;const g=((v=c==null?void 0:c[e])==null?void 0:v[a])||l,y=w.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,zy(o,...t)]}function zy(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Fy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Be=Fy.reduce((e,t)=>{const n=w.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?cs:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wh(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function Ot(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $y(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Uy="DismissableLayer",ka="dismissableLayer.update",By="dismissableLayer.pointerDownOutside",Vy="dismissableLayer.focusOutside",pd,xh=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=w.useContext(xh),[d,f]=w.useState(null),c=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=w.useState({}),y=gt(t,T=>f(T)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=v.indexOf(x),p=d?v.indexOf(d):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=h,C=Wy(T=>{const R=T.target,I=[...u.branches].some(A=>A.contains(R));!E||I||(o==null||o(T),s==null||s(T),T.defaultPrevented||l==null||l())},c),P=Qy(T=>{const R=T.target;[...u.branches].some(A=>A.contains(R))||(i==null||i(T),s==null||s(T),T.defaultPrevented||l==null||l())},c);return $y(T=>{p===u.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},c),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(pd=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),hd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=pd)}},[d,c,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),hd())},[d,u]),w.useEffect(()=>{const T=()=>g({});return document.addEventListener(ka,T),()=>document.removeEventListener(ka,T)},[]),S.jsx(Be.div,{...a,ref:y,style:{pointerEvents:m?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,C.onPointerDownCapture)})});Lu.displayName=Uy;var Hy="DismissableLayerBranch",Sh=w.forwardRef((e,t)=>{const n=w.useContext(xh),r=w.useRef(null),o=gt(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(Be.div,{...e,ref:o})});Sh.displayName=Hy;function Wy(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Eh(By,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Qy(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=w.useRef(!1);return w.useEffect(()=>{const o=i=>{i.target&&!r.current&&Eh(Vy,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hd(){const e=new CustomEvent(ka);document.dispatchEvent(e)}function Eh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wh(o,i):o.dispatchEvent(i)}var Ky=Lu,Gy=Sh,Yn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},Yy="Portal",Ch=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=w.useState(!1);Yn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?hh.createPortal(S.jsx(Be.div,{...r,ref:t}),s):null});Ch.displayName=Yy;function Xy(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var Mu=e=>{const{present:t,children:n}=e,r=qy(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=gt(r.ref,Zy(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:i}):null};Mu.displayName="Presence";function qy(e){const[t,n]=w.useState(),r=w.useRef({}),o=w.useRef(e),i=w.useRef("none"),s=e?"mounted":"unmounted",[l,a]=Xy(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=xi(r.current);i.current=l==="mounted"?u:"none"},[l]),Yn(()=>{const u=r.current,d=o.current;if(d!==e){const c=i.current,g=xi(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&c!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Yn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=g=>{const v=xi(r.current).includes(g.animationName);if(g.target===t&&v&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},c=g=>{g.target===t&&(i.current=xi(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function xi(e){return(e==null?void 0:e.animationName)||"none"}function Zy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Jy({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=e0({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=Ot(n),a=w.useCallback(u=>{if(i){const f=typeof u=="function"?u(e):u;f!==e&&l(f)}else o(u)},[i,e,o,l]);return[s,a]}function e0({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),i=Ot(t);return w.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var t0="VisuallyHidden",Ls=w.forwardRef((e,t)=>S.jsx(Be.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}}));Ls.displayName=t0;var n0=Ls,Iu="ToastProvider",[Du,r0,o0]=Dy("Toast"),[kh,AS]=yh("Toast",[o0]),[i0,Ms]=kh(Iu),Ph=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=w.useState(null),[u,d]=w.useState(0),f=w.useRef(!1),c=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Iu}\`. Expected non-empty \`string\`.`),S.jsx(Du.Provider,{scope:t,children:S.jsx(i0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:w.useCallback(()=>d(g=>g+1),[]),onToastRemove:w.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:c,children:s})})};Ph.displayName=Iu;var Th="ToastViewport",s0=["F8"],Pa="toast.viewportPause",Ta="toast.viewportResume",Nh=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=s0,label:o="Notifications ({hotkey})",...i}=e,s=Ms(Th,n),l=r0(n),a=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),c=gt(t,f,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;w.useEffect(()=>{const x=h=>{var m;r.length!==0&&r.every(E=>h[E]||h.code===E)&&((m=f.current)==null||m.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=a.current,h=f.current;if(y&&x&&h){const p=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(Pa);h.dispatchEvent(P),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(Ta);h.dispatchEvent(P),s.isClosePausedRef.current=!1}},E=P=>{!x.contains(P.relatedTarget)&&m()},C=()=>{x.contains(document.activeElement)||m()};return x.addEventListener("focusin",p),x.addEventListener("focusout",E),x.addEventListener("pointermove",p),x.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{x.removeEventListener("focusin",p),x.removeEventListener("focusout",E),x.removeEventListener("pointermove",p),x.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[y,s.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:x})=>{const p=l().map(m=>{const E=m.ref.current,C=[E,...w0(E)];return x==="forwards"?C:C.reverse()});return(x==="forwards"?p.reverse():p).flat()},[l]);return w.useEffect(()=>{const x=f.current;if(x){const h=p=>{var C,P,T;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const R=document.activeElement,I=p.shiftKey;if(p.target===x&&I){(C=u.current)==null||C.focus();return}const D=v({tabbingDirection:I?"backwards":"forwards"}),W=D.findIndex(j=>j===R);Tl(D.slice(W+1))?p.preventDefault():I?(P=u.current)==null||P.focus():(T=d.current)==null||T.focus()}};return x.addEventListener("keydown",h),()=>x.removeEventListener("keydown",h)}},[l,v]),S.jsxs(Gy,{ref:a,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&S.jsx(Na,{ref:u,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"forwards"});Tl(x)}}),S.jsx(Du.Slot,{scope:n,children:S.jsx(Be.ol,{tabIndex:-1,...i,ref:c})}),y&&S.jsx(Na,{ref:d,onFocusFromOutsideViewport:()=>{const x=v({tabbingDirection:"backwards"});Tl(x)}})]})});Nh.displayName=Th;var Rh="ToastFocusProxy",Na=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Ms(Rh,n);return S.jsx(Ls,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Na.displayName=Rh;var Is="Toast",l0="toast.swipeStart",a0="toast.swipeMove",u0="toast.swipeCancel",c0="toast.swipeEnd",bh=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l=!0,a]=Jy({prop:r,defaultProp:o,onChange:i});return S.jsx(Mu,{present:n||l,children:S.jsx(p0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:Ot(e.onPause),onResume:Ot(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),a(!1)})})})});bh.displayName=Is;var[d0,f0]=kh(Is,{onClose(){}}),p0=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:c,onSwipeEnd:g,...y}=e,v=Ms(Is,n),[x,h]=w.useState(null),p=gt(t,j=>h(j)),m=w.useRef(null),E=w.useRef(null),C=o||v.duration,P=w.useRef(0),T=w.useRef(C),R=w.useRef(0),{onToastAdd:I,onToastRemove:A}=v,$=Ot(()=>{var Q;(x==null?void 0:x.contains(document.activeElement))&&((Q=v.viewport)==null||Q.focus()),s()}),D=w.useCallback(j=>{!j||j===1/0||(window.clearTimeout(R.current),P.current=new Date().getTime(),R.current=window.setTimeout($,j))},[$]);w.useEffect(()=>{const j=v.viewport;if(j){const Q=()=>{D(T.current),u==null||u()},U=()=>{const K=new Date().getTime()-P.current;T.current=T.current-K,window.clearTimeout(R.current),a==null||a()};return j.addEventListener(Pa,U),j.addEventListener(Ta,Q),()=>{j.removeEventListener(Pa,U),j.removeEventListener(Ta,Q)}}},[v.viewport,C,a,u,D]),w.useEffect(()=>{i&&!v.isClosePausedRef.current&&D(C)},[i,C,v.isClosePausedRef,D]),w.useEffect(()=>(I(),()=>A()),[I,A]);const W=w.useMemo(()=>x?Ih(x):null,[x]);return v.viewport?S.jsxs(S.Fragment,{children:[W&&S.jsx(h0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),S.jsx(d0,{scope:n,onClose:$,children:Xo.createPortal(S.jsx(Du.ItemSlot,{scope:n,children:S.jsx(Ky,{asChild:!0,onEscapeKeyDown:ve(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||$(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:S.jsx(Be.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,j=>{j.key==="Escape"&&(l==null||l(j.nativeEvent),j.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ve(e.onPointerDown,j=>{j.button===0&&(m.current={x:j.clientX,y:j.clientY})}),onPointerMove:ve(e.onPointerMove,j=>{if(!m.current)return;const Q=j.clientX-m.current.x,U=j.clientY-m.current.y,K=!!E.current,k=["left","right"].includes(v.swipeDirection),O=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,z=k?O(0,Q):0,M=k?0:O(0,U),F=j.pointerType==="touch"?10:2,Y={x:z,y:M},le={originalEvent:j,delta:Y};K?(E.current=Y,Si(a0,f,le,{discrete:!1})):md(Y,v.swipeDirection,F)?(E.current=Y,Si(l0,d,le,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(Q)>F||Math.abs(U)>F)&&(m.current=null)}),onPointerUp:ve(e.onPointerUp,j=>{const Q=E.current,U=j.target;if(U.hasPointerCapture(j.pointerId)&&U.releasePointerCapture(j.pointerId),E.current=null,m.current=null,Q){const K=j.currentTarget,k={originalEvent:j,delta:Q};md(Q,v.swipeDirection,v.swipeThreshold)?Si(c0,g,k,{discrete:!0}):Si(u0,c,k,{discrete:!0}),K.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),h0=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ms(Is,t),[i,s]=w.useState(!1),[l,a]=w.useState(!1);return g0(()=>s(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:S.jsx(Ch,{asChild:!0,children:S.jsx(Ls,{...r,children:i&&S.jsxs(S.Fragment,{children:[o.label," ",n]})})})},m0="ToastTitle",Oh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Be.div,{...r,ref:t})});Oh.displayName=m0;var v0="ToastDescription",_h=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return S.jsx(Be.div,{...r,ref:t})});_h.displayName=v0;var Ah="ToastAction",jh=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?S.jsx(Mh,{altText:n,asChild:!0,children:S.jsx(zu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Ah}\`. Expected non-empty \`string\`.`),null)});jh.displayName=Ah;var Lh="ToastClose",zu=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=f0(Lh,n);return S.jsx(Mh,{asChild:!0,children:S.jsx(Be.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,o.onClose)})})});zu.displayName=Lh;var Mh=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return S.jsx(Be.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ih(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),y0(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Ih(r))}}),t}function Si(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wh(o,i):o.dispatchEvent(i)}var md=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function g0(e=()=>{}){const t=Ot(e);Yn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function y0(e){return e.nodeType===e.ELEMENT_NODE}function w0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var x0=Ph,Dh=Nh,zh=bh,Fh=Oh,$h=_h,Uh=jh,Bh=zu;function Vh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,gd=Hh,S0=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return gd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=i==null?void 0:i[u];if(d===null)return null;const c=vd(d)||vd(f);return o[u][c]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,c]=d;return c===void 0||(u[f]=c),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:c,...g}=d;return Object.entries(g).every(y=>{let[v,x]=y;return Array.isArray(x)?x.includes({...i,...l}[v]):{...i,...l}[v]===x})?[...u,f,c]:u},[]);return gd(e,s,a,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 E0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wh=(...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 C0={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 k0=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>w.createElement("svg",{ref:a,...C0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wh("lucide",o),...l},[...s.map(([u,d])=>w.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** * @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 P0=(e,t)=>{const n=w.forwardRef(({className:r,...o},i)=>w.createElement(k0,{ref:i,iconNode:t,className:Wh(`lucide-${E0(e)}`,r),...o}));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 T0=P0("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Fu="-",N0=e=>{const t=b0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(Fu);return l[0]===""&&l.length!==1&&l.shift(),Qh(l,t)||R0(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Qh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Fu);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},yd=/^\[(.+)\]$/,R0=e=>{if(yd.test(e)){const t=yd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},b0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _0(Object.entries(e.classGroups),n).forEach(([i,s])=>{Ra(s,r,i,t)}),r},Ra=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(O0(o)){Ra(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Ra(s,wd(t,i),n,r)})})},wd=(e,t)=>{let n=e;return t.split(Fu).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},O0=e=>e.isThemeGetter,_0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,A0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Kh="!",j0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,d=0,f;for(let x=0;xd?f-d:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:s}):s},L0=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},M0=e=>({cache:A0(e.cacheSize),parseClassName:j0(e),...N0(e)}),I0=/\s+/,D0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(I0);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:d,hasImportantModifier:f,baseClassName:c,maybePostfixModifierPosition:g}=n(u);let y=!!g,v=r(y?c.substring(0,g):c);if(!v){if(!y){l=u+(l.length>0?" "+l:l);continue}if(v=r(c),!v){l=u+(l.length>0?" "+l:l);continue}y=!1}const x=L0(d).join(":"),h=f?x+Kh:x,p=h+v;if(i.includes(p))continue;i.push(p);const m=o(v,y);for(let E=0;E0?" "+l:l)}return l};function z0(){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=M0(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const d=D0(a,n);return o(a,d),d}return function(){return i(z0.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,$0=/^\d+\/\d+$/,U0=new Set(["px","full","screen"]),B0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V0=/\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$/,H0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,W0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>Cr(e)||U0.has(e)||$0.test(e),Jt=e=>Kr(e,"length",ew),Cr=e=>!!e&&!Number.isNaN(Number(e)),Nl=e=>Kr(e,"number",Cr),io=e=>!!e&&Number.isInteger(Number(e)),K0=e=>e.endsWith("%")&&Cr(e.slice(0,-1)),V=e=>Yh.test(e),en=e=>B0.test(e),G0=new Set(["length","size","percentage"]),Y0=e=>Kr(e,G0,Xh),X0=e=>Kr(e,"position",Xh),q0=new Set(["image","url"]),Z0=e=>Kr(e,q0,nw),J0=e=>Kr(e,"",tw),so=()=>!0,Kr=(e,t,n)=>{const r=Yh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ew=e=>V0.test(e)&&!H0.test(e),Xh=()=>!1,tw=e=>W0.test(e),nw=e=>Q0.test(e),rw=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),d=re("hueRotate"),f=re("invert"),c=re("gap"),g=re("gradientColorStops"),y=re("gradientColorStopPositions"),v=re("inset"),x=re("margin"),h=re("opacity"),p=re("padding"),m=re("saturate"),E=re("scale"),C=re("sepia"),P=re("skew"),T=re("space"),R=re("translate"),I=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",V,t],D=()=>[V,t],W=()=>["",jt,Jt],j=()=>["auto",Cr,V],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",V],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Cr,V];return{cacheSize:500,separator:":",theme:{colors:[so],spacing:[jt,Jt],blur:["none","",en,V],brightness:M(),borderColor:[e],borderRadius:["none","","full",en,V],borderSpacing:D(),borderWidth:W(),contrast:M(),grayscale:O(),hueRotate:M(),invert:O(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[K0,Jt],inset:$(),margin:$(),opacity:M(),padding:D(),saturate:M(),scale:M(),sepia:O(),skew:M(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[en]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:[...Q(),V]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",io,V]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",io,V]}],"grid-cols":[{"grid-cols":[so]}],"col-start-end":[{col:["auto",{span:["full",io,V]},V]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[so]}],"row-start-end":[{row:["auto",{span:[io,V]},V]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[c]}],"gap-x":[{"gap-x":[c]}],"gap-y":[{"gap-y":[c]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[en]},en]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",en,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nl]}],"font-family":[{font:[so]}],"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",V]}],"line-clamp":[{"line-clamp":["none",Cr,Nl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,Jt]}],"underline-offset":[{"underline-offset":["auto",jt,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),X0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Y0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[jt,V]}],"outline-w":[{outline:[jt,Jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[jt,Jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",en,J0]}],"shadow-color":[{shadow:[so]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",en,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[io,V]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jt,Jt,Nl]}],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"]}}},ow=F0(rw);function Jn(...e){return ow(Hh(e))}const iw=x0,qh=w.forwardRef(({className:e,...t},n)=>S.jsx(Dh,{ref:n,className:Jn("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}));qh.displayName=Dh.displayName;const sw=S0("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"}}),Zh=w.forwardRef(({className:e,variant:t,...n},r)=>S.jsx(zh,{ref:r,className:Jn(sw({variant:t}),e),...n}));Zh.displayName=zh.displayName;const lw=w.forwardRef(({className:e,...t},n)=>S.jsx(Uh,{ref:n,className:Jn("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}));lw.displayName=Uh.displayName;const Jh=w.forwardRef(({className:e,...t},n)=>S.jsx(Bh,{ref:n,className:Jn("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:S.jsx(T0,{className:"h-4 w-4"})}));Jh.displayName=Bh.displayName;const em=w.forwardRef(({className:e,...t},n)=>S.jsx(Fh,{ref:n,className:Jn("text-sm font-semibold",e),...t}));em.displayName=Fh.displayName;const tm=w.forwardRef(({className:e,...t},n)=>S.jsx($h,{ref:n,className:Jn("text-sm opacity-90",e),...t}));tm.displayName=$h.displayName;function aw(){const{toasts:e}=Oy();return S.jsxs(iw,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return S.jsxs(Zh,{...i,children:[S.jsxs("div",{className:"grid gap-1",children:[n&&S.jsx(em,{children:n}),r&&S.jsx(tm,{children:r})]}),o,S.jsx(Jh,{})]},t)}),S.jsx(qh,{})]})}var xd=["light","dark"],uw="(prefers-color-scheme: dark)",cw=w.createContext(void 0),dw={setTheme:e=>{},themes:[]},fw=()=>{var e;return(e=w.useContext(cw))!=null?e:dw};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?xd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",c=(y,v=!1,x=!0)=>{let h=s?s[y]:y,p=v?y+"|| ''":`'${h}'`,m="";return o&&x&&!v&&xd.includes(y)&&(m+=`d.style.colorScheme = '${y}';`),n==="class"?v||h?m+=`c.add(${p})`:m+="null":h&&(m+=`d[s](n,${p})`),m},g=e?`!function(){${d}${c(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${uw}',m=window.matchMedia(t);if(m.media!==t||m.matches){${c("dark")}}else{${c("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}${u?"":"else{"+c(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${c(s?"x[e]":"e",!0)}}else{${c(i,!1,!1)};}${f}}catch(t){}}();`;return w.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:g}})});var pw=e=>{switch(e){case"success":return vw;case"info":return yw;case"warning":return gw;case"error":return ww;default:return null}},hw=Array(12).fill(0),mw=({visible:e})=>_.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},_.createElement("div",{className:"sonner-spinner"},hw.map((t,n)=>_.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),vw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),gw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},_.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"})),yw=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),ww=_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},_.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"})),xw=()=>{let[e,t]=_.useState(document.hidden);return _.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},ba=1,Sw=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,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:ba++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},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(),o=n!==void 0;return r.then(async i=>{if(Cw(i)&&!i.ok){o=!1;let s=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:s,description:l})}else if(t.success!==void 0){o=!1;let s=typeof t.success=="function"?await t.success(i):t.success,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:s,description:l})}}).catch(async i=>{if(t.error!==void 0){o=!1;let s=typeof t.error=="function"?await t.error(i):t.error,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:s,description:l})}}).finally(()=>{var i;o&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||ba++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},We=new Sw,Ew=(e,t)=>{let n=(t==null?void 0:t.id)||ba++;return We.addToast({title:e,...t,id:n}),n},Cw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",kw=Ew,Pw=()=>We.toasts;Object.assign(kw,{success:We.success,info:We.info,warning:We.warning,error:We.error,custom:We.custom,message:We.message,promise:We.promise,dismiss:We.dismiss,loading:We.loading},{getHistory:Pw});function Tw(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))}Tw(`: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 Ei(e){return e.label!==void 0}var Nw=3,Rw="32px",bw=4e3,Ow=356,_w=14,Aw=20,jw=200;function Lw(...e){return e.filter(Boolean).join(" ")}var Mw=e=>{var t,n,r,o,i,s,l,a,u,d;let{invert:f,toast:c,unstyled:g,interacting:y,setHeights:v,visibleToasts:x,heights:h,index:p,toasts:m,expanded:E,removeToast:C,defaultRichColors:P,closeButton:T,style:R,cancelButtonStyle:I,actionButtonStyle:A,className:$="",descriptionClassName:D="",duration:W,position:j,gap:Q,loadingIcon:U,expandByDefault:K,classNames:k,icons:O,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:M,cn:F}=e,[Y,le]=_.useState(!1),[Ve,Z]=_.useState(!1),[lt,Kt]=_.useState(!1),[Gt,Yt]=_.useState(!1),[Zo,er]=_.useState(0),[An,Xr]=_.useState(0),Jo=_.useRef(null),Xt=_.useRef(null),Ks=p===0,Gs=p+1<=x,xe=c.type,tr=c.dismissible!==!1,Wm=c.className||"",Qm=c.descriptionClassName||"",ei=_.useMemo(()=>h.findIndex(B=>B.toastId===c.id)||0,[h,c.id]),Km=_.useMemo(()=>{var B;return(B=c.closeButton)!=null?B:T},[c.closeButton,T]),qu=_.useMemo(()=>c.duration||W||bw,[c.duration,W]),Ys=_.useRef(0),nr=_.useRef(0),Zu=_.useRef(0),rr=_.useRef(null),[Ju,Gm]=j.split("-"),ec=_.useMemo(()=>h.reduce((B,ne,ee)=>ee>=ei?B:B+ne.height,0),[h,ei]),tc=xw(),Ym=c.invert||f,Xs=xe==="loading";nr.current=_.useMemo(()=>ei*Q+ec,[ei,ec]),_.useEffect(()=>{le(!0)},[]),_.useLayoutEffect(()=>{if(!Y)return;let B=Xt.current,ne=B.style.height;B.style.height="auto";let ee=B.getBoundingClientRect().height;B.style.height=ne,Xr(ee),v(xt=>xt.find(St=>St.toastId===c.id)?xt.map(St=>St.toastId===c.id?{...St,height:ee}:St):[{toastId:c.id,height:ee,position:c.position},...xt])},[Y,c.title,c.description,v,c.id]);let qt=_.useCallback(()=>{Z(!0),er(nr.current),v(B=>B.filter(ne=>ne.toastId!==c.id)),setTimeout(()=>{C(c)},jw)},[c,C,v,nr]);_.useEffect(()=>{if(c.promise&&xe==="loading"||c.duration===1/0||c.type==="loading")return;let B,ne=qu;return E||y||M&&tc?(()=>{if(Zu.current{var ee;(ee=c.onAutoClose)==null||ee.call(c,c),qt()},ne)),()=>clearTimeout(B)},[E,y,K,c,qu,qt,c.promise,xe,M,tc]),_.useEffect(()=>{let B=Xt.current;if(B){let ne=B.getBoundingClientRect().height;return Xr(ne),v(ee=>[{toastId:c.id,height:ne,position:c.position},...ee]),()=>v(ee=>ee.filter(xt=>xt.toastId!==c.id))}},[v,c.id]),_.useEffect(()=>{c.delete&&qt()},[qt,c.delete]);function Xm(){return O!=null&&O.loading?_.createElement("div",{className:"sonner-loader","data-visible":xe==="loading"},O.loading):U?_.createElement("div",{className:"sonner-loader","data-visible":xe==="loading"},U):_.createElement(mw,{visible:xe==="loading"})}return _.createElement("li",{"aria-live":c.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Xt,className:F($,Wm,k==null?void 0:k.toast,(t=c==null?void 0:c.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[xe],(n=c==null?void 0:c.classNames)==null?void 0:n[xe]),"data-sonner-toast":"","data-rich-colors":(r=c.richColors)!=null?r:P,"data-styled":!(c.jsx||c.unstyled||g),"data-mounted":Y,"data-promise":!!c.promise,"data-removed":Ve,"data-visible":Gs,"data-y-position":Ju,"data-x-position":Gm,"data-index":p,"data-front":Ks,"data-swiping":lt,"data-dismissible":tr,"data-type":xe,"data-invert":Ym,"data-swipe-out":Gt,"data-expanded":!!(E||K&&Y),style:{"--index":p,"--toasts-before":p,"--z-index":m.length-p,"--offset":`${Ve?Zo:nr.current}px`,"--initial-height":K?"auto":`${An}px`,...R,...c.style},onPointerDown:B=>{Xs||!tr||(Jo.current=new Date,er(nr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(Kt(!0),rr.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,ne,ee,xt;if(Gt||!tr)return;rr.current=null;let St=Number(((B=Xt.current)==null?void 0:B.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ti=new Date().getTime()-((ne=Jo.current)==null?void 0:ne.getTime()),qm=Math.abs(St)/ti;if(Math.abs(St)>=Aw||qm>.11){er(nr.current),(ee=c.onDismiss)==null||ee.call(c,c),qt(),Yt(!0);return}(xt=Xt.current)==null||xt.style.setProperty("--swipe-amount","0px"),Kt(!1)},onPointerMove:B=>{var ne;if(!rr.current||!tr)return;let ee=B.clientY-rr.current.y,xt=B.clientX-rr.current.x,St=(Ju==="top"?Math.min:Math.max)(0,ee),ti=B.pointerType==="touch"?10:2;Math.abs(St)>ti?(ne=Xt.current)==null||ne.style.setProperty("--swipe-amount",`${ee}px`):Math.abs(xt)>ti&&(rr.current=null)}},Km&&!c.jsx?_.createElement("button",{"aria-label":z,"data-disabled":Xs,"data-close-button":!0,onClick:Xs||!tr?()=>{}:()=>{var B;qt(),(B=c.onDismiss)==null||B.call(c,c)},className:F(k==null?void 0:k.closeButton,(o=c==null?void 0:c.classNames)==null?void 0:o.closeButton)},_.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"},_.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,c.jsx||_.isValidElement(c.title)?c.jsx||c.title:_.createElement(_.Fragment,null,xe||c.icon||c.promise?_.createElement("div",{"data-icon":"",className:F(k==null?void 0:k.icon,(i=c==null?void 0:c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Xm():null,c.type!=="loading"?c.icon||(O==null?void 0:O[xe])||pw(xe):null):null,_.createElement("div",{"data-content":"",className:F(k==null?void 0:k.content,(s=c==null?void 0:c.classNames)==null?void 0:s.content)},_.createElement("div",{"data-title":"",className:F(k==null?void 0:k.title,(l=c==null?void 0:c.classNames)==null?void 0:l.title)},c.title),c.description?_.createElement("div",{"data-description":"",className:F(D,Qm,k==null?void 0:k.description,(a=c==null?void 0:c.classNames)==null?void 0:a.description)},c.description):null),_.isValidElement(c.cancel)?c.cancel:c.cancel&&Ei(c.cancel)?_.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||I,onClick:B=>{var ne,ee;Ei(c.cancel)&&tr&&((ee=(ne=c.cancel).onClick)==null||ee.call(ne,B),qt())},className:F(k==null?void 0:k.cancelButton,(u=c==null?void 0:c.classNames)==null?void 0:u.cancelButton)},c.cancel.label):null,_.isValidElement(c.action)?c.action:c.action&&Ei(c.action)?_.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||A,onClick:B=>{var ne,ee;Ei(c.action)&&(B.defaultPrevented||((ee=(ne=c.action).onClick)==null||ee.call(ne,B),qt()))},className:F(k==null?void 0:k.actionButton,(d=c==null?void 0:c.classNames)==null?void 0:d.actionButton)},c.action.label):null))};function Sd(){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 Iw=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:l,theme:a="light",richColors:u,duration:d,style:f,visibleToasts:c=Nw,toastOptions:g,dir:y=Sd(),gap:v=_w,loadingIcon:x,icons:h,containerAriaLabel:p="Notifications",pauseWhenPageIsHidden:m,cn:E=Lw}=e,[C,P]=_.useState([]),T=_.useMemo(()=>Array.from(new Set([n].concat(C.filter(M=>M.position).map(M=>M.position)))),[C,n]),[R,I]=_.useState([]),[A,$]=_.useState(!1),[D,W]=_.useState(!1),[j,Q]=_.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=_.useRef(null),K=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=_.useRef(null),O=_.useRef(!1),z=_.useCallback(M=>{var F;(F=C.find(Y=>Y.id===M.id))!=null&&F.delete||We.dismiss(M.id),P(Y=>Y.filter(({id:le})=>le!==M.id))},[C]);return _.useEffect(()=>We.subscribe(M=>{if(M.dismiss){P(F=>F.map(Y=>Y.id===M.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{hh.flushSync(()=>{P(F=>{let Y=F.findIndex(le=>le.id===M.id);return Y!==-1?[...F.slice(0,Y),{...F[Y],...M},...F.slice(Y+1)]:[M,...F]})})})}),[]),_.useEffect(()=>{if(a!=="system"){Q(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:M})=>{Q(M?"dark":"light")})},[a]),_.useEffect(()=>{C.length<=1&&$(!1)},[C]),_.useEffect(()=>{let M=F=>{var Y,le;r.every(Ve=>F[Ve]||F.code===Ve)&&($(!0),(Y=U.current)==null||Y.focus()),F.code==="Escape"&&(document.activeElement===U.current||(le=U.current)!=null&&le.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[r]),_.useEffect(()=>{if(U.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,O.current=!1)}},[U.current]),C.length?_.createElement("section",{"aria-label":`${p} ${K}`,tabIndex:-1},T.map((M,F)=>{var Y;let[le,Ve]=M.split("-");return _.createElement("ol",{key:M,dir:y==="auto"?Sd():y,tabIndex:-1,ref:U,className:s,"data-sonner-toaster":!0,"data-theme":j,"data-y-position":le,"data-x-position":Ve,style:{"--front-toast-height":`${((Y=R[0])==null?void 0:Y.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||Rw,"--width":`${Ow}px`,"--gap":`${v}px`,...f},onBlur:Z=>{O.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(O.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||O.current||(O.current=!0,k.current=Z.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{D||$(!1)},onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},C.filter(Z=>!Z.position&&F===0||Z.position===M).map((Z,lt)=>{var Kt,Gt;return _.createElement(Mw,{key:Z.id,icons:h,index:lt,toast:Z,defaultRichColors:u,duration:(Kt=g==null?void 0:g.duration)!=null?Kt:d,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:t,visibleToasts:c,closeButton:(Gt=g==null?void 0:g.closeButton)!=null?Gt:i,interacting:D,position:M,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:z,toasts:C.filter(Yt=>Yt.position==Z.position),heights:R.filter(Yt=>Yt.position==Z.position),setHeights:I,expandByDefault:o,gap:v,loadingIcon:x,expanded:A,pauseWhenPageIsHidden:m,cn:E})}))})):null};const Dw=({...e})=>{const{theme:t="system"}=fw();return S.jsx(Iw,{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})},zw=["top","right","bottom","left"],Pn=Math.min,Ke=Math.max,ds=Math.round,Ci=Math.floor,Tn=e=>({x:e,y:e}),Fw={left:"right",right:"left",bottom:"top",top:"bottom"},$w={start:"end",end:"start"};function Oa(e,t,n){return Ke(e,Pn(t,n))}function Ht(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function Gr(e){return e.split("-")[1]}function $u(e){return e==="x"?"y":"x"}function Uu(e){return e==="y"?"height":"width"}function Nn(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function Bu(e){return $u(Nn(e))}function Uw(e,t,n){n===void 0&&(n=!1);const r=Gr(e),o=Bu(e),i=Uu(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fs(s)),[s,fs(s)]}function Bw(e){const t=fs(e);return[_a(e),t,_a(t)]}function _a(e){return e.replace(/start|end/g,t=>$w[t])}function Vw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Hw(e,t,n,r){const o=Gr(e);let i=Vw(Wt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(_a)))),i}function fs(e){return e.replace(/left|right|bottom|top/g,t=>Fw[t])}function Ww(e){return{top:0,right:0,bottom:0,left:0,...e}}function nm(e){return typeof e!="number"?Ww(e):{top:e,right:e,bottom:e,left:e}}function ps(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ed(e,t,n){let{reference:r,floating:o}=e;const i=Nn(t),s=Bu(t),l=Uu(s),a=Wt(t),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,c=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Gr(t)){case"start":g[s]-=c*(n&&u?-1:1);break;case"end":g[s]+=c*(n&&u?-1:1);break}return g}const Qw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ed(u,r,a),c=r,g={},y=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:d=0}=Ht(e,t)||{};if(u==null)return{};const f=nm(d),c={x:n,y:r},g=Bu(o),y=Uu(g),v=await s.getDimensions(u),x=g==="y",h=x?"top":"left",p=x?"bottom":"right",m=x?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[g]-c[g]-i.floating[y],C=c[g]-i.reference[g],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let T=P?P[m]:0;(!T||!await(s.isElement==null?void 0:s.isElement(P)))&&(T=l.floating[m]||i.floating[y]);const R=E/2-C/2,I=T/2-v[y]/2-1,A=Pn(f[h],I),$=Pn(f[p],I),D=A,W=T-v[y]-$,j=T/2-v[y]/2+R,Q=Oa(D,j,W),U=!a.arrow&&Gr(o)!=null&&j!==Q&&i.reference[y]/2-(jj<=0)){var $,D;const j=((($=i.flip)==null?void 0:$.index)||0)+1,Q=T[j];if(Q)return{data:{index:j,overflows:A},reset:{placement:Q}};let U=(D=A.filter(K=>K.overflows[0]<=0).sort((K,k)=>K.overflows[1]-k.overflows[1])[0])==null?void 0:D.placement;if(!U)switch(g){case"bestFit":{var W;const K=(W=A.filter(k=>{if(P){const O=Nn(k.placement);return O===p||O==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(O=>O>0).reduce((O,z)=>O+z,0)]).sort((k,O)=>k[1]-O[1])[0])==null?void 0:W[0];K&&(U=K);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kd(e){return zw.some(t=>e[t]>=0)}const Yw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ht(e,t);switch(r){case"referenceHidden":{const i=await Fo(t,{...o,elementContext:"reference"}),s=Cd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:kd(s)}}}case"escaped":{const i=await Fo(t,{...o,altBoundary:!0}),s=Cd(i,n.floating);return{data:{escapedOffsets:s,escaped:kd(s)}}}default:return{}}}}};async function Xw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Wt(n),l=Gr(n),a=Nn(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&a?-1:1,f=Ht(t,e);let{mainAxis:c,crossAxis:g,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),a?{x:g*d,y:c*u}:{x:c*u,y:g*d}}const qw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Xw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Zw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:h,y:p}=x;return{x:h,y:p}}},...a}=Ht(e,t),u={x:n,y:r},d=await Fo(t,a),f=Nn(Wt(o)),c=$u(f);let g=u[c],y=u[f];if(i){const x=c==="y"?"top":"left",h=c==="y"?"bottom":"right",p=g+d[x],m=g-d[h];g=Oa(p,g,m)}if(s){const x=f==="y"?"top":"left",h=f==="y"?"bottom":"right",p=y+d[x],m=y-d[h];y=Oa(p,y,m)}const v=l.fn({...t,[c]:g,[f]:y});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[c]:i,[f]:s}}}}}},Jw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Ht(e,t),d={x:n,y:r},f=Nn(o),c=$u(f);let g=d[c],y=d[f];const v=Ht(l,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const m=c==="y"?"height":"width",E=i.reference[c]-i.floating[m]+x.mainAxis,C=i.reference[c]+i.reference[m]-x.mainAxis;gC&&(g=C)}if(u){var h,p;const m=c==="y"?"width":"height",E=["top","left"].includes(Wt(o)),C=i.reference[f]-i.floating[m]+(E&&((h=s.offset)==null?void 0:h[f])||0)+(E?0:x.crossAxis),P=i.reference[f]+i.reference[m]+(E?0:((p=s.offset)==null?void 0:p[f])||0)-(E?x.crossAxis:0);yP&&(y=P)}return{[c]:g,[f]:y}}}},e1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Ht(e,t),d=await Fo(t,u),f=Wt(o),c=Gr(o),g=Nn(o)==="y",{width:y,height:v}=i.floating;let x,h;f==="top"||f==="bottom"?(x=f,h=c===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,x=c==="end"?"top":"bottom");const p=v-d.top-d.bottom,m=y-d.left-d.right,E=Pn(v-d[x],p),C=Pn(y-d[h],m),P=!t.middlewareData.shift;let T=E,R=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=p),P&&!c){const A=Ke(d.left,0),$=Ke(d.right,0),D=Ke(d.top,0),W=Ke(d.bottom,0);g?R=y-2*(A!==0||$!==0?A+$:Ke(d.left,d.right)):T=v-2*(D!==0||W!==0?D+W:Ke(d.top,d.bottom))}await a({...t,availableWidth:R,availableHeight:T});const I=await s.getDimensions(l.floating);return y!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function Ds(){return typeof window<"u"}function Yr(e){return rm(e)?(e.nodeName||"").toLowerCase():"#document"}function Xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){var t;return(t=(rm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rm(e){return Ds()?e instanceof Node||e instanceof Xe(e).Node:!1}function yt(e){return Ds()?e instanceof Element||e instanceof Xe(e).Element:!1}function _t(e){return Ds()?e instanceof HTMLElement||e instanceof Xe(e).HTMLElement:!1}function Pd(e){return!Ds()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xe(e).ShadowRoot}function qo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function t1(e){return["table","td","th"].includes(Yr(e))}function zs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Vu(e){const t=Hu(),n=yt(e)?wt(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 n1(e){let t=Rn(e);for(;_t(t)&&!Br(t);){if(Vu(t))return t;if(zs(t))return null;t=Rn(t)}return null}function Hu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Br(e){return["html","body","#document"].includes(Yr(e))}function wt(e){return Xe(e).getComputedStyle(e)}function Fs(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rn(e){if(Yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pd(e)&&e.host||At(e);return Pd(t)?t.host:t}function om(e){const t=Rn(e);return Br(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&qo(t)?t:om(t)}function $o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=om(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xe(o);if(i){const l=Aa(s);return t.concat(s,s.visualViewport||[],qo(o)?o:[],l&&n?$o(l):[])}return t.concat(o,$o(o,[],n))}function Aa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function im(e){const t=wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_t(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=ds(n)!==i||ds(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Wu(e){return yt(e)?e:e.contextElement}function kr(e){const t=Wu(e);if(!_t(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=im(t);let s=(i?ds(n.width):n.width)/r,l=(i?ds(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const r1=Tn(0);function sm(e){const t=Xe(e);return!Hu()||!t.visualViewport?r1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xe(e)?!1:t}function Xn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Wu(e);let s=Tn(1);t&&(r?yt(r)&&(s=kr(r)):s=kr(e));const l=o1(i,n,r)?sm(i):Tn(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const c=Xe(i),g=r&&yt(r)?Xe(r):r;let y=c,v=Aa(y);for(;v&&r&&g!==y;){const x=kr(v),h=v.getBoundingClientRect(),p=wt(v),m=h.left+(v.clientLeft+parseFloat(p.paddingLeft))*x.x,E=h.top+(v.clientTop+parseFloat(p.paddingTop))*x.y;a*=x.x,u*=x.y,d*=x.x,f*=x.y,a+=m,u+=E,y=Xe(v),v=Aa(y)}}return ps({width:d,height:f,x:a,y:u})}function i1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=At(r),l=t?zs(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Tn(1);const d=Tn(0),f=_t(r);if((f||!f&&!i)&&((Yr(r)!=="body"||qo(s))&&(a=Fs(r)),_t(r))){const c=Xn(r);u=kr(r),d.x=c.x+r.clientLeft,d.y=c.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+d.x,y:n.y*u.y-a.scrollTop*u.y+d.y}}function s1(e){return Array.from(e.getClientRects())}function ja(e,t){const n=Fs(e).scrollLeft;return t?t.left+n:Xn(At(e)).left+n}function l1(e){const t=At(e),n=Fs(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ja(e);const l=-n.scrollTop;return wt(r).direction==="rtl"&&(s+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function a1(e,t){const n=Xe(e),r=At(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=Hu();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function u1(e,t){const n=Xn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_t(e)?kr(e):Tn(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function Td(e,t,n){let r;if(t==="viewport")r=a1(e,n);else if(t==="document")r=l1(At(e));else if(yt(t))r=u1(t,n);else{const o=sm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ps(r)}function lm(e,t){const n=Rn(e);return n===t||!yt(n)||Br(n)?!1:wt(n).position==="fixed"||lm(n,t)}function c1(e,t){const n=t.get(e);if(n)return n;let r=$o(e,[],!1).filter(l=>yt(l)&&Yr(l)!=="body"),o=null;const i=wt(e).position==="fixed";let s=i?Rn(e):e;for(;yt(s)&&!Br(s);){const l=wt(s),a=Vu(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qo(s)&&!a&&lm(e,s))?r=r.filter(d=>d!==s):o=l,s=Rn(s)}return t.set(e,r),r}function d1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?zs(t)?[]:c1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,d)=>{const f=Td(t,d,o);return u.top=Ke(f.top,u.top),u.right=Pn(f.right,u.right),u.bottom=Pn(f.bottom,u.bottom),u.left=Ke(f.left,u.left),u},Td(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function f1(e){const{width:t,height:n}=im(e);return{width:t,height:n}}function p1(e,t,n){const r=_t(t),o=At(t),i=n==="fixed",s=Xn(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Tn(0);if(r||!r&&!i)if((Yr(t)!=="body"||qo(o))&&(l=Fs(t)),r){const g=Xn(t,!0,i,t);a.x=g.x+t.clientLeft,a.y=g.y+t.clientTop}else o&&(a.x=ja(o));let u=0,d=0;if(o&&!r&&!i){const g=o.getBoundingClientRect();d=g.top+l.scrollTop,u=g.left+l.scrollLeft-ja(o,g)}const f=s.left+l.scrollLeft-a.x-u,c=s.top+l.scrollTop-a.y-d;return{x:f,y:c,width:s.width,height:s.height}}function Rl(e){return wt(e).position==="static"}function Nd(e,t){if(!_t(e)||wt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return At(e)===n&&(n=n.ownerDocument.body),n}function am(e,t){const n=Xe(e);if(zs(e))return n;if(!_t(e)){let o=Rn(e);for(;o&&!Br(o);){if(yt(o)&&!Rl(o))return o;o=Rn(o)}return n}let r=Nd(e,t);for(;r&&t1(r)&&Rl(r);)r=Nd(r,t);return r&&Br(r)&&Rl(r)&&!Vu(r)?n:r||n1(e)||n}const h1=async function(e){const t=this.getOffsetParent||am,n=this.getDimensions,r=await n(e.floating);return{reference:p1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m1(e){return wt(e).direction==="rtl"}const v1={convertOffsetParentRelativeRectToViewportRelativeRect:i1,getDocumentElement:At,getClippingRect:d1,getOffsetParent:am,getElementRects:h1,getClientRects:s1,getDimensions:f1,getScale:kr,isElement:yt,isRTL:m1};function g1(e,t){let n=null,r;const o=At(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:d,width:f,height:c}=e.getBoundingClientRect();if(l||t(),!f||!c)return;const g=Ci(d),y=Ci(o.clientWidth-(u+f)),v=Ci(o.clientHeight-(d+c)),x=Ci(u),p={rootMargin:-g+"px "+-y+"px "+-v+"px "+-x+"px",threshold:Ke(0,Pn(1,a))||1};let m=!0;function E(C){const P=C[0].intersectionRatio;if(P!==a){if(!m)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(E,{...p,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,p)}n.observe(e)}return s(!0),i}function y1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=Wu(e),d=o||i?[...u?$o(u):[],...$o(t)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const f=u&&l?g1(u,n):null;let c=-1,g=null;s&&(g=new ResizeObserver(h=>{let[p]=h;p&&p.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(c),c=requestAnimationFrame(()=>{var m;(m=g)==null||m.observe(t)})),n()}),u&&!a&&g.observe(u),g.observe(t));let y,v=a?Xn(e):null;a&&x();function x(){const h=Xn(e);v&&(h.x!==v.x||h.y!==v.y||h.width!==v.width||h.height!==v.height)&&n(),v=h,y=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(p=>{o&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),f==null||f(),(h=g)==null||h.disconnect(),g=null,a&&cancelAnimationFrame(y)}}const w1=qw,x1=Zw,S1=Gw,E1=e1,C1=Yw,Rd=Kw,k1=Jw,P1=(e,t,n)=>{const r=new Map,o={platform:v1,...n},i={...o.platform,_c:r};return Qw(e,t,{...o,platform:i})};var Fi=typeof document<"u"?w.useLayoutEffect:w.useEffect;function hs(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,o;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(!hs(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!hs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function um(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bd(e,t){const n=um(e);return Math.round(t*n)/n}function bl(e){const t=w.useRef(e);return Fi(()=>{t.current=e}),t}function T1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[c,g]=w.useState(r);hs(c,r)||g(r);const[y,v]=w.useState(null),[x,h]=w.useState(null),p=w.useCallback(k=>{k!==P.current&&(P.current=k,v(k))},[]),m=w.useCallback(k=>{k!==T.current&&(T.current=k,h(k))},[]),E=i||y,C=s||x,P=w.useRef(null),T=w.useRef(null),R=w.useRef(d),I=a!=null,A=bl(a),$=bl(o),D=bl(u),W=w.useCallback(()=>{if(!P.current||!T.current)return;const k={placement:t,strategy:n,middleware:c};$.current&&(k.platform=$.current),P1(P.current,T.current,k).then(O=>{const z={...O,isPositioned:D.current!==!1};j.current&&!hs(R.current,z)&&(R.current=z,Xo.flushSync(()=>{f(z)}))})},[c,t,n,$,D]);Fi(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const j=w.useRef(!1);Fi(()=>(j.current=!0,()=>{j.current=!1}),[]),Fi(()=>{if(E&&(P.current=E),C&&(T.current=C),E&&C){if(A.current)return A.current(E,C,W);W()}},[E,C,W,A,I]);const Q=w.useMemo(()=>({reference:P,floating:T,setReference:p,setFloating:m}),[p,m]),U=w.useMemo(()=>({reference:E,floating:C}),[E,C]),K=w.useMemo(()=>{const k={position:n,left:0,top:0};if(!U.floating)return k;const O=bd(U.floating,d.x),z=bd(U.floating,d.y);return l?{...k,transform:"translate("+O+"px, "+z+"px)",...um(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:z}},[n,l,U.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:W,refs:Q,elements:U,floatingStyles:K}),[d,W,Q,U,K])}const N1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rd({element:r.current,padding:o}).fn(n):{}:r?Rd({element:r,padding:o}).fn(n):{}}}},R1=(e,t)=>({...w1(e),options:[e,t]}),b1=(e,t)=>({...x1(e),options:[e,t]}),O1=(e,t)=>({...k1(e),options:[e,t]}),_1=(e,t)=>({...S1(e),options:[e,t]}),A1=(e,t)=>({...E1(e),options:[e,t]}),j1=(e,t)=>({...C1(e),options:[e,t]}),L1=(e,t)=>({...N1(e),options:[e,t]});var M1="Arrow",cm=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(Be.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});cm.displayName=M1;var I1=cm;function D1(e,t=[]){let n=[];function r(i,s){const l=w.createContext(s),a=n.length;n=[...n,s];function u(f){const{scope:c,children:g,...y}=f,v=(c==null?void 0:c[e][a])||l,x=w.useMemo(()=>y,Object.values(y));return S.jsx(v.Provider,{value:x,children:g})}function d(f,c){const g=(c==null?void 0:c[e][a])||l,y=w.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(s=>w.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,z1(o,...t)]}function z1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const f=a(i)[`__scope${u}`];return{...l,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function F1(e){const[t,n]=w.useState(void 0);return Yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dm="Popper",[fm,pm]=D1(dm),[jS,hm]=fm(dm),mm="PopperAnchor",vm=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=hm(mm,n),s=w.useRef(null),l=gt(t,s);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:S.jsx(Be.div,{...o,ref:l})});vm.displayName=mm;var Qu="PopperContent",[$1,U1]=fm(Qu),gm=w.forwardRef((e,t)=>{var lt,Kt,Gt,Yt,Zo,er;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:c=!1,updatePositionStrategy:g="optimized",onPlaced:y,...v}=e,x=hm(Qu,n),[h,p]=w.useState(null),m=gt(t,An=>p(An)),[E,C]=w.useState(null),P=F1(E),T=(P==null?void 0:P.width)??0,R=(P==null?void 0:P.height)??0,I=r+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],D=$.length>0,W={padding:A,boundary:$.filter(V1),altBoundary:D},{refs:j,floatingStyles:Q,placement:U,isPositioned:K,middlewareData:k}=T1({strategy:"fixed",placement:I,whileElementsMounted:(...An)=>y1(...An,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[R1({mainAxis:o+R,alignmentAxis:s}),a&&b1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?O1():void 0,...W}),a&&_1({...W}),A1({...W,apply:({elements:An,rects:Xr,availableWidth:Jo,availableHeight:Xt})=>{const{width:Ks,height:Gs}=Xr.reference,xe=An.floating.style;xe.setProperty("--radix-popper-available-width",`${Jo}px`),xe.setProperty("--radix-popper-available-height",`${Xt}px`),xe.setProperty("--radix-popper-anchor-width",`${Ks}px`),xe.setProperty("--radix-popper-anchor-height",`${Gs}px`)}}),E&&L1({element:E,padding:l}),H1({arrowWidth:T,arrowHeight:R}),c&&j1({strategy:"referenceHidden",...W})]}),[O,z]=xm(U),M=Ot(y);Yn(()=>{K&&(M==null||M())},[K,M]);const F=(lt=k.arrow)==null?void 0:lt.x,Y=(Kt=k.arrow)==null?void 0:Kt.y,le=((Gt=k.arrow)==null?void 0:Gt.centerOffset)!==0,[Ve,Z]=w.useState();return Yn(()=>{h&&Z(window.getComputedStyle(h).zIndex)},[h]),S.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:K?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ve,"--radix-popper-transform-origin":[(Yt=k.transformOrigin)==null?void 0:Yt.x,(Zo=k.transformOrigin)==null?void 0:Zo.y].join(" "),...((er=k.hide)==null?void 0:er.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx($1,{scope:n,placedSide:O,onArrowChange:C,arrowX:F,arrowY:Y,shouldHideArrow:le,children:S.jsx(Be.div,{"data-side":O,"data-align":z,...v,ref:m,style:{...v.style,animation:K?void 0:"none"}})})})});gm.displayName=Qu;var ym="PopperArrow",B1={top:"bottom",right:"left",bottom:"top",left:"right"},wm=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=U1(ym,r),s=B1[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:S.jsx(I1,{...o,ref:n,style:{...o.style,display:"block"}})})});wm.displayName=ym;function V1(e){return e!==null}var H1=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=xm(n),f={start:"0%",center:"50%",end:"100%"}[d],c=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,g=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let y="",v="";return u==="bottom"?(y=s?f:`${c}px`,v=`${-a}px`):u==="top"?(y=s?f:`${c}px`,v=`${r.floating.height+a}px`):u==="right"?(y=`${-a}px`,v=s?f:`${g}px`):u==="left"&&(y=`${r.floating.width+a}px`,v=s?f:`${g}px`),{data:{x:y,y:v}}}});function xm(e){const[t,n="center"]=e.split("-");return[t,n]}var W1=vm,Q1=gm,K1=wm,[$s,LS]=yh("Tooltip",[pm]),Ku=pm(),Sm="TooltipProvider",G1=700,Od="tooltip.open",[Y1,Em]=$s(Sm),Cm=e=>{const{__scopeTooltip:t,delayDuration:n=G1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,l]=w.useState(!0),a=w.useRef(!1),u=w.useRef(0);return w.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),S.jsx(Y1,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:w.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(d=>{a.current=d},[]),disableHoverableContent:o,children:i})};Cm.displayName=Sm;var km="Tooltip",[MS,Us]=$s(km),La="TooltipTrigger",X1=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Us(La,n),i=Em(La,n),s=Ku(n),l=w.useRef(null),a=gt(t,l,o.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),f=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),S.jsx(W1,{asChild:!0,...s,children:S.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ve(e.onPointerMove,c=>{c.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});X1.displayName=La;var q1="TooltipPortal",[IS,Z1]=$s(q1,{forceMount:void 0}),Vr="TooltipContent",Pm=w.forwardRef((e,t)=>{const n=Z1(Vr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Us(Vr,e.__scopeTooltip);return S.jsx(Mu,{present:r||s.open,children:s.disableHoverableContent?S.jsx(Tm,{side:o,...i,ref:t}):S.jsx(J1,{side:o,...i,ref:t})})}),J1=w.forwardRef((e,t)=>{const n=Us(Vr,e.__scopeTooltip),r=Em(Vr,e.__scopeTooltip),o=w.useRef(null),i=gt(t,o),[s,l]=w.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,c=w.useCallback(()=>{l(null),f(!1)},[f]),g=w.useCallback((y,v)=>{const x=y.currentTarget,h={x:y.clientX,y:y.clientY},p=rx(h,x.getBoundingClientRect()),m=ox(h,p),E=ix(v.getBoundingClientRect()),C=lx([...m,...E]);l(C),f(!0)},[f]);return w.useEffect(()=>()=>c(),[c]),w.useEffect(()=>{if(a&&d){const y=x=>g(x,d),v=x=>g(x,a);return a.addEventListener("pointerleave",y),d.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",v)}}},[a,d,g,c]),w.useEffect(()=>{if(s){const y=v=>{const x=v.target,h={x:v.clientX,y:v.clientY},p=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),m=!sx(h,s);p?c():m&&(c(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[a,d,s,u,c]),S.jsx(Tm,{...e,ref:i})}),[ex,tx]=$s(km,{isInside:!1}),Tm=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=Us(Vr,n),u=Ku(n),{onClose:d}=a;return w.useEffect(()=>(document.addEventListener(Od,d),()=>document.removeEventListener(Od,d)),[d]),w.useEffect(()=>{if(a.trigger){const f=c=>{const g=c.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,d]),S.jsx(Lu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:S.jsxs(Q1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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:[S.jsx(gh,{children:r}),S.jsx(ex,{scope:n,isInside:!0,children:S.jsx(n0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Pm.displayName=Vr;var Nm="TooltipArrow",nx=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ku(n);return tx(Nm,n).isInside?null:S.jsx(K1,{...o,...r,ref:t})});nx.displayName=Nm;function rx(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ox(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 ix(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function sx(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=d>r&&n<(u-l)*(r-a)/(d-a)+l&&(o=!o)}return o}function lx(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),ax(t)}function ax(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}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 ux=Cm,Rm=Pm;const cx=ux,dx=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>S.jsx(Rm,{ref:r,sideOffset:t,className:Jn("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}));dx.displayName=Rm.displayName;var Bs=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(){}},Vs=typeof window>"u"||"Deno"in globalThis;function ct(){}function fx(e,t){return typeof e=="function"?e(t):e}function px(e){return typeof e=="number"&&e>=0&&e!==1/0}function hx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _d(e,t){return typeof e=="function"?e(t):e}function mx(e,t){return typeof e=="function"?e(t):e}function Ad(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==Gu(s,t.options))return!1}else if(!Bo(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function jd(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Uo(t.options.mutationKey)!==Uo(i))return!1}else if(!Bo(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Gu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Uo)(e)}function Uo(e){return JSON.stringify(e,(t,n)=>Ma(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Bo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Bo(e[n],t[n])):!1}function bm(e,t){if(e===t)return e;const n=Ld(e)&&Ld(t);if(n||Ma(e)&&Ma(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),s=i.length,l=n?[]:{};let a=0;for(let u=0;u{setTimeout(t,e)})}function gx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?bm(e,t):t}function yx(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function wx(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Yu=Symbol();function Om(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Yu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var zn,ln,Tr,Qd,xx=(Qd=class extends Bs{constructor(){super();q(this,zn);q(this,ln);q(this,Tr);H(this,Tr,t=>{if(!Vs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,ln)||this.setEventListener(N(this,Tr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,ln))==null||t.call(this),H(this,ln,void 0))}setEventListener(t){var n;H(this,Tr,t),(n=N(this,ln))==null||n.call(this),H(this,ln,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,zn)!==t&&(H(this,zn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,zn)=="boolean"?N(this,zn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zn=new WeakMap,ln=new WeakMap,Tr=new WeakMap,Qd),_m=new xx,Nr,an,Rr,Kd,Sx=(Kd=class extends Bs{constructor(){super();q(this,Nr,!0);q(this,an);q(this,Rr);H(this,Rr,t=>{if(!Vs&&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(){N(this,an)||this.setEventListener(N(this,Rr))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,an))==null||t.call(this),H(this,an,void 0))}setEventListener(t){var n;H(this,Rr,t),(n=N(this,an))==null||n.call(this),H(this,an,t(this.setOnline.bind(this)))}setOnline(t){N(this,Nr)!==t&&(H(this,Nr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,Nr)}},Nr=new WeakMap,an=new WeakMap,Rr=new WeakMap,Kd),ms=new Sx;function Ex(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Cx(e){return Math.min(1e3*2**e,3e4)}function Am(e){return(e??"online")==="online"?ms.isOnline():!0}var jm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ol(e){return e instanceof jm}function Lm(e){let t=!1,n=0,r=!1,o;const i=Ex(),s=v=>{var x;r||(c(new jm(v)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>_m.isFocused()&&(e.networkMode==="always"||ms.isOnline())&&e.canRun(),d=()=>Am(e.networkMode)&&e.canRun(),f=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),o==null||o(),i.resolve(v))},c=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),o==null||o(),i.reject(v))},g=()=>new Promise(v=>{var x;o=h=>{(r||u())&&v(h)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(f).catch(h=>{var P;if(r)return;const p=e.retry??(Vs?0:3),m=e.retryDelay??Cx,E=typeof m=="function"?m(n,h):m,C=p===!0||typeof p=="number"&&nu()?void 0:g()).then(()=>{t?c(h):y()})})};return{promise:i,cancel:s,continue:()=>(o==null||o(),i),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?y():g().then(y),i)}}function kx(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Ae=kx(),Fn,Gd,Mm=(Gd=class{constructor(){q(this,Fn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),px(this.gcTime)&&H(this,Fn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vs?1/0:5*60*1e3))}clearGcTimeout(){N(this,Fn)&&(clearTimeout(N(this,Fn)),H(this,Fn,void 0))}},Fn=new WeakMap,Gd),br,Or,et,Ne,Vo,$n,dt,Lt,Yd,Px=(Yd=class extends Mm{constructor(t){super();q(this,dt);q(this,br);q(this,Or);q(this,et);q(this,Ne);q(this,Vo);q(this,$n);H(this,$n,!1),H(this,Vo,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,et,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,br,Nx(this.options)),this.state=t.state??N(this,br),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,Ne))==null?void 0:t.promise}setOptions(t){this.options={...N(this,Vo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,et).remove(this)}setData(t,n){const r=gx(this.state.data,t,this.options);return ke(this,dt,Lt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ke(this,dt,Lt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,Ne))==null?void 0:r.promise;return(o=N(this,Ne))==null||o.cancel(t),n?n.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,br))}isActive(){return this.observers.some(t=>mx(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yu||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||!hx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ne))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ne))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,et).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Ne)&&(N(this,$n)?N(this,Ne).cancel({revert:!0}):N(this,Ne).cancelRetry()),this.scheduleGc()),N(this,et).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,dt,Lt).call(this,{type:"invalidate"})}fetch(t,n){var a,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Ne))return N(this,Ne).continueRetry(),N(this,Ne).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(c=>c.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(H(this,$n,!0),r.signal)})},i=()=>{const f=Om(this.options,n),c={queryKey:this.queryKey,meta:this.meta};return o(c),H(this,$n,!1),this.options.persister?this.options.persister(f,c,this):f(c)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(s),(a=this.options.behavior)==null||a.onFetch(s,this),H(this,Or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&ke(this,dt,Lt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=f=>{var c,g,y,v;Ol(f)&&f.silent||ke(this,dt,Lt).call(this,{type:"error",error:f}),Ol(f)||((g=(c=N(this,et).config).onError)==null||g.call(c,f,this),(v=(y=N(this,et).config).onSettled)==null||v.call(y,this.state.data,f,this)),this.scheduleGc()};return H(this,Ne,Lm({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var c,g,y,v;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){l(x);return}(g=(c=N(this,et).config).onSuccess)==null||g.call(c,f,this),(v=(y=N(this,et).config).onSettled)==null||v.call(y,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,c)=>{ke(this,dt,Lt).call(this,{type:"failed",failureCount:f,error:c})},onPause:()=>{ke(this,dt,Lt).call(this,{type:"pause"})},onContinue:()=>{ke(this,dt,Lt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),N(this,Ne).start()}},br=new WeakMap,Or=new WeakMap,et=new WeakMap,Ne=new WeakMap,Vo=new WeakMap,$n=new WeakMap,dt=new WeakSet,Lt=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,...Tx(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 o=t.error;return Ol(o)&&o.revert&&N(this,Or)?{...N(this,Or),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,et).notify({query:this,type:"updated",action:t})})},Yd);function Tx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Am(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Nx(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 kt,Xd,Rx=(Xd=class extends Bs{constructor(t={}){super();q(this,kt);this.config=t,H(this,kt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Gu(o,n);let s=this.get(i);return s||(s=new Px({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){N(this,kt).has(t.queryHash)||(N(this,kt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,kt).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,kt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,kt).get(t)}getAll(){return[...N(this,kt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ad(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ad(t,r)):n}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ae.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kt=new WeakMap,Xd),Pt,Oe,Un,Tt,tn,qd,bx=(qd=class extends Mm{constructor(t){super();q(this,Tt);q(this,Pt);q(this,Oe);q(this,Un);this.mutationId=t.mutationId,H(this,Oe,t.mutationCache),H(this,Pt,[]),this.state=t.state||Ox(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Pt).includes(t)||(N(this,Pt).push(t),this.clearGcTimeout(),N(this,Oe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Pt,N(this,Pt).filter(n=>n!==t)),this.scheduleGc(),N(this,Oe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():N(this,Oe).remove(this))}continue(){var t;return((t=N(this,Un))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,s,l,a,u,d,f,c,g,y,v,x,h,p,m,E,C,P,T;H(this,Un,Lm({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{ke(this,Tt,tn).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{ke(this,Tt,tn).call(this,{type:"pause"})},onContinue:()=>{ke(this,Tt,tn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,Oe).canRun(this)}));const n=this.state.status==="pending",r=!N(this,Un).canStart();try{if(!n){ke(this,Tt,tn).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=N(this,Oe).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));I!==this.state.context&&ke(this,Tt,tn).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const R=await N(this,Un).start();return await((u=(a=N(this,Oe).config).onSuccess)==null?void 0:u.call(a,R,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,R,t,this.state.context)),await((g=(c=N(this,Oe).config).onSettled)==null?void 0:g.call(c,R,null,this.state.variables,this.state.context,this)),await((v=(y=this.options).onSettled)==null?void 0:v.call(y,R,null,t,this.state.context)),ke(this,Tt,tn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((h=(x=N(this,Oe).config).onError)==null?void 0:h.call(x,R,t,this.state.context,this)),await((m=(p=this.options).onError)==null?void 0:m.call(p,R,t,this.state.context)),await((C=(E=N(this,Oe).config).onSettled)==null?void 0:C.call(E,void 0,R,this.state.variables,this.state.context,this)),await((T=(P=this.options).onSettled)==null?void 0:T.call(P,void 0,R,t,this.state.context)),R}finally{ke(this,Tt,tn).call(this,{type:"error",error:R})}}finally{N(this,Oe).runNext(this)}}},Pt=new WeakMap,Oe=new WeakMap,Un=new WeakMap,Tt=new WeakSet,tn=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),Ae.batch(()=>{N(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),N(this,Oe).notify({mutation:this,type:"updated",action:t})})},qd);function Ox(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var He,Ho,Zd,_x=(Zd=class extends Bs{constructor(t={}){super();q(this,He);q(this,Ho);this.config=t,H(this,He,new Map),H(this,Ho,Date.now())}build(t,n,r){const o=new bx({mutationCache:this,mutationId:++ni(this,Ho)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=ki(t),r=N(this,He).get(n)??[];r.push(t),N(this,He).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=ki(t);if(N(this,He).has(n)){const o=(r=N(this,He).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?N(this,He).delete(n):N(this,He).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=N(this,He).get(ki(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=N(this,He).get(ki(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ae.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...N(this,He).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jd(n,r))}findAll(t={}){return this.getAll().filter(n=>jd(t,n))}notify(t){Ae.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ae.batch(()=>Promise.all(t.map(n=>n.continue().catch(ct))))}},He=new WeakMap,Ho=new WeakMap,Zd);function ki(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Id(e){return{onFetch:(t,n)=>{var d,f,c,g,y;const r=t.options,o=(c=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:c.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const x=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},h=Om(t.options,t.fetchOptions),p=async(m,E,C)=>{if(v)return Promise.reject();if(E==null&&m.pages.length)return Promise.resolve(m);const P={queryKey:t.queryKey,pageParam:E,direction:C?"backward":"forward",meta:t.options.meta};x(P);const T=await h(P),{maxPages:R}=t.options,I=C?wx:yx;return{pages:I(m.pages,T,R),pageParams:I(m.pageParams,E,R)}};if(o&&i.length){const m=o==="backward",E=m?Ax:Dd,C={pages:i,pageParams:s},P=E(r,C);l=await p(C,P,m)}else{const m=e??i.length;do{const E=a===0?s[0]??r.initialPageParam:Dd(r,l);if(a>0&&E==null)break;l=await p(l,E),a++}while(a{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Dd(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 Ax(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 de,un,cn,_r,Ar,dn,jr,Lr,Jd,jx=(Jd=class{constructor(e={}){q(this,de);q(this,un);q(this,cn);q(this,_r);q(this,Ar);q(this,dn);q(this,jr);q(this,Lr);H(this,de,e.queryCache||new Rx),H(this,un,e.mutationCache||new _x),H(this,cn,e.defaultOptions||{}),H(this,_r,new Map),H(this,Ar,new Map),H(this,dn,0)}mount(){ni(this,dn)._++,N(this,dn)===1&&(H(this,jr,_m.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onFocus())})),H(this,Lr,ms.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,de).onOnline())})))}unmount(){var e,t;ni(this,dn)._--,N(this,dn)===0&&((e=N(this,jr))==null||e.call(this),H(this,jr,void 0),(t=N(this,Lr))==null||t.call(this),H(this,Lr,void 0))}isFetching(e){return N(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,un).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).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=N(this,de).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(_d(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return N(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=fx(t,i);if(s!==void 0)return N(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ae.batch(()=>N(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,de);Ae.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,de),r={type:"active",...e};return Ae.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ae.batch(()=>N(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ct).catch(ct)}invalidateQueries(e={},t={}){return Ae.batch(()=>{if(N(this,de).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=Ae.batch(()=>N(this,de).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(ct)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,de).build(this,t);return n.isStaleByTime(_d(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ct).catch(ct)}fetchInfiniteQuery(e){return e.behavior=Id(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ct).catch(ct)}ensureInfiniteQueryData(e){return e.behavior=Id(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ms.isOnline()?N(this,un).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,de)}getMutationCache(){return N(this,un)}getDefaultOptions(){return N(this,cn)}setDefaultOptions(e){H(this,cn,e)}setQueryDefaults(e,t){N(this,_r).set(Uo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,_r).values()];let n={};return t.forEach(r=>{Bo(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){N(this,Ar).set(Uo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,Ar).values()];let n={};return t.forEach(r=>{Bo(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gu(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===Yu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,de).clear(),N(this,un).clear()}},de=new WeakMap,un=new WeakMap,cn=new WeakMap,_r=new WeakMap,Ar=new WeakMap,dn=new WeakMap,jr=new WeakMap,Lr=new WeakMap,Jd),Lx=w.createContext(void 0),Mx=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Lx.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 vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Im(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dx(){return Math.random().toString(36).substr(2,8)}function Fd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ia(e,t,n,r){return n===void 0&&(n=null),vs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hs(t):t,{state:n,key:t&&t.key||r||Dx()})}function Dm(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 Hs(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 zx(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=hn.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(vs({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=hn.Pop;let x=d(),h=x==null?null:x-u;u=x,a&&a({action:l,location:v.location,delta:h})}function c(x,h){l=hn.Push;let p=Ia(v.location,x,h);u=d()+1;let m=Fd(p,u),E=v.createHref(p);try{s.pushState(m,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(E)}i&&a&&a({action:l,location:v.location,delta:1})}function g(x,h){l=hn.Replace;let p=Ia(v.location,x,h);u=d();let m=Fd(p,u),E=v.createHref(p);s.replaceState(m,"",E),i&&a&&a({action:l,location:v.location,delta:0})}function y(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof x=="string"?x:Dm(x);return p=p.replace(/ $/,"%20"),Ue(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let v={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(zd,f),a=x,()=>{o.removeEventListener(zd,f),a=null}},createHref(x){return t(o,x)},createURL:y,encodeLocation(x){let h=y(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:c,replace:g,go(x){return s.go(x)}};return v}var $d;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($d||($d={}));function Fx(e,t,n){return n===void 0&&(n="/"),$x(e,t,n,!1)}function $x(e,t,n,r){let o=typeof t=="string"?Hs(t):t,i=$m(o.pathname||"/",n);if(i==null)return null;let s=zm(e);Ux(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(Ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Pr([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),zm(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Gx(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of Fm(i.path))o(i,s,a)}),t}function Fm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Fm(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Ux(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bx=/^:[\w-]+$/,Vx=3,Hx=2,Wx=1,Qx=10,Kx=-2,Ud=e=>e==="*";function Gx(e,t){let n=e.split("/"),r=n.length;return n.some(Ud)&&(r+=Kx),t&&(r+=Hx),n.filter(o=>!Ud(o)).reduce((o,i)=>o+(Bx.test(i)?Vx:i===""?Wx:Qx),r)}function Yx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Xx(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:c,isOptional:g}=d;if(c==="*"){let v=l[f]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[f];return g&&!y?u[c]=void 0:u[c]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function qx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Im(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Zx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Im(!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 $m(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)||"/"}const Pr=e=>e.join("/").replace(/\/\/+/g,"/"),Jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function eS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Um=["post","put","patch","delete"];new Set(Um);const tS=["get",...Um];new Set(tS);/** * 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 gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},l,x.params),pathname:Pr([a,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Pr([a,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&v?w.createElement(Ws.Provider,{value:{location:gs({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:hn.Pop}},v):v}function sS(){let e=hS(),t=eS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const lS=w.createElement(sS,null);class aS extends w.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?w.createElement(Qs.Provider,{value:this.props.routeContext},w.createElement(Vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uS(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(nS);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Qs.Provider,{value:t},r)}function cS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,c)=>{let g,y=!1,v=null,x=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||lS,a&&(u<0&&c===0?(y=!0,x=null):u===c&&(y=!0,x=f.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,c+1)),p=()=>{let m;return g?m=v:y?m=x:f.route.Component?m=w.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,w.createElement(uS,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||c===0)?w.createElement(aS,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Da=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}(Da||{});function dS(e){let t=w.useContext(rS);return t||Ue(!1),t}function fS(e){let t=w.useContext(Qs);return t||Ue(!1),t}function pS(e){let t=fS(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function hS(){var e;let t=w.useContext(Vm),n=dS(Da.UseRouteError),r=pS(Da.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function za(e){Ue(!1)}function mS(e){let{basename:t="/",children:n=null,location:r,navigationType:o=hn.Pop,navigator:i,static:s=!1,future:l}=e;Xu()&&Ue(!1);let a=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:a,navigator:i,static:s,future:gs({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=Hs(r));let{pathname:d="/",search:f="",hash:c="",state:g=null,key:y="default"}=r,v=w.useMemo(()=>{let x=$m(d,a);return x==null?null:{location:{pathname:x,search:f,hash:c,state:g,key:y},navigationType:o}},[a,d,f,c,g,y,o]);return v==null?null:w.createElement(Bm.Provider,{value:u},w.createElement(Ws.Provider,{children:n,value:v}))}function vS(e){let{children:t,location:n}=e;return oS(Fa(t),n)}new Promise(()=>{});function Fa(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let i=[...t,o];if(r.type===w.Fragment){n.push.apply(n,Fa(r.props.children,i));return}r.type!==za&&Ue(!1),!r.props.index||!r.props.children||Ue(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Fa(r.props.children,i)),n.push(s)}),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 */const gS="6";try{window.__reactRouterVersion=gS}catch{}const yS="startTransition",Vd=hv[yS];function wS(e){let{basename:t,children:n,future:r,window:o}=e,i=w.useRef();i.current==null&&(i.current=Ix({window:o,v5Compat:!0}));let s=i.current,[l,a]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=w.useCallback(f=>{u&&Vd?Vd(()=>a(f)):a(f)},[a,u]);return w.useLayoutEffect(()=>s.listen(d),[s,d]),w.createElement(mS,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}var Hd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hd||(Hd={}));var Wd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wd||(Wd={}));const xS=({value:e,onChange:t,onExecute:n})=>{const r=w.useRef(null),o=w.useRef(null),i=w.useRef(null);w.useEffect(()=>{const a=()=>{var d;(d=r.current)==null||d.focus()};a();const u=setInterval(()=>{document.activeElement!==r.current&&a()},100);return()=>clearInterval(u)},[]),w.useLayoutEffect(()=>{o.current&&i.current&&(i.current.style.left=`${o.current.offsetWidth}px`)},[e]);const s=a=>{a.key==="Enter"&&(n(e),t(""))},l=()=>{var a;(a=r.current)==null||a.focus()};return S.jsxs("div",{className:"flex items-center mt-2",onClick:l,children:[S.jsx("span",{className:"text-terminal-amber terminal-glow mr-2",children:">"}),S.jsxs("div",{className:"flex-1 relative",children:[S.jsx("span",{ref:o,className:"absolute invisible font-mono text-foreground whitespace-pre",style:{fontSize:"inherit",lineHeight:"inherit"},children:e||" "}),S.jsx("input",{ref:r,type:"text",value:e,onChange:a=>t(a.target.value),onKeyPress:s,className:"bg-transparent border-none outline-none text-foreground w-full terminal-glow font-mono caret-transparent",placeholder:"",autoComplete:"off",autoFocus:!0,spellCheck:!1}),S.jsx("span",{ref:i,className:"absolute cursor-blink text-foreground pointer-events-none",children:"█"})]})]})},SS=({commands:e})=>{const t=n=>n.toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(/\//g,".").replace(",","");return S.jsx("div",{className:"space-y-4",children:e.map((n,r)=>S.jsxs("div",{className:"space-y-2",children:[n.command&&S.jsxs("div",{className:"flex items-center",children:[S.jsx("span",{className:"text-terminal-amber terminal-glow mr-2",children:">"}),S.jsx("span",{className:"text-foreground terminal-glow",children:n.command}),S.jsx("span",{className:"ml-auto text-muted-foreground text-xs",children:t(n.timestamp)})]}),S.jsx("div",{className:"text-foreground pl-4 leading-relaxed",children:n.output})]},r))})},ES=()=>S.jsxs("div",{className:"space-y-2",children:[S.jsx("div",{className:"text-terminal-amber terminal-glow glitch-effect","data-text":"╔══════════════════════════════════════════════════════════════╗",children:"╔══════════════════════════════════════════════════════════════╗"}),S.jsx("div",{className:"text-terminal-amber terminal-glow",style:{whiteSpace:"pre"},children:"║ ALI DAHAGHIN (0xA10) WEBSITE ║"}),S.jsx("div",{className:"text-terminal-amber terminal-glow",style:{whiteSpace:"pre"},children:"║ ═════════════════════════════ ║"}),S.jsx("div",{className:"text-terminal-amber terminal-glow glitch-effect",style:{whiteSpace:"pre"},"data-text":"║ PERSONAL BLOG TERMINAL V2.1.7 ║",children:"║ PERSONAL BLOG TERMINAL V1.0.0 ║"}),S.jsx("div",{className:"text-terminal-amber terminal-glow glitch-effect",style:{whiteSpace:"pre"},"data-text":"╚══════════════════════════════════════════════════════════════╝",children:"╚══════════════════════════════════════════════════════════════╝"}),S.jsxs("div",{className:"mt-4 text-foreground",children:[S.jsx("div",{className:"terminal-flicker",children:"Welcome to my Personal Blog Terminal"}),S.jsx("div",{className:"terminal-flicker",children:"You can find out stuff about me"}),S.jsx("div",{className:"terminal-flicker",children:"Type 'help' for available commands"})]})]}),CS=()=>S.jsxs("div",{className:"space-y-1",children:[S.jsx("div",{className:"text-terminal-amber glitch-effect terminal-flicker","data-text":"Available Commands:",children:"Available Commands:"}),S.jsx("div",{className:"terminal-flicker",children:"• HELP - Show this help menu"}),S.jsx("div",{className:"terminal-flicker",children:"• ABOUT - Display personal information"}),S.jsx("div",{className:"terminal-flicker",children:"• PROJECTS - View projects"}),S.jsx("div",{className:"terminal-flicker",children:"• SKILLS - Show technical skills"}),S.jsx("div",{className:"terminal-flicker",children:"• CONTACT - Display contact information"}),S.jsx("div",{className:"terminal-flicker",children:"• CLEAR - Clear terminal screen"})]}),kS=()=>{const[e,t]=w.useState("/about.jpg");return w.useEffect(()=>{const r=setInterval(()=>{setTimeout(()=>{t("/about01.jpg"),setTimeout(()=>t("/about.jpg"),Math.random()*200+100)},Math.random()*1e4+5e3)},5e3);return()=>clearInterval(r)},[]),S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"text-terminal-amber terminal-glow",children:"PERSONAL INFORMATION"}),S.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[S.jsxs("div",{className:"lg:w-1/3",children:[S.jsx("div",{className:"border-2 border-primary p-2 terminal-glow",children:S.jsx("img",{src:e,alt:"Profile",className:"w-full h-auto filter sepia contrast-125 brightness-90"})}),S.jsx("div",{className:"text-center mt-2 text-terminal-amber",children:"NEW_PIC_THAT_GETS_OLD_IN_TIME.JPG"})]}),S.jsxs("div",{className:"lg:w-2/3 space-y-2",children:[S.jsx("div",{children:"NAME: Ali Dahaghin"}),S.jsx("div",{children:"OCCUPATION: Software Developer"}),S.jsx("div",{children:"LOCATION: Tehran, Iran"}),S.jsx("div",{children:"STATUS: Alive (yet)"}),S.jsxs("div",{className:"mt-4",children:[S.jsx("div",{className:"text-terminal-amber",children:"BIO:"}),S.jsx("div",{className:"mt-2 leading-relaxed",children:"A Software developer with a knack for building complex, modern applications. Successfully delivered a large-scale project and managed to keep sanity intact. Hates coffee but loves clean architecture, clear logic, and learning new tech. Always eager to tackle fresh challenges—preferably ones written after 2015."})]}),S.jsxs("div",{className:"mt-4",children:[S.jsx("div",{className:"text-terminal-amber",children:"INTERESTS:"}),S.jsx("div",{children:"• Invent Wheel"}),S.jsx("div",{children:"• Play Board game so i be tired for next day at work"}),S.jsx("div",{children:"• Play Video game so i be wasted for next day at work"}),S.jsx("div",{children:"• Programming in a dark Room"}),S.jsx("div",{children:"• Dark Room"}),S.jsx("div",{children:"• Ghormesabzi (not any)"}),S.jsx("div",{children:"• Nature (WITH FUCKING SUFFICIANT EQUIPMENTS BLAAAT )"})]})]})]})]})},PS=()=>S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"text-terminal-amber terminal-glow",children:"BLOG ENTRIES"}),S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"border-l-2 border-primary pl-4",children:[S.jsx("div",{className:"text-terminal-amber",children:`2287.10.23 - "Surviving the Wasteland: A Developer's Guide"`}),S.jsx("div",{className:"text-muted-foreground",children:"How to maintain code quality when civilization has ended..."})]}),S.jsxs("div",{className:"border-l-2 border-primary pl-4",children:[S.jsx("div",{className:"text-terminal-amber",children:'2287.10.15 - "Terminal Hacking 101"'}),S.jsx("div",{className:"text-muted-foreground",children:"Basic principles of accessing pre-war computer systems..."})]}),S.jsxs("div",{className:"border-l-2 border-primary pl-4",children:[S.jsx("div",{className:"text-terminal-amber",children:'2287.10.08 - "Building Shelter with Code"'}),S.jsx("div",{className:"text-muted-foreground",children:"Using programming logic to design radiation-proof structures..."})]})]}),S.jsx("div",{className:"text-muted-foreground mt-4",children:"Use 'read [entry_id]' to view full entries"})]}),TS=()=>{const[e,t]=w.useState([]),[n,r]=w.useState(""),o=w.useRef(null);w.useEffect(()=>{t([{command:"",output:S.jsx(ES,{}),timestamp:new Date}])},[]),w.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[e]);const i=s=>{const l=s.trim().toLowerCase();let a;switch(l){case"help":a=S.jsx(CS,{});break;case"about":a=S.jsx(kS,{});break;case"projects":a=S.jsx(PS,{});break;case"skills":a=S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"text-terminal-amber terminal-glow",children:"TECHNICAL SPECIFICATIONS"}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[S.jsxs("div",{children:[S.jsx("div",{className:"text-terminal-amber",children:"PROFESSIONS:"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Java [█████████░] 90%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Spring Family [████████░░] 80%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Design Pattern [█████████░] 90%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Clean Code [█████████░] 90%"})]}),S.jsxs("div",{children:[S.jsx("div",{className:"text-terminal-amber",children:"HOBBIES:"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• AI [█████░░░░░] 50%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Dota 2 [██░░░░░░░░] 20%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Chess [████░░░░░░] 40%"}),S.jsx("div",{style:{whiteSpace:"pre"},children:"• Boardgame [█████████░] 90%"})]})]}),S.jsxs("div",{className:"mt-4",children:[S.jsx("div",{className:"text-terminal-amber",children:"SOME IMPORTANT CERTIFICATIONS:"}),S.jsx("div",{children:"• This is Not All"}),S.jsx("div",{children:"• I have Learned Even more So This is Probably Outdated"}),S.jsx("div",{children:"• Believe me"})]})]});break;case"contact":a=S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"text-terminal-amber terminal-glow",children:"CONTACT INFORMATION"}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("div",{children:"EMAIL: alidahaghin1@gmail.com"}),S.jsx("div",{children:"GITHUB: https://github.com/ali-dahaghin"}),S.jsx("div",{children:"LINKEDIN: https://www.linkedin.com/in/ali-dahaghin/"}),S.jsx("div",{children:"LOCATION: Iran, Tehran"})]})]});break;case"clear":t([]);return;case"":return;default:a=S.jsxs("div",{className:"text-terminal-red",children:[S.jsxs("div",{className:"terminal-flicker",children:["Command not recognized: ",s]}),S.jsx("div",{children:"Type 'help' for available commands"})]})}t(u=>[...u,{command:s,output:a,timestamp:new Date}])};return S.jsx("div",{className:"min-h-screen bg-background terminal-scanlines p-4",style:{overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:S.jsxs("div",{className:"max-w-6xl mx-auto",style:{width:"80%"},children:[S.jsxs("div",{ref:o,className:"bg-card border-2 border-primary terminal-glow rounded-none min-h-[80vh] p-6 font-mono text-sm overflow-y-auto glitch-effect","data-text":"",style:{overflow:"hidden",borderRadius:"25px"},children:[S.jsx(SS,{commands:e}),S.jsx(xS,{value:n,onChange:r,onExecute:i})]}),S.jsx("div",{className:"mt-4 text-center text-muted-foreground text-xs terminal-flicker",children:"ALI DAHAGHIN • COPYRIGHT 2025-2026"})]})})},NS=()=>S.jsx(TS,{}),RS=()=>{const e=Hm();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),S.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),S.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),S.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},bS=new jx,OS=()=>S.jsx(Mx,{client:bS,children:S.jsxs(cx,{children:[S.jsx(aw,{}),S.jsx(Dw,{}),S.jsx(wS,{children:S.jsxs(vS,{children:[S.jsx(za,{path:"/",element:S.jsx(NS,{})}),S.jsx(za,{path:"*",element:S.jsx(RS,{})})]})})]})});mh(document.getElementById("root")).render(S.jsx(OS,{}));